Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-55001

Stocks Portlet cannot update stock preferences

    Details

      Description

      Description:
      The client has described a few scenarios where they have identified that the Minifier throws syntax errors on both a vanilla and their personalized Portal environment.

      In any case, there are a few scenarios that the client has described where this issue occurs, but this specific case is related to the Stocks EE portlet.

      Steps to reproduce:

      1. Start up a clean Master
      2. Deploy the stocks porltet
      3. Add Stocks portlet to a page
      4. Click the cog on Stocks portlet
      5. Click Preferences

      Expected Result:
      Preferences display without minifier error

      Actual Results:
      Minifier error is displayed, and cannot edit preferences

      21:18:16,057 ERROR [http-bio-12080-exec-9][MinifierUtil:88] JavaScript Minifier failed for__// <![CDATA[__              Liferay.provide(_                       Liferay.Portlet,_                       'refreshLayout',_                       function(portletBound) {_                               if (!portletBound.isStatic) {_                                  Liferay.Layout.refresh(portletBound);_
                              }_                      },_                     ['liferay-layout']_         );_ _                       Liferay.Data.layoutConfig = {_                          container: '#main-content',__                           _                                       _                                       dropNodes: '.portlet-column',_                                  _
                              _                               __                              _                               _                                       _                                               handles: ['.portlet-title', '.portlet-title-default'],_                                 _                               _                               __                              disabled
      DropContainerClass: 'portlet-dropzone-disabled',_                               dragNodes: '.portlet-boundary',_                                dropContainer: '.portlet-dropzone',_                            emptyColumnClass: 'empty',_                             invalid: '.portlet-static',_                    nestedPortletId: '_118_INSTANCE',_                              portletBoundary: '.portl
      et-boundary'_                   };_             _               Liferay.Util.focusFormField(document._1_WAR_stocksportlet_fm._1_WAR_stocksportlet_symbols);_    _                       Liferay.Portlet.onLoad(_                                {_                                      canEditTitle: true,_                                    columnPos: 0,_                                  isStatic: 'end',
      _                                       namespacedId: 'p_p_id_1_WAR_stocksportlet_',_                           portletId: '1_WAR_stocksportlet',_                                      refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10183\x26p_p_id\x3d1_WAR_stocksportlet\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dmaximized\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_
      p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fhome\x253Fp_p_id\x253D1_WAR_stocksportlet\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dedit\x2526p_p_col_id\x253Dcolumn-2\x2526p_p_col_pos\x253D2'_                    }_                      );_             _                                               Liferay.
      delegateClick('_145_sqtd', Liferay.Util.openInDialog);_                                 _               Liferay.Portlet.onLoad(_                                {_                                      canEditTitle: true,_                                    columnPos: 0,_                              isStatic: 'end',_                                   namespacedId: 'p_p_id_145_',_
                      portletId: '145',_                                      refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10183\x26p_p_id\x3d145\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p_isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fhome\
      x253Fp_p_id\x253D1_WAR_stocksportlet\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dedit\x2526p_p_col_id\x253Dcolumn-2\x2526p_p_col_pos\x253D2'_                            }_                      );_             _       Liferay.provide(_               Liferay.Util,_      'openKaleoDesignerPortlet',_                function(config) {_                     var A = AUI();__
                              var kaleoURL = Liferay.PortletURL.createURL('http://localhost:12080/web/guest/home?p_p_id=2_WAR_kaleodesignerportlet&p_p_lifecycle=0&#039;);__                       kaleoURL.setParameter('mvcPath', '/designer/edit_kaleo_draft_definition.jsp');_                 kaleoURL.setParameter('availableFields', config.availableFields);_                      kaleoURL.setParameter('available
      PropertyModels', config.availablePropertyModels);_                      kaleoURL.setParameter('ddmStructureId', config.ddmStructureId);_                        kaleoURL.setParameter('draftVersion', config.draftVersion);_                    kaleoURL.setParameter('kaleoProcessId', config.kaleoProcessId);_                        kaleoURL.setParameter('name', config.name);_                    kaleoURL
      .setParameter('openerWindowName', config.openerWindowName);_                    kaleoURL.setParameter('portletResourceNamespace', config.portletResourceNamespace);_                    kaleoURL.setParameter('propertiesSaveCallback', config.propertiesSaveCallback);_                        kaleoURL.setParameter('refreshOpenerOnClose', config.refreshOpenerOnClose);_                    kaleoURL.setPara
      meter('saveCallback', config.saveCallback);_                    kaleoURL.setParameter('uiScope', config.uiScope);_                      kaleoURL.setParameter('version', config.version);_                      kaleoURL.setWindowState('pop_up');__                    config.uri = kaleoURL.toString();__             var dialogConfig = config.dialog;__                     if (!dialogConfig) {_
                      var region = A.one(Liferay.Util.getOpener()).get('region');__                       dialogConfig = {_                                   destroyOnHide: true_                            };__                            config.dialog = dialogConfig;_                  }__                 if (!('align' in dialogConfig)) {_                          dialogConfig.align = Liferay.Util.Window
      .ALIGN_CENTER;_                 }__                     var dialogIframeConfig = config.dialogIframe;__                 if (!dialogIframeConfig) {_                             dialogIframeConfig = {_                                 closeOnEscape: false_                           };__                    config.dialogIframe = dialogIframeConfig;_                      }__                     Liferay.
      Util.openWindow(config);_               },_             ['liferay-portlet-url']_        );__            Liferay.Portlet.onLoad(_                                {_                                      canEditTitle: true,_                                    columnPos: 0,_                              isStatic: 'end',_                                   namespacedId: 'p_p_id_1_WAR_kaleodesignerportlet
      _',_                                    portletId: '1_WAR_kaleodesignerportlet',_                               refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d10183\x26p_p_id\x3d1_WAR_kaleodesignerportlet\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x26p_p_col_count\x3dnull\x26p_p_static\x3d1\x26p_p
      _isolated\x3d1\x26currentURL\x3d\x252Fweb\x252Fguest\x252Fhome\x253Fp_p_id\x253D1_WAR_stocksportlet\x2526p_p_lifecycle\x253D0\x2526p_p_state\x253Dmaximized\x2526p_p_mode\x253Dedit\x2526p_p_col_id\x253Dcolumn-2\x2526p_p_col_pos\x253D2'_                             }_                      );_         AUI().use('aui-base', 'event-outside', 'event-tap', 'liferay-form', 'liferay-layout', 'liferay-menu'
      , 'liferay-navigation', 'liferay-notice', 'liferay-plugin-dockbar-notifications', 'liferay-plugin-notifications-list', 'liferay-poller', 'liferay-session', 'liferay-store', function(A) {(function() {_                        var nonActionableNotificationsList = new Liferay.NotificationsList(_                    {_                                      actionable: false,_
              baseActionURL: 'http://localhost:12080/web/guest/home?p_auth=jRJiK8mp&p_p_id=2_WAR_notificationsportlet&p_p_lifecycle=1&#039;,_                                      baseRenderURL: 'http://localhost:12080/web/guest/home?p_p_id=2_WAR_notificationsportlet&p_p_lifecycle=0&#039;,_                              baseResourceURL: 'http://localhost:12080/web/guest/home?p_p_id=2_WAR_notificationsportlet&p_p_li
      fecycle=2&p_p_cacheability=cacheLevelPage',_                                    delta: 3,_                              fullView: false,_                                       markAllAsReadNode: '.mark-all-as-read',_                                        namespace: '_2_WAR_notificationsportlet_',_                             notificationsContainer: '.dockbar-user-notifications .dockbar-user-notif
      ications-container .user-notifications-list .non-actionable',_                                  notificationsCount: '.count',_                                  notificationsNode: '.user-notifications',_                                      portletKey: '2_WAR_notificationsportlet',_                              start: 0_                               }_                      );__
      var actionableNotificationsList = new Liferay.NotificationsList(_                               {_                              actionable: true,_                                      baseActionURL: 'http://localhost:12080/web/guest/home?p_auth=jRJiK8mp&p_p_id=2_WAR_notificationsportlet&p_p_lifecycle=1&#039;,_                                      baseRenderURL: 'http://localhost:12080/web/guest/home?p_
      p_id=2_WAR_notificationsportlet&p_p_lifecycle=0',_                                      baseResourceURL: 'http://localhost:12080/web/guest/home?p_p_id=2_WAR_notificationsportlet&p_p_lifecycle=2&p_p_cacheability=cacheLevelPage&#039;,_                                    delta: 3,_                              fullView: false,_                                       namespace: '_2_WAR_notificationsportlet_
      ',_                                     notificationsContainer: '.dockbar-user-notifications .dockbar-user-notifications-container .user-notifications-list .actionable',_                                      notificationsCount: '.count',_                                  notificationsNode: '.user-notifications',_                                      portletKey: '2_WAR_notificationsportlet',_
                                      start: 0_                               }_                      );__                    new Liferay.DockbarNotifications(_                              {_                                      actionableNotificationsList: actionableNotificationsList,_                              baseActionURL: 'http://localhost:12080/web/guest/home?p_auth=jRJiK8mp&p_p_id=2_WAR_notif
      icationsportlet&p_p_lifecycle=1',_                                      baseResourceURL: 'http://localhost:12080/web/guest/home?p_p_id=2_WAR_notificationsportlet&p_p_lifecycle=2&p_p_cacheability=cacheLevelPage&#039;,_                                    nonActionableNotificationsList: nonActionableNotificationsList,_                                        portletKey: '2_WAR_notificationsportlet'_
                              }_                      );_             })();(function() {_     Liferay.Util.addInputType();__  Liferay.Portlet.ready(_         function(portletId, node) {_                    Liferay.Util.addInputType(node);_               }_      );__    if (A.UA.mobile) {_             Liferay.Util.addInputCancel();_ }_})();(function() {_                   _               })();(function()
       {_             Liferay.once(_                  'initNavigation',_                      function() {_                           new Liferay.Navigation(_                                        {_                                              hasAddLayoutPermission: true,_                                  layoutIds: [__                                                  __
                                      {_                                                                  deletable: !A.UA.touch && true,_                                                                    id: 1,_                                                                 sortable: true,_                                                                updateable: true_
                                      },__                                                    __                                              ],__                                            __                                              navBlock: navBlock_                                     }_                      );_                     }_              );__            var navBlock = A.one(Liferay.Dat
      a.NAV_SELECTOR);__              if (navBlock) {_                        navBlock.once(_                 'mousemove',_                           function() {_                                   Liferay.fire('initNavigation');_                                }_                      );_             }_  })();(function() {_ new Liferay.Menu();__   var liferayNotices = Liferay.Data.notices;__    for (var
       i = 1; i < liferayNotices.length; i++) {_              new Liferay.Notice(liferayNotices[i]);_ }__ _           Liferay.Poller.init(_                   {_                              encryptedUserId: 'oPHCX8L2zwW0lE/0wo9GIg==',_                           supportsComet: false_                   }_      );_     _})();(function() {_            Liferay.Session = new Liferay.SessionBase(_
              {_                              autoExtend: false,_                             sessionLength: 3,_                              redirectOnExpire: false,_                               redirectUrl: 'http\x3a\x2f\x2flocalhost\x3a12080\x2fweb\x2fguest',_                             warningLength: 1_                       }_              );__            _                       Liferay.Session.
      plug(Liferay.SessionDisplay);_          _       })();(function() {_     Liferay.Form.register(_     {_                  id: '_1_WAR_stocksportlet_fm'__                 _                               , fieldRules: [__                                       __                              ]_              __                      _                               , onSubmit: function(event) {_
                              submitForm(document.<portlet:namespace />fm);_                          }_              _               }_      );__    _               A.all('#_1_WAR_stocksportlet_fm .input-container').removeAttribute('disabled');_        _})();(function() {_                            A.Event.defineOutside('touchend');__                            var container = A.one('#_145_adminLinks'
      );__                            container.one('a').on(_                                 'tap',_                         function(event) {_                                              var currentTarget = event.currentTarget;__                                              event.preventDefault();__                                       container.toggleClass('open');__
                      var menuOpen = container.hasClass('open');__                                        _                                                   _                                                               var handle = Liferay.Data['_145_adminLinksHandle'];__                                                   if (menuOpen && !handle) {_
                      var eventOutside = event._event.type;__                                                         if (eventOutside.toLowerCase().indexOf('pointerup') !== -1) {_                                                                          eventOutside = 'mouseup';_                                                              }__
              eventOutside = eventOutside + 'outside';__                                                              handle = currentTarget.on(_                                                                             eventOutside,_                                                                      function(event) {_
      if (!event.target.ancestor('#_145_adminLinks')) {_                                                                                      Liferay.Data['_145_adminLinksHandle'] = null;__                                                                                         handle.detach();__                                                                                      container.removeClass('o
      pen');_                                                                                 }_                                                                      }_                                                                      );_                                                             }_                                                      else if (handle) {_
                                              handle.detach();__                                                              handle = null;_                                                         }__                                                             Liferay.Data['_145_adminLinksHandle'] = handle;_                                                        _
                      _                                               _                                   }_                          );_                     })();(function() {_                             A.Event.defineOutside('touchend');__                            var container = A.one('#_145_mySites');__                               container.one('a').on(_                                 'tap',_
                                      function(event) {_                                              var currentTarget = event.currentTarget;__                                              event.preventDefault();__                                               container.toggleClass('open');__                                        var menuOpen = container.hasClass('open');__
                      _                                                       _                                                       var handle = Liferay.Data['_145_mySitesHandle'];__                                                              if (menuOpen && !handle) {_                                                             var eventOutside = event._event.type;__
                                      if (eventOutside.toLowerCase().indexOf('pointerup') !== -1) {_                                                                  eventOutside = 'mouseup';_                                                                      }__                                                             eventOutside = eventOutside + 'outside';__
                                      handle = currentTarget.on(_                                                                     eventOutside,_                                                                          function(event) {_                                                                              if (!event.target.ancestor('#_145_mySites')) {_
                                                      Liferay.Data['_145_mySitesHandle'] = null;__                                                                                    handle.detach();__                                                                                              container.removeClass('open');_
      }_                                                                              }_                                                              );_                                                             }_                                                              else if (handle) {_                                                             handle.detach();__
                                              handle = null;_                                                 }__                                                             Liferay.Data['_145_mySitesHandle'] = handle;_                                                   _                                               _                                               _
      }_                              );_                     })();(function() {_                         A.Event.defineOutside('touchend');__                                var container = A.one('#_145_userAvatar');__                            container.one('a').on(_                                 'tap',_                                 function(event) {_
      var currentTarget = event.currentTarget;__                                              event.preventDefault();__                                               container.toggleClass('open');__                                                var menuOpen = container.hasClass('open');__                                    _                                                       _
                                              var handle = Liferay.Data['_145_userAvatarHandle'];__                                                   if (menuOpen && !handle) {_                                                                     var eventOutside = event._event.type;__                                                         if (eventOutside.toLowerCase().indexOf('pointerup') !== -1) {_
                                                                              eventOutside = 'mouseup';_                                                              }__                                                                     eventOutside = eventOutside + 'outside';__                                                              handle = currentTarget.on(_
                                              eventOutside,_                                                                  function(event) {_                                                                                      if (!event.target.ancestor('#_145_userAvatar')) {_                                                                                      Liferay.Data['_145_userAvatarHandle'] =
      null;__                                                                                         handle.detach();__                                                                                              container.removeClass('open');_                                                                         }_                                                                              }_
                                                                      );_                                                     }_                                                              else if (handle) {_                                                                     handle.detach();__                                                              handle = null;_
                              }__                                                             Liferay.Data['_145_userAvatarHandle'] = handle;_                                                        _                                                       _                                               _                               }_                              );_                     })();(function()
       {_                             A.one('#_145_dockbar').delegate(_                                   'click',_                                   function(event) {_                                              var btnNavbar = event.currentTarget;__                                          var navId = btnNavbar.attr('data-navId');__                                             var navbarCollapse = A.o
      ne('#' + navId + 'NavbarCollapse');__                                           if (navbarCollapse) {_                                                  var handle = Liferay.Data['_145_dockbarHandle'];__                                                      if (navbarCollapse.hasClass('open') && handle) {_                                                               handle.detach();__
                                                      handle = null;_                                         }_                                                      else {_                                                         handle = navbarCollapse.on(_                                                            'mousedownoutside',_
      function(event) {_                                                                              if (!btnNavbar.contains(event.target)) {_                                                                                       Liferay.Data['_145_dockbarHandle'] = null;__                                                                            handle.detach();__
                                                      navbarCollapse.removeClass('open');_                                                                    }_                                                                      }_                                                              );_                                             }__                                                     navbarCo
      llapse.toggleClass('open');__                                                   Liferay.Data['_145_dockbarHandle'] = handle;_                                           }_                                      },_                                     '.btn-navbar'_                          );_             })();});_// ]]>_ [Sanitized]

      BRANCH
      6.2.X commit 49d1670a38117faefaeaf0b769bfeeb6ee0bb205
      Plugins commit 9726be8678023f5238a12238c04a072e466c9b02

      ISSUE REPRODUCED

      MASTER
      Master commit 92b7f2557c4fee6afb7635fbc4115b30b431b452
      Plugins commit 8b16f3e89ded0f5a199b643e1d16f4151c27e3b5

      ISSUE REPRODUCED
      different error management

      22:00:30,856 ERROR [http-bio-8180-exec-3][GoogleJavaScriptMinifier:90] (http://localhost:8180/web/guest/welcome:236): Parse error. missing name after . operator
      22:00:30,858 ERROR [http-bio-8180-exec-3][GoogleJavaScriptMinifier:105] {0} error(s), {1} warning(s)
      22:00:35,127 ERROR [http-bio-8180-exec-2][GoogleJavaScriptMinifier:90] (http://localhost:8180/web/guest:236): Parse error. missing name after . operator
      22:00:35,130 ERROR [http-bio-8180-exec-2][GoogleJavaScriptMinifier:105] {0} error(s), {1} warning(s)
      22:00:47,100 ERROR [http-bio-8180-exec-3][GoogleJavaScriptMinifier:90] (http://localhost:8180/web/guest/welcome:236): Parse error. missing name after . operator
      22:00:47,102 ERROR [http-bio-8180-exec-3][GoogleJavaScriptMinifier:105] {0} error(s), {1} warning(s)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                steven.smith Steven Smith (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 31 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M5