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

DuplicateFileException is used at both DLFileEntryLocalServiceImpl and FileSystemStore, we should use different exceptions

    Details

      Description

      This ticket refers to some internal implementation issues, and thus cannot be tested by QA

      DuplicateFileException is thrown at DLFileEntryLocalServiceImpl and FileSystemStore, but this error has different meanings:

      1. DLFileEntryLocalServiceImpl.validateFile: It is launched when we have two DLFileEntries duplicated at database, with same title
      2. FileSystemStore, at multiple methods: It is launched when we have two files at filesystem with same name

      We should use different exceptions and show different error messages to final user (now, both cases displays: "duplicated filename, try with other")

      For example, create a new DuplicateDLFileEntryException

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Alpha 2