Bug 1316497

Summary: OData - PUT cannot parse entity
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, 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:
Last Closed: 2016-08-24 11:38:09 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-03-10 11:10:22 UTC
Description of problem:
If user want to update entity using HTTP PUT method, OData service returns error that JSON document is not valid. Even if entity is in XML format.

*URL:* http://localhost:8080/odata4/olingo_basic/Source/PutTable(1) or http://localhost:8080/odata4/olingo_basic/Source/PutTable(2)
*Method:* PUT
*Request reader:* Content-type: application/json or Content-type: application/xml
*Error:* The syntax of the JSON document is not valid.
*Entity JSON:*
{"intnum":"Int32","intnum":5,"stringval":"String","stringval":"5","timestampval":"DateTimeOffset","timestampval":"2005-01-01T00:00:05Z","clobval":"Binary","clobval":"Y2xvYl92YWx1ZV8wMDAwNQ=="}
*Entity XML:*
<?xml version='1.0' encoding='UTF-8'?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:m="http://docs.oasis-open.org/odata/ns/metadata" xmlns:d="http://docs.oasis-open.org/odata/ns/data" xmlns:gml="http://www.opengis.net/gml" xmlns:georss="http://www.georss.org/georss"><category scheme="http://docs.oasis-open.org/odata/ns/scheme"/><content type="application/xml"><m:properties><d:intnum m:type="Int32">4</d:intnum><d:stringval>4</d:stringval><d:timestampval m:type="DateTimeOffset">2004-01-01T00:00:04Z</d:timestampval><d:clobval m:type="Binary">Y2xvYl92YWx1ZV8wMDAwNA==</d:clobval></m:properties></content></entry>

Comment 1 JBoss JIRA Server 2016-03-14 13:04:45 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4056 to Resolved

Comment 2 JBoss JIRA Server 2016-06-15 12:19:46 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4056 to Closed