Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-26800

Documentation bug about leading slashes in content selector path queries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The documentation for content selectors at https://help.sonatype.com/repomanager3/system-configuration/access-control/content-selectors state that the path part of the expression always has to contain (or match) the leading slash too. But from my experiments this is not true. path =^ "org/" seems to work just the same as path =^ "/org/", or path =~ "org/.*" just like path =~ "/org/.*".

      (Btw. the examples also include a superfluous start-of-input anchor for the regex examples. It is useless as anyway a matches is done, not a find, so start and end of string are matched implicitly already anyway, those examples just erroneously give the impression a find would be used actually)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vampire Björn Kautler
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title