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

Make generating sitemap.xml more robust if layout is referenced by a journal article doesn't exist

    Details

    • Fix Priority:
      3

      Description

      Description

      For a given site, generating sitemap.xml can involve requesting a layout (e.g., display page) that might not exist, due to an inconsistent database or some other reason. In those cases no file is generated, a message of "Not Found" is displayed:

      and the following trace is printed to log:

      ERROR [http-bio-9090-exec-10][PortletRequestProcessor:466] Forward does not exist
      

      The expected behavior could be:

      1. to print a WARN log trace informing that such and such layout cannot be found,
      2. to generate a sitemap.xml without the inconsistent references.

      Reproducing steps

      A quick way to generate the error message and the log trace would be

      1. In the site, create at least a display page and a web content pointing to it.
      2. In the database, table layout, modify the value of layoutuuid for the display page.
      3. Request http://localhost:8080/sitemap.xml.

      Observed: No file is produced. A message of "Not Found" is displayed and a trace of "Forward does not exist" (see Description section).
      Expected: A file without inconsistencies is produced. A WARN log trace is printed showing information about the layout that couldn't be found.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              ricardo.couso Ricardo Couso
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 30 weeks ago

                  Packages

                  Version Package