My Oracle Support Banner

DCU bugs the widgetMetadata.json file with extra backslash and double quotes (Doc ID 2423305.1)

Last updated on MARCH 16, 2020

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

 

Customer downloaded all the widgets with the grabAll option and then changed the tag widgetMetadata.json as the following:

"imports": []

to

"imports": [ "category" ]

 While grbbing the widget again with DCU to check up and the tag looks like this:

"imports": [

    "\"category\""

],

there is a backslash and an additional double quote that shouldn't be there.

And there is one more scenario where customer failed to update widget labels (translation) via API while trying to update widget Labels, but it seems that the API is not working properly.

Customer tries the below steps:

  1. PUT request to /ccadminui/v1/widgetDescriptors/OCS_splitPayments_v0/metadata with the following body:
    {
    "metadata": {
    "imports": [
    "order",
    "payment"
    ],
    "translations": [
    {
    "name": "OCS_splitPayments",
    "language": "en"
    },
    {
    "name": "OCS_splitPayments",
    "language": "pt_BR"
    },
    {
    "name": "OCS_splitPayments",
    "language": "es"
    }
    ],
    "jsEditable": true,
    "minWidth": 2,
    "globalEnabled": false,
    "pageTypes": [
    "checkout"
    ],
    "config": {}
    }
    }

  2. The API response shows incorrect values for "order" and "payment" as you can see:

    {
      "metadata": {
      "imports": [
      "\"order\"",
      "\"payment\""
      ],
      "translations": [
      {
      "name": "OCS_splitPayments",
      "language": "en"
      },
      {
      "name": "OCS_splitPayments",
      "language": "pt_BR"
      },
      {
      "name": "OCS_splitPayments",
      "language": "es"
      }
      ],
      "jsEditable": true,
      "minWidth": 2,
      "globalEnabled": false,
      "pageTypes": [
      "checkout"
      ],
      "config": {}
      },
      "links": [
      {
      "rel": "self",
      "href": "https://<payment_url>"
      }
      ]
    }

Notice the corrupted import value with extra double quote that shouldn't be there and backslash in response.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.