Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9049

RuleBasedAuthorizationPlugin should use regex in params instead of just String.equal()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1, master (7.0)
    • Component/s: None
    • Labels:
      None

      Description

      Params can have complex values which will be difficult to capture in a single string. So, a user can specify a full regex if it is prefixed with a "REGEX:"

      example:

      "{params" : {"action":"REGEX:(i?)create"}
      }
      
      1. SOLR-9049.patch
        8 kB
        Noble Paul
      2. SOLR-9049.patch
        8 kB
        Noble Paul

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit cf16f5d13d41f61a748e6376c85eb4941cc4a293 in lucene-solr's branch refs/heads/master from Noble Paul
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=cf16f5d ]

        SOLR-9049: RuleBasedAuthorizationPlugin supports regex in param values eg: "command" : "REGEX:(i?)create"

        Show
        jira-bot ASF subversion and git services added a comment - Commit cf16f5d13d41f61a748e6376c85eb4941cc4a293 in lucene-solr's branch refs/heads/master from Noble Paul [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=cf16f5d ] SOLR-9049 : RuleBasedAuthorizationPlugin supports regex in param values eg: "command" : "REGEX:(i?)create"
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit aa6ba7f3be420456c51c026d9cd64458c88f539c in lucene-solr's branch refs/heads/branch_6x from Noble Paul
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=aa6ba7f ]

        SOLR-9049: RuleBasedAuthorizationPlugin supports regex in param values eg: "command" : "REGEX:(i?)create"

        Show
        jira-bot ASF subversion and git services added a comment - Commit aa6ba7f3be420456c51c026d9cd64458c88f539c in lucene-solr's branch refs/heads/branch_6x from Noble Paul [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=aa6ba7f ] SOLR-9049 : RuleBasedAuthorizationPlugin supports regex in param values eg: "command" : "REGEX:(i?)create"
        Hide
        hossman Hoss Man added a comment -

        Manually correcting fixVersion per Step #S5 of LUCENE-7271

        Show
        hossman Hoss Man added a comment - Manually correcting fixVersion per Step #S5 of LUCENE-7271

          People

          • Assignee:
            noble.paul Noble Paul
            Reporter:
            noble.paul Noble Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development