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

WebDAV URL does not work if the title of the document is different than its file name

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 M7
    • Fix Version/s: 7.0.0 Alpha 1
    • Component/s: DM, DM > WebDAV
    • Labels:
      None

      Description

      Steps to Reproduce

      1. Add a new file to Documents and Media making sure the title is different from the file name and does not include the extension
      2. Get the file's WebDAV URL
      3. Access the URL in your browser
      4. Assert file is not downloaded or shown in the browser

      The issue can be seen in DLWebDAVStorageImpl.getResource. The issue is that when it tries to fetch the file entry via:

      FileEntry fileEntry = DLAppServiceUtil.getFileEntry(
      	webDAVRequest.getGroupId(), parentFolderId,
      	titleWithExtension);
      

      "titleWithExtension" is the file entry's file name and not it's title, so the file entry will not be found unless the two are the same.

        Attachments

        1. fixed.PNG
          fixed.PNG
          36 kB
        2. reproduced.PNG
          reproduced.PNG
          24 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 8 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 Alpha 1