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

Web content URL validator accepts URLs in which the layout friendly URL directly follows the servlet mapping

    Details

      Description

      Description
      Whenever a servlet mapping appears in a Liferay URL, it must be followed by a group friendly URL. However, the web content URL validator accepts URLs in which the group friendly URL does not follow the servlet mapping.

      Steps to reproduce

      1. Start up Liferay and log in as the admin user
      2. Navigate to Liferay > Content > Web Content > + (Add Button) > Basic Web Content.
      3. Switch the "Content" field to Code view.
      4. Paste the following HTML into the "Content" field.
        <p><a href="http://localhost:8080/web/home">test</a></p>
      5. Click on the Publish button

      Expected Result: A "The content references a missing page" error would be appear, and the web content would not be successfully added.
      Actual Result: The web content article is added successfully

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            michael.bowerman Michael Bowerman
            Participants of an Issue:
            Recent user:
            Jayda Wu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              14 weeks, 5 days ago

                Packages

                Version Package