Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5909

Path matching is not correctly applied to glob patterns

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: API 2.14.0
    • Fix Version/s: API 2.14.2
    • Component/s: API
    • Labels:
      None

      Description

      org.apache.sling.api.resource.path.Path#matches does not allow matching patterns as sub-paths. With the current implementation the following test will fail:

      final Path path = new Path("/");
      assertTrue(path.matches("glob:/apps/myproject/components/**/*.html"));
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                radu Radu Cotescu
                Reporter:
                radu Radu Cotescu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: