Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-269

Liferay's ServiceContext not set properly for portlets inside the control panel.

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: liferay-faces-3.1.0-ga1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Liferay CE 6.0.6, Portletfaces Bridge 2.0.1

      Description

      If you add a portlet into the "Content" section of Liferay's control panel (the one with the scope (=Organization, Community) drop-down), the scope of all resource requests is wrong when retrieved through

      ServiceContextThreadLocal.getServiceContext().getScopeGroupId()
      

      This is because Liferay uses the GET request parameter "doAsGroupId" to set the scope ServiceContext. Thus, this parameter needs to be retrieved by the bridge and appended to all resource requests.
      Please also see the attached patch (sorry, I used spaces for indentation instead of tabs).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              neil.griffin Neil Griffin
              Reporter:
              tanee Matthias Maiershofer (Inactive)
              Participants of an Issue:
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package