Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1730

ColumnVisibility parse tree nodes do not have correct location offsets for AND and OR nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.5.0
    • 1.6.0
    • client
    • None

    Description

      Trying to do some transformations on visibility strings and running into issues working with the parse tree:

      Clojure 1.5.1
      user=> (import [org.apache.accumulo.core.security ColumnVisibility])
      org.apache.accumulo.core.security.ColumnVisibility
      user=> (def vis (ColumnVisibility. "(W)|(U|V)"))
      #'user/vis
      user=> (.getTermStart (first (.getChildren (.getParseTree vis))))
      1
      user=> (.getTermEnd (first (.getChildren (.getParseTree vis))))
      2
      user=> (.getTermStart (second (.getChildren (.getParseTree vis))))
      0
      user=> (.getTermEnd (second (.getChildren (.getParseTree vis))))
      8

      Shouldn't those last two be 5 and 8?

      Attachments

        Activity

          People

            ecn Eric C. Newton
            jstoneham John Stoneham
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: