[
https://issues.jboss.org/browse/TEIID-4048?page=com.atlassian.jira.plugin...
]
Ramesh Reddy edited comment on TEIID-4048 at 3/17/16 4:56 PM:
--------------------------------------------------------------
PATCH verb is not allowed on Edm.Stream properties. You should have received 405 Method
not allowed. All you can use is GET and PUT. BTW you did not get 405 because your issued
the query at entity level, that is a merge of entity.
Also above you test is wrong, you can NOT update the Edm.Stream properties in an entity
payload. They need to be done directly at the property level. Look in TEIID-4054 comments
for more information on how Edm.Stream properties need to be handled.
was (Author: rareddy):
PATCH verb is not allowed on Edm.Stream properties. You should have received 405 Method
not allowed. All you can use is GET and PUT
Also above you test is wrong, you can NOT update the Edm.Stream properties in an entity
payload. They need to be done directly at the property level. Look in TEIID-4054 comments
for more information on how Edm.Stream properties need to be handled.
OData - update of clob value using HTTP method PATCH does not set
correct value of the column
---------------------------------------------------------------------------------------------
Key: TEIID-4048
URL:
https://issues.jboss.org/browse/TEIID-4048
Project: Teiid
Issue Type: Sub-task
Components: OData
Reporter: Juraj DurĂ¡ni
Assignee: Ramesh Reddy
This affects both XML and JSON format.
*URL:*
http://localhost:8080/odata4/olingo_basic/Source/PatchTable(2)
*Entity:*
{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}
*Result of GET:*
{code:xml}
<d:clobval
m:type="Binary">NjM2YzZmNjI1Zjc2NjE2Yzc1NjU1ZjMwMzAzMDMwMzU=</d:clobval>
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)