You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Chris Paine (JIRA)" <ji...@apache.org> on 2015/02/13 15:15:11 UTC
[jira] [Commented] (OLINGO-529) Edm.Int64 key is not supported
[ https://issues.apache.org/jira/browse/OLINGO-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320116#comment-14320116 ]
Chris Paine commented on OLINGO-529:
------------------------------------
In method readSimpleProperty of org.apache.olingo.odata2.core.ep.consumer.JsonPropertyConsumer there is no support for Int64 - in switch statement the code defaults to String and fails as tokenType is not a String (but is number).
Code then throws a EntityProviderException.INVALID_PROPERTY_VALUE
May be that the JPA reference is working with XML not JSON.
However this does crash if you try to read a value from a data source with metadata indicating it is Edm.Int64 if you use JSON.
> Edm.Int64 key is not supported
> ------------------------------
>
> Key: OLINGO-529
> URL: https://issues.apache.org/jira/browse/OLINGO-529
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.1
> Reporter: Sarah Lavie
> Assignee: Christian Amend
> Priority: Critical
> Fix For: V2 2.0.2
>
>
> Entities with key of type Edm.Int64 can not be read or updated.
> The same holds for entities with single key.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)