[teiid-issues] [JBoss JIRA] (TEIID-4897) Null pointer on ExecutionContext.getSubject().getPrincipals()
Steven Hawkins (JIRA)
issues at jboss.org
Wed Dec 6 10:54:10 EST 2017
[ https://issues.jboss.org/browse/TEIID-4897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Hawkins closed TEIID-4897.
---------------------------------
> 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.5.0#75005)
More information about the teiid-issues
mailing list