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

MissingReferenceException is printed to console

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Staging
    • Labels:
    • Fix Priority:
      4

      Description

      To reproduce:
      Execute

      ant -f build-test.xml run-selenium-test -Dtest.class=StagingUsecase#TrashEntryReferencePublishing
      

      or
      1. Add a new Site
      2. Add a new Page
      3. Enable local staging
      4. Add a new Document
      5. Add a new Web Content and insert a link to the previously uploaded Document
      6. Add a Web Content Display portlet to the page and select the previously created Web Content
      7. Add a Documents and Media portlet to a page
      8. Publish from Control Panel

      • Uncheck "Delete portlet data before importing."
      • Select "Choose Content"
      • Select Date Range: All
      • Hit Publish
        Expected: Document can be seen in the Web Content on Live

      9. Move the Document to Trash on Live (e.g. using the Documents and Media portlet)
      10. Publish from Control Panel

      • Uncheck "Delete portlet data before importing."
      • Select "Choose Content"
      • Select Date Range: All
      • Uncheck "Documents and Media"
      • Uncheck "Referenced Content" in Web Content settings
      • Hit Publish

      Actual:
      When publication fails due to MissingReferenceException the trace is printed to console
      Publication error is printed in details, as expected

      Expected:
      No exception to be thrown to console
      Publication error printed in details

      Tested on master 234fb27

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                23 weeks ago

                Packages

                Version Package
                Master