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

Editing DLFileEntry shows wrong action buttons with OVERRIDE_CHECKOUT permissions

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.2.1 CE GA2
    • Fix Version/s: 7.0.0 M4
    • Component/s: Documents & Media
    • Labels:
      None
    • Story Points:
      6

      Description

      If a user has OVERRIDE_CHECKOUT permissions, the edit_file_entry.jsp will render wrong buttons because it thinks, that the file was locked. The relevant code is here:
      https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/com/liferay/portlet/documentlibrary/service/impl/DLFileEntryServiceImpl.java#L576-L581

      Steps to reproduce:
      1. Create a new file with view, edit and delete permissions for user role
      2. "edit" file and check buttons with a non-admin user
      You will see "Publish", "Checkout" and "Abort" buttons

      3. Give user role override checkout permissions on the file
      4. "edit" file again with non-admin user
      Now the "Checkout" button is gone and you have "Save and Checkin" and "Cancel and Checkout" buttons.

      The code in current master differs, so maybe it's already fixed, not sure about it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              mod David Kubitza
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 37 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 M4