-
1. Re: How to access VDB using OData V4 (instead of V2)
rareddy Jan 18, 2016 10:25 AM (in response to simon.evenepoel)try
http://host/odata4/vdb/schema/view?$format=json
I will write some notes here. https://docs.jboss.org/author/display/TEIID/OData+Support
Ramesh..
-
2. Re: How to access VDB using OData V4 (instead of V2)
simon.evenepoel Jan 18, 2016 12:02 PM (in response to rareddy)Hi
Thx for your answer.
I am indeed getting further towards resolving my problem, however now I get a malformed URL exception when there is a TIMESTAMP as part of my primary key and it complains that:
<error> <code>500</code> <message>java.net.URISyntaxException: Illegal character in scheme name at index 10: probesview(metric='BITRATE',timing=2016-01-13 11:25:03.884,topologylocationid=8453) </message> </error>
I assume that this follows from the fact that there is a space in the timestamp. This problem remains if I manually change the timestamp to 2016-01-13T10:25:03.884Z and specify the primary key in my URI: http://localhost:8080/odata4/myvdb/myvirtualmodel/probesview(metric='BITRATE',timing=2016-01-13T10:25:03.884Z,topologylocationid=8453)
Is this something I can avoid? Note that I am using Teiid 8.12.4 in the meantime.
Thx again
Simon
-
3. Re: How to access VDB using OData V4 (instead of V2)
shawkins Jan 18, 2016 2:06 PM (in response to simon.evenepoel)> Is this something I can avoid? Note that I am using Teiid 8.12.4 in the meantime.
It looks like a composite key will only accept a string literal for the timestamp value. So try putting your value in single quotes. I need to dig a little more to see why Olingo won't directly accept the datatimeoffset literal value.
-
4. Re: How to access VDB using OData V4 (instead of V2)
shawkins Jan 19, 2016 11:29 AM (in response to shawkins)Actually there is an issue with our handling of building the entity id to go into the response. We are not properly encoding datatime values. This will require an issue to fix. Can you log one at Teiid - JBoss Issue Tracker
-
5. Re: How to access VDB using OData V4 (instead of V2)
simon.evenepoel Jan 20, 2016 3:57 AM (in response to shawkins)Hi
Thanks for the information!
I created [TEIID-3914] Datetime values not properly encoded in OData4 entity identifiers - JBoss Issue Tracker per your request.
Kind regards
Simon
-
6. Re: How to access VDB using OData V4 (instead of V2)
shawkins Jan 20, 2016 3:08 PM (in response to simon.evenepoel)Thanks Simon. We'll try to get the fix in for 8.13 Final. If not it will be in a later 8.13.x release.