[
https://issues.apache.org/jira/browse/OLINGO-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16335588#comment-16335588
]
Archana Rai commented on OLINGO-1029:
-------------------------------------
Hi Michael,
Can you please try with version 2.0.10.
Thanks,
Archana
> Read Entity with one of the key being a string will fail when the value
> contains a period
> -----------------------------------------------------------------------------------------
>
> Key: OLINGO-1029
> URL: https://issues.apache.org/jira/browse/OLINGO-1029
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 2.0.7
> Environment: Java web application using Olingo v2.0.7
> Reporter: Michael Ho
> Priority: Critical
>
> When upgrade from 2.0.6 to 2.0.7 we encountered a bug. When attempt to read
> an entity specifying the keys, it will fail with the following:
> <message xml:lang="en">"OData - JPA Runtime: JPA query syntax is not
> correct"</message>
> One of the keys is a string with the value has a period: "[email protected]"
> If the period is not part of the value, no error is generated.
> By tracing the code, it seems that we are treating the string literal as a
> member and attempt to "normalize" it, treating the period as part of an alias
> syntax. As a result, it generates an illegal statement.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)