Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7721E10270 for ; Tue, 15 Oct 2013 21:07:59 +0000 (UTC) Received: (qmail 9876 invoked by uid 500); 15 Oct 2013 21:07:50 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 9702 invoked by uid 500); 15 Oct 2013 21:07:47 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 9668 invoked by uid 99); 15 Oct 2013 21:07:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 21:07:46 +0000 Date: Tue, 15 Oct 2013 21:07:46 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1730) ColumnVisibility parse tree nodes do not have correct location offsets for AND and OR nodes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-1730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795636#comment-13795636 ] ASF subversion and git services commented on ACCUMULO-1730: ----------------------------------------------------------- Commit 611463972a52feab96156012c4a9d75c8df3d882 in branch refs/heads/master from [~sonixbp] [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=6114639 ] ACCUMULO-1751 Fixing off by one error. ACCUMULO-1730 Missing ) in test > ColumnVisibility parse tree nodes do not have correct location offsets for AND and OR nodes > ------------------------------------------------------------------------------------------- > > Key: ACCUMULO-1730 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1730 > Project: Accumulo > Issue Type: Bug > Components: client > Affects Versions: 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.5.0 > Reporter: John Stoneham > Assignee: Eric Newton > Priority: Trivial > Fix For: 1.4.5, 1.5.1, 1.6.0 > > > 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? -- This message was sent by Atlassian JIRA (v6.1#6144)