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 Burwig (JIRA)" <ji...@apache.org> on 2016/02/11 14:33:18 UTC
[jira] [Created] (OLINGO-879) Edm.Decimal Literal Validation
incorrect
Michael Burwig created OLINGO-879:
-------------------------------------
Summary: 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
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)