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

UndeployedExternalRepositoryException is being initialized incorrectly in TemporaryFileEntryRepositoryDefiner

    Details

      Description

      There is a line of code in the TemporaryFileEntryRepositoryDefiner class that instantiates a new UndeployedExternalRepositoryException. The problem is, it passes a full-blown message into the constructor, when the constructor is just expecting a class name with which it will create its own message. This will cause a grammatically nonsensical message to be included with the exception if it is ever thrown.

      Steps to Reproduce
      Unfortunately, there does not seem to be an easy way to make this exception occur, so I cannot give any steps to reproduce.

      Expected Result: The message would make grammatical sense, e.g. "Repository definer com.liferay.portal.repository.temporaryrepository.TemporaryFileEntryRepositoryDefiner is not initialized".
      Actual Result: The message says "Unable to load external repository class Repository definer com.liferay.portal.repository.temporaryrepository.TemporaryFileEntryRepositoryDefiner is not initialized because its plugin is not deployed", which doesn't make grammatical sense.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              michael.bowerman Michael Bowerman
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Michael Bowerman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                15 weeks, 2 days ago

                  Packages

                  Version Package
                  7.4.1 CE GA2 DXP 7,4
                  Master