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

Action is returned even if it only matches with the beginning of the path

    Details

      Description

      StrutsActionRegistryImpl.getAction(String path) maintains a very lenient rule for returning action paths, probably for supporting wildcard matching.
      A proper wildcard matching logic should be implemented.

      Steps to reproduce the issue

      0) Deploy document-library-hook-1.0.0-SNAPSHOT.war (in document-library-hook.zip you can also find the source code)
      1) Create a folder in Document & Media
      2) Add a document (like a pdf) into the new folder
      3) Use the Document & Media display in a page
      4) Click on the folder created (here custom action is called, the one we want to override)
      5) Click on the specific document (here default behavior should be called, instead it's going inside our hook action)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              istvan.dezsi Istvan Dezsi
              Reporter:
              istvan.dezsi Istvan Dezsi
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 2 days ago

                  Packages

                  Version Package