Bug 1298916

Summary: OData v4 - definition of OData-Isolation header is either being ignored or is not implemented corectly
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: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aszczucz, blafond, drieden, jolee, mbaluch, thauser, vhalbert
Target Milestone: ER2   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Teiid - OData v4
Last Closed: 2016-08-24 11:46:18 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 2016-01-15 12:16:59 UTC
Description of problem:
Teiid does not process header *OData-Isolation: snapshot* defined in request correctly.
* if service (Teiid) does not support this option it must return error 412
* if Teiid does supports this option then it is not processed correctly, because modifications made during request are visbile

See http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398231


Steps to Reproduce:
1. Request [1]
2. Request [2]
3. Data modification via JDBC
4. Request [2]

Data returned from steps 2. and 4. are different.

[1]
Jsoup.connect("http://localhost:8080/odata4/Redshift/Source/SmallA/?$select=IntKey")
                .header("Authorization", "Basic "+ Base64.encodeBytes(("user:user").getBytes()))
                .header("OData-MaxVersion", "4.0")
                .header("Accept", "application/xml")
                .header("OData-Isolation", "snapshot")
                .header("Prefer", "odata.maxpagesize=10")

[2]
Jsoup.connect("http://localhost:8080/odata4/Redshift/Source/SmallA/?$select=IntKey&$skiptoken=+koj1e+zqsMU--10")
                .header("Authorization", "Basic "+ Base64.encodeBytes(("user:user").getBytes()))
                .header("OData-MaxVersion", "4.0")
                .header("Accept", "application/xml")
                .header("Prefer", "odata.maxpagesize=10")

Comment 1 Van Halbert 2016-02-16 18:26:59 UTC
Per engineers, deferring till Teiid supports 4.2 Olingo.

Comment 3 JBoss JIRA Server 2016-03-16 23:14:55 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-3906 to Coding In Progress

Comment 4 JBoss JIRA Server 2016-03-17 14:06:49 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-3906 to Resolved

Comment 5 Van Halbert 2016-03-17 19:37:16 UTC
Due to the issues found with OData, this issue will now be fixed because Teiid will be upgrading Olingo.

Comment 6 JBoss JIRA Server 2016-06-15 12:36:49 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3906 to Closed