You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2016/02/11 20:55:18 UTC

[jira] [Assigned] (OLINGO-879) Edm.Decimal Literal Validation incorrect

     [ https://issues.apache.org/jira/browse/OLINGO-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bolz reassigned OLINGO-879:
-----------------------------------

    Assignee: Michael Bolz

> Edm.Decimal Literal Validation incorrect
> ----------------------------------------
>
>                 Key: OLINGO-879
>                 URL: https://issues.apache.org/jira/browse/OLINGO-879
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 1.1.0
>            Reporter: Michael Burwig
>            Assignee: Michael Bolz
>            Priority: Minor
>
> The regex pattern (see below) that is used in {{EdmDecimal.java}} to validate Edm.Decimal literals is not in accordance with:
> http://www.odata.org/documentation/odata-version-2-0/json-format/#PrimitiveTypes
> http://www.odata.org/documentation/odata-version-2-0/overview/#AbstractTypeSystem
> E.g. {{"0.0"}} is wrongfully recognized as a valid Edm.Decimal literal.
> {code:title=EdmDecimal.java|borderStyle=solid}
>   private static final Pattern PATTERN =
>       Pattern.compile("(?:\\+|-)?(?:0*(\\p{Digit}+?))(?:\\.(\\p{Digit}+?)0*)?M|m)?");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)