Bug 1194292

Summary: NPE while accessing VDB via OData access
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Juraj Duráni <jdurani>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact: Juraj Duráni <jdurani>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: atangrin, dlesage, mbaluch, vhalbert
Target Milestone: ER1   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 11:48:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juraj Duráni 2015-02-19 13:43:49 UTC
Description of problem:

If wrong odata URL is provided, an internal error is displayed:
URL: http://localhost:8080/odata/
Exception: org.teiid.core.TeiidRuntimeException: TEIID16008 VDB name not defined on the URL. The url format is http://{host}:{port}/odata/{vdb-name}[.{vdb-version}]/...
org.teiid.odata.TeiidProducerProvider.getContext(TeiidProducerProvider.java:88)
org.teiid.odata.TeiidProducerProvider.getContext(TeiidProducerProvider.java:47)
....
This behavior is quite expected.

URL: http://localhost:8080/odata
Exception: java.lang.NullPointerException
org.teiid.odata.TeiidProducerProvider.getContext(TeiidProducerProvider.java:80)
org.teiid.odata.TeiidProducerProvider.getContext(TeiidProducerProvider.java:47)
...
I expect that teiid should return similar exception


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information:

Comment 2 JBoss JIRA Server 2015-03-20 15:08:13 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-3345 to Resolved

Comment 3 JBoss JIRA Server 2016-01-26 18:00:54 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3345 to Closed