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

Kaleo Web workflow configuration: confusing messages when publishing to live without approval

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE RC1, 6.2.0 CE RC2
    • Fix Version/s: 6.2.0 CE RC1, 6.2.0 CE RC2
    • Component/s: Staging, WCM, Workflow
    • Labels:
      None
    • Environment:
      Tomcat 7.0 + MySQL 5. Portal 6.2.x master GIT ID: ab3891a0e643fae1de9e24eba39d3211decb3c23.
      Plugins ee-6.2.x master GIT ID: 863dfb49565d8efe89551667500ab3aad836382d.
    • Fix Priority:
      5

      Description

      Steps to Reproduce:

      1. Deploy Kaleo Web Plugin
      2. Add a Community Site
      3. Unflag Enable propagation of changes from the site template Community Site
      4. Click Staging > Activate Local Live
      5. Flag Enabled on Public Pages
      6. Click Workflow Configuration
      7. Select [Single Approver (Version 1)] next to Page Revision
      8. Add a Site Role
        Name: Staging Admin
      9. Click Define Permissions > Site Administration > Pages > Site Pages
      10. Flag all the Action checkboxes
      11. Add a Site Role
        Name: Web Content Creator
      12. Click Define Permissions > Site Administration > Content > Web Content
      13. Flag all the Action checkboxes
      14. Click Define Permissions > Site Administration > Applications > Web Content Display
      15. Flag the Action checkbox > Save
      16. Add a User
        Screen Name: contentcreator
        Email Address: contentcreator@liferay.com
        First Name: ContentCreator
      17. Set a password
      18. Click Sites under User Information
      19. Click Select link > Community Site Test > Save
      20. Click Roles under User Information
      21. Click Select link near Site Roles > Staging Admin
      22. Click Select link near Site Roles > Web Content Creator
      23. Navigate to Community Site Test
      24. Assert staging
      25. Sign Out
      26. Sign in as contentcreator@liferay.com
      27. Navigate to Community Site Test > Staging
      28. Add Web Content Display portlet
      29. Click Staging > Submit for Publication
      30. Click Publish to Live > Publish

      Expected result:
      ContentCreator should not be able to publish to live, as another user must approve the publication first.

      Actual result:
      ContentCreator cannot publish to live, but the Publish to Live window displays both a, “Your request completed successfully” message and “Failed” message. When the user clicks on “Details?” next to the “Failed" message the following error message is displayed:

      An unexpected error occurred with the publication process. Please check your portal and publising configuration.
      com.liferay.portal.NoSuchLayoutException: No Layout exists with the primary key 0
      

      These conflicting messages are confusing.
      Either a message should be displayed explaining the the user ContentCreator does not have permission to publish directly to live, or the Publish to Live button should not display at all when the current user does not have permission to publish to live.
      When navigating to the live site, the Web Content Display portlet is not published as expected.
      See attached .gif.

        Attachments

          Activity

            People

            • Assignee:
              julio.camarero Julio Camarero (Inactive)
              Reporter:
              jared.zimmerman Jared Zimmerman (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 47 weeks, 5 days ago

                Packages

                Version Package
                6.2.0 CE RC1
                6.2.0 CE RC2