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

AdvanceFileSystemStore - getFileNames return values contain extra slash when dirName has a trailing slash

    Details

      Description

      When FileSystemStore#getFileNames is called with a dirName which ends in a slash (a valid path name), the returned file names contain a double slash (an invalid path name).

      E.g:
      store.getFileNames(companyId, repositoryId, "directory") => ["directory/1", "directory/2"]
      store.getFileNames(companyId, repositoryId, "directory/") => ["directory//1", "directory//2"]

      Store methods should either fail when a dirName with a trailing slash is provided, or properly handle it.

      This is not reproducible by normal portal usage.

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              adolfo.perez Adolfo Pérez
              Participants of an Issue:
              Recent user:
              Hong Zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                2 years, 26 weeks ago

                Packages

                Version Package