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

Staging with Organization roles won't work

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.2.1, 5.2.2
    • Fix Version/s: 5.2.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Liferay 5.1.1, 5.2.1 on Tomcat 5.5
    • Branch Version/s:
      5.1.x
    • Backported to Branch:
      Committed

      Description

      1. Create an organization
      2. Create 3 users: Edith the Editor, Rudy the Reviewer, Pablo the Publisher
      3. Create 3 organization roles with appropriate permissions:

      • Content Editor: Manage Pages & Assign Reviewer
      • Content Reviewer: like Content Editors + Approve Proposal
      • Content Publisher: like Content Reviewer + Publish Staging
        4. Assign each role to the created organization, and assign each user to his/her appropriate role (Edith is an Editor, Rudy is a Reviewer, Pablo is a Publisher)
        5. Enable staging and workflow in the organization. Choose a 3-step workflow and assign:
      • Content Reviewer to the second step
      • Content Publisher to the third step

      6. Log in as Edith. Add some content to the staged page and try to Propose Publication. A popup is visible where you can enter a Description but you cannot select a reviewer!
      7. Enter a Description and continue. The page gives an error "Manage Pages is temporarily unavailable" and an exception is thrown:

       113:39:57,650 ERROR [jsp:52] com.liferay.portal.NoSuchUserException: No User exists with the primary key 0
       2        at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:313)
       3        at com.liferay.portlet.tasks.service.impl.TasksReviewLocalServiceImpl.addReview(TasksReviewLocalServiceImpl.java:58)
       4        at com.liferay.portlet.tasks.service.impl.TasksProposalLocalServiceImpl.addProposal(TasksProposalLocalServiceImpl.java:123)
       5        at com.liferay.portlet.tasks.service.impl.TasksProposalLocalServiceImpl.addProposal(TasksProposalLocalServiceImpl.java:57)
       6        at com.liferay.portlet.tasks.service.impl.TasksProposalServiceImpl.addProposal(TasksProposalServiceImpl.java:53)
       7        at com.liferay.portlet.tasks.service.TasksProposalServiceUtil.addProposal(TasksProposalServiceUtil.java:54)
       8        at com.liferay.portlet.communities.action.EditProposalAction.updateProposal(EditProposalAction.java:272)
       9        at com.liferay.portlet.communities.action.EditProposalAction.processAction(EditProposalAction.java:87)
      10        at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:178)
      11        at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:197)
      12        at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:93)
      13        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:57)
      14        at com.liferay.portlet.InvokerPortlet.invoke(InvokerPortlet.java:548)
      15        at com.liferay.portlet.InvokerPortlet.invokeAction(InvokerPortlet.java:577)
      16        at com.liferay.portlet.InvokerPortlet.processAction(InvokerPortlet.java:313)
      17        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:618)
      18        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:403)
      19        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:188)
      20        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      21        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      

        Attachments

        1. 2093.diff
          3 kB
          Amos Fong
        2. Live page after staging.jpg
          157 kB
          Peter Mesotten
        3. Staged page.jpg
          183 kB
          Peter Mesotten

          Issue Links

            Activity

              People

              • Assignee:
                amos.fong Amos Fong
                Reporter:
                limburgie Peter Mesotten
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  10 years, 30 weeks, 3 days ago

                  Packages

                  Version Package
                  5.2.3