forrestzhu / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

ExpressionParser doesn't handle Edm.Decimal values correctly #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http://localhost:6060/service.svc/Entity(123456M)

What is the expected output? What do you see instead?
I expect to see the entity that has an ID of 123456 as per 
http://www.odata.org/developers/protocols/overview#AbstractTypeSystem

Instead in the log I see an Exception:
ERROR - /service.svc/Entity(123456M)
java.lang.IllegalArgumentException: bad keyString: 123456M
    at org.odata4j.core.OEntityKey.parse(OEntityKey.java:144) ~[odata4j-0.4.jar:na]

What version of the product are you using? On what operating system?
0.4 & 0.5-SNAPSHOT

Please provide any additional information below.
The attached patch fixes the issue.

Original issue reported on code.google.com by darr...@pautinka.co.uk on 27 Oct 2011 at 1:10

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by john.spurlock on 5 Nov 2011 at 10:26

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 52b48e0e6429.

Original comment by john.spurlock on 5 Nov 2011 at 10:28