[
https://issues.apache.org/jira/browse/OLINGO-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephan Klevenz resolved OLINGO-195.
------------------------------------
Resolution: Not A Problem
The JSON presentation of the double is wrong.
OData 2.0:
Edm.Double Literal form of Edm.Double as used in URIs formatted as a JSON
string
http://www.odata.org/documentation/odata-version-2-0/json-format/
In the nerd dinner feed EdmDouble values e.g.
"Latitude": 45.036987
have to be presented as strings:
"Latitude": "45.036987"
> Read Fead throws exception for json content-type response having Edm.Double
> values
> ----------------------------------------------------------------------------------
>
> Key: OLINGO-195
> URL: https://issues.apache.org/jira/browse/OLINGO-195
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 1.0.0, V2 1.1.0
> Reporter: Sumitesh R S
> Assignee: Stephan Klevenz
> Priority: Blocker
> Fix For: V2 1.2.0
>
>
> org.apache.olingo.odata2.api.ep.EntityProvider.readFeed(String, EdmEntitySet,
> InputStream, EntityProviderReadProperties) throws exception with null message
> and MessageReference key
> org.apache.olingo.odata2.api.ep.EntityProviderException.INVALID_PROPERTY_VALUE
> for json data having Edm.Double response. Example url -
> http://www.nerddinner.com/Services/OData.svc/Dinners?$top=100&$format=Json.
> The error seems to be coming because of missing implementation for
> Edm.Double in JsonPropertyConsumer.readSimpleProperty
--
This message was sent by Atlassian JIRA
(v6.2#6252)