Bug 1316497 - OData - PUT cannot parse entity
Summary: OData - PUT cannot parse entity
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: 6.3.0
Assignee: Van Halbert
QA Contact: Juraj Duráni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 11:10 UTC by Juraj Duráni
Modified: 2016-08-24 11:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-24 11:38:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-4056 0 Major Closed OData - PUT cannot parse entity 2016-06-15 12:19:46 UTC

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


Note You need to log in before you can comment on or make changes to this bug.