[teiid-issues] [JBoss JIRA] (TEIID-3553) Odata - if table name is ambiguous, teiid returns result from first table

Juraj Duráni (JIRA) issues at jboss.org
Thu Sep 3 02:33:05 EDT 2015


    [ https://issues.jboss.org/browse/TEIID-3553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104852#comment-13104852 ] 

Juraj Duráni commented on TEIID-3553:
-------------------------------------

[~shawkins] I tried to reproduce the issue. I used your unit tests. Is NPE root problem? :
[org.teiid.ODATA] (http-/127.0.0.1:8180-4) TEIID16012 Could not produce a successful OData response.  Returning status ServerErrorException with message Internal Server Error.: org.odata4j.exceptions.ServerErrorException
	at org.teiid.odata.LocalClient.executeSQL(LocalClient.java:365) [classes:]
	at org.teiid.odata.TeiidProducer.getNavProperty(TeiidProducer.java:89) [classes:]
	at org.teiid.odata.TeiidProducer.getNavProperty(TeiidProducer.java:55) [classes:]
	at org.odata4j.producer.resources.PropertyRequestResource.getNavProperty(PropertyRequestResource.java:194) [odata-core-0.8.7.redhat-3.jar:0.8.7.redhat-3]
	...
	...
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]
Caused by: java.lang.NullPointerException
	at org.teiid.odata.EntityList.getEntity(EntityList.java:56) [classes:]
	at org.teiid.odata.EntityList.addEntity(EntityList.java:48) [classes:]
	at org.teiid.odata.LocalClient.executeSQL(LocalClient.java:334) [classes:]
	... 33 more

> Odata - if table name is ambiguous, teiid returns result from first table
> -------------------------------------------------------------------------
>
>                 Key: TEIID-3553
>                 URL: https://issues.jboss.org/browse/TEIID-3553
>             Project: Teiid
>          Issue Type: Quality Risk
>          Components: OData
>    Affects Versions: 8.7.1.6_2
>            Reporter: Juraj Duráni
>            Assignee: Steven Hawkins
>             Fix For: 8.7.1.6_2, 8.12
>
>
> If table name is ambiguous, teiid returns data from first matching table. I expect, that it should return error message similar to exception which is thrown via JDBC.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the teiid-issues mailing list