You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@rya.apache.org by "Kevin Chilton (JIRA)" <ji...@apache.org> on 2016/08/04 20:53:20 UTC

[jira] [Created] (RYA-145) Entity Centric Index throws exception if user has no authorizations.

Kevin Chilton created RYA-145:
---------------------------------

             Summary: Entity Centric Index throws exception if user has no authorizations.
                 Key: RYA-145
                 URL: https://issues.apache.org/jira/browse/RYA-145
             Project: Rya
          Issue Type: Bug
          Components: clients
    Affects Versions: 3.2.10
            Reporter: Kevin Chilton
            Assignee: Caleb Meier
             Fix For: 3.2.10


To replicate:

Use a rya client that connects to an Accumulo backend (mock or real; both replicate this bug) and provide an empty string as the authorizations for the user within the Rya configuration object.

You should see the following exception:
Exception in thread "main" java.lang.IllegalArgumentException: Empty authorization
	at org.apache.accumulo.core.security.Authorizations.checkAuths(Authorizations.java:95)
	at org.apache.accumulo.core.security.Authorizations.setAuthorizations(Authorizations.java:195)
	at org.apache.accumulo.core.security.Authorizations.<init>(Authorizations.java:184)
	at mvm.rya.indexing.accumulo.entity.AccumuloDocIdIndexer.runQuery(AccumuloDocIdIndexer.java:424)
	at mvm.rya.indexing.accumulo.entity.AccumuloDocIdIndexer.access$1(AccumuloDocIdIndexer.java:401)
	at mvm.rya.indexing.accumulo.entity.AccumuloDocIdIndexer$2.hasNext(AccumuloDocIdIndexer.java:275)
	at info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73)
	at mvm.rya.rdftriplestore.RdfCloudTripleStoreConnection$1.hasNext(RdfCloudTripleStoreConnection.java:405)
	at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
	at org.openrdf.sail.helpers.SailBaseIteration.hasNext(SailBaseIteration.java:61)
	at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
	at org.apache.rya.indexing.pcj.storage.accumulo.PcjTables.populatePcj(PcjTables.java:567)
	at org.apache.rya.indexing.pcj.storage.accumulo.PcjTables.createAndPopulatePcj(PcjTables.java:627)
	at RyaDirectExample.createPCJ(RyaDirectExample.java:816)
	at RyaDirectExample.main(RyaDirectExample.java:107)

Expected Behavior:
The application should process the request using the empty authorizations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)