Rafael Coutinho created TEIID-4897:
--------------------------------------
Summary: Null pointer on ExecutionContext.getSubject().getPrincipals()
Key: TEIID-4897
URL:
https://issues.jboss.org/browse/TEIID-4897
Project: Teiid
Issue Type: Bug
Affects Versions: 8.11
Reporter: Rafael Coutinho
Assignee: Steven Hawkins
Priority: Minor
Is there any configuration that would avoid my translator to get the user logged into the
TEIID connection?
I'm extending the jdbc connector and during a query i want to get the currently logged
user as displayed below.
However I always get null for getSubject.
@Override
public ResultSetExecution createResultSetExecution(QueryExpression command,
ExecutionContext executionContext, RuntimeMetadata metadata, Connection conn) throws
TranslatorException {
try {
System.out.println(executionContext.getSubject());
System.out.println(executionContext.getSubject().getPrincipals());
} catch (Exception e) {
System.err.println(e.getMessage());
}
return new SagenceIonicTranslatorExecution(command, conn, executionContext, this);
}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)