[teiid-issues] [JBoss JIRA] (TEIID-4056) OData - PUT cannot parse entity

RH Bugzilla Integration (JIRA) issues at jboss.org
Wed Jun 15 04:47:00 EDT 2016


    [ https://issues.jboss.org/browse/TEIID-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252655#comment-13252655 ] 

RH Bugzilla Integration commented on TEIID-4056:
------------------------------------------------

Juraj Duráni <jdurani at redhat.com> changed the Status of [bug 1316497|https://bugzilla.redhat.com/show_bug.cgi?id=1316497] from ON_QA to VERIFIED

> OData - PUT cannot parse entity
> -------------------------------
>
>                 Key: TEIID-4056
>                 URL: https://issues.jboss.org/browse/TEIID-4056
>             Project: Teiid
>          Issue Type: Sub-task
>          Components: OData
>            Reporter: Juraj Duráni
>            Assignee: Steven Hawkins
>             Fix For: 9.0, 8.12.5
>
>
> 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:*
> {code:plain}
> {"intnum at odata.type":"Int32","intnum":5,"stringval at odata.type":"String","stringval":"5","timestampval at odata.type":"DateTimeOffset","timestampval":"2005-01-01T00:00:05Z","clobval at odata.type":"Binary","clobval":"Y2xvYl92YWx1ZV8wMDAwNQ=="}
> {code}
> *Entity XML:*
> {code: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>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the teiid-issues mailing list