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

When generating FriendlyURL for documents on Display Pages with other site/asset Libraries add the group name to identify them.

Details

    • LIMA | #53 DEV | Sep27-Oct25

    Description

      We will accept for documents :

      /urlTitle : we will suppose that the group it's the same for the file and for the site

      /fileEntryId : to maintain backwards compatibility

      /groupFriendlyURL/urlTitle : when the site and the group of the file is not the same.

       

      Acceptance criteria

      Given a site and an connected asset library with documents on both

      And a DPT set as default in the site

      When a user access the documents from the site

      Then the urls for the docs stored in the site will have in the url just the friendlyURL of the doc

       

      Given a site and an connected asset library with documents on both

      And a DPT set as default in the site

      When a user access the documents from the asset library in the site

      Then the urls for the docs stored in the assetLibrary will have the group in the url

       

       

      Test Scenarios

      ID Test Priority Test Scenarios Covered by Backend (Unit/Integration)? Test to add
        5 The default URL of the document will be displayed when accessing a document stored in the current site asset. No FriendlyURLService#DefaultURLIsDisplayedWhenAccessingDocumentInCurrentSite
        5 The friendly URL will contain the group info to identify the attribution when accessing other site documents. No FriendlyURLService#URLIsDisplayedWithGroupWhenAccessingDocumentInOtherSite
        5 The friendly URL will contain the group info to identify the attribution when accessing a document stored in an asset library. Yes
      FileEntryInfoDisplayContributorTest .testDisplayPageURLFileFromDepotEntry
      NO
        5 The fileEntryId can still be used to access the document friendlyURL Yes
      FileEntryLayoutDisplayPageProviderTest
      .testGetLayoutDisplayPageObjectProviderFileEntryWithValidFileEntryId
      Covered by DMFileEntry#CanViewDocumentWithEditedDisplayPageTemplate 

      Attachments

        Issue Links

          Activity

            People

              austin.chiang Austin Chiang
              alicia.garcia Alicia Garcia
              SE Support SE Support
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  Master
                  7.4.13 DXP U48