Exception getting metadata from VDB with Role
---------------------------------------------
Key: TEIID-1275
URL:
https://issues.jboss.org/browse/TEIID-1275
Project: Teiid
Issue Type: Bug
Affects Versions: 7.1.1
Reporter: John Doyle
Assignee: Ramesh Reddy
Attachments: Lobs.vdb, OracleClobs-ds.xml
I've created a VDB with a single role that removes permissions from all tables except
one, which retains read permission.
When a client connects the the VDB, and exception is logged in Teiid and metadata is not
returned to the client.
2010-09-23 16:52:00,248 ERROR [org.teiid.PROCESSOR] (Worker0_QueryProcessorQueue0)
Unexpected exception for request rA9QmIvfb3M7.0
java.lang.IllegalArgumentException: Invalid type: org.teiid.metadata.Column.
at
org.teiid.query.metadata.TransformationMetadata.createInvalidRecordTypeException(TransformationMetadata.java:594)
at
org.teiid.query.metadata.TransformationMetadata.getModelID(TransformationMetadata.java:227)
at
org.teiid.query.metadata.TempMetadataAdapter.getModelID(TempMetadataAdapter.java:139)
at
org.teiid.dqp.internal.process.AuthorizationValidationVisitor.validateEntitlements(AuthorizationValidationVisitor.java:245)
at
org.teiid.dqp.internal.process.AuthorizationValidationVisitor.validateEntitlements(AuthorizationValidationVisitor.java:199)
at
org.teiid.dqp.internal.process.AuthorizationValidationVisitor.visit(AuthorizationValidationVisitor.java:95)
at org.teiid.query.sql.lang.Query.acceptVisitor(Query.java:285)
at
org.teiid.query.sql.navigator.AbstractNavigator.visitVisitor(AbstractNavigator.java:53)
at
org.teiid.query.sql.navigator.PreOrPostOrderNavigator.preVisitVisitor(PreOrPostOrderNavigator.java:126)
at
org.teiid.query.sql.navigator.PreOrPostOrderNavigator.visit(PreOrPostOrderNavigator.java:376)
at org.teiid.query.sql.lang.Query.acceptVisitor(Query.java:285)
at org.teiid.query.validator.Validator.executeValidation(Validator.java:84)
at org.teiid.query.validator.Validator.validate(Validator.java:49)
at org.teiid.dqp.internal.process.Request.validateWithVisitor(Request.java:332)
at org.teiid.dqp.internal.process.Request.validateAccess(Request.java:477)
at org.teiid.dqp.internal.process.Request.generatePlan(Request.java:393)
at
org.teiid.dqp.internal.process.PreparedStatementRequest.generatePlan(PreparedStatementRequest.java:138)
at org.teiid.dqp.internal.process.Request.processRequest(Request.java:460)
at org.teiid.dqp.internal.process.RequestWorkItem.processNew(RequestWorkItem.java:351)
at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:173)
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:49)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:189)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:116)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:290)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: