Unnecessary Widget Is Being Referenced And Script Error Being Thrown In Preview. (Doc ID 2281701.1)

Last updated on JUNE 28, 2017

Applies to:

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

Symptoms

On :  NA version, Store Administration

ACTUAL BEHAVIOR  
---------------
The unnecessary widget is being referenced and script error being thrown in the preview.  

Tried to export and import the same zip file into the test environment had resulted in the loss of usage of the preview service throwing a script error for a js file which was never created in a widget which was never used.

EXPECTED BEHAVIOR
-----------------------
The unnecessary widget shouldn't refer when script error being thrown in the preview.  

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1) Export the widgets
2) Try to import using the zip file created
3) Hit Preview after a successful import.

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot import or export properly

Changes

 When tried to use global widget "XXXGlobalRequest" to introduce common/library code for own widgets, but this is not a recommend approach

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms