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

Error in portlet_url.js liferay 6.2 duplicate ContextPath

    Details

      Description

      Hi

      I think that you have an error in portlet_url.js of 6.2 (html/js/liferay); this is the line for create the basePortletURL:

      if (!basePortletURL)

      { instance.options.basePortletURL = themeDisplay.getPathContext() + themeDisplay.getPathMain() + '/portal/layout?p_l_id=' + themeDisplay.getPlid(); }

      But if i am not wrong, themeDisplay.getPathMain() is:

      this._pathMain = (this._pathContext + "/c");

      So, at end, you are duplicating pathContext; and if ServletContext returns pathContext, I cannot overrite it with path.ctxt in portlet-ext.properties, becouse now you cannot use this property if java version have the method:

      ServletContext.class.getMethod("getContextPath", new Class[0]);

      So... i cannot do anything! I wait that this investigation will be interested for you

      Regards!

      mrLinus

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 35 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.2 CE GA3