OData / OData/odataorg.github.io
V4 Northwind sample doesn't accept unquoted type names in cast/isof
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 73
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Description
For this request:
http://services.odata.org/V4/Northwind/Northwind.svc/Products?$filter=(ProductID eq cast(1,Edm.Int32))
server responds with 400 Bad request
However, this works with the server
http://services.odata.org/V4/Northwind/Northwind.svc/Products?$filter=ProductID eq cast(1, 'Edm.Int32')
OData V4 ABNF requires that type name be unquoted. So the sample service needs fixing.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two Products filter requests against the V4 Northwind sample service and compare their handling of cast type names. Find the sample-service configuration or parser path responsible for cast/isof type-name parsing; done means the unquoted Edm.Int32 form is accepted as required by the OData V4 ABNF while the existing quoted form continues to work.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100