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

Friendly URL validation of pages does not respect wildcard keywords

    Details

      Description

      LPS-29108 has introduced the usage of wildcards (e.g. api*) at the end of not allowed keywords (layout.friendly.url.keywords).
      However, the validation in LayoutImpl.validateFriendlyURLKeyword is not respecting that suffix the same way VirtualHostFilter does.

      Steps to reproduce:

      1. Add a page and display it
      2. Go to Manage -> Page
      3. As friendly URL type: /webdav/asdf
      4. Save the form, it should be successful

      After the fix:

      1. you should see when when saving form: "Please enter a friendly URL that does not conflict with the keyword /webdav."
      2. you should be unable to specify any URL starting with a wildcard keyword from layout.friendly.url.keywords.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              paul.piao Paul Piao (Inactive)
              Reporter:
              daniel.reuther Daniel Reuther
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 31 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M2