OData / OData/odataorg.github.io

Incorrect OData-Version header in Northwind service

Open
#205 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
73
Forks
106
PR merge metrics
No merged PRs in 30d

Description

Hi,

I’m writing to you because I found an issue in your public Northwind v4 service (which I love btw).

When I send a Post request to:
https://services.odata.org/v4/Northwind/Northwind.svc/$batch

Headers:

Accept:multipart/mixed
Content-Type:multipart/mixed; boundary=batch_id-1581942277805-14

Payload:

--batch_id-1581942277805-14
Content-Type:application/http
Content-Transfer-Encoding:binary

GET Products?$orderby=ProductName&$select=ProductID,ProductName,UnitPrice&$skip=0&$top=20 HTTP/1.1
Accept:application/json;odata.metadata=minimal;IEEE754Compatible=true
Accept-Language:en-US
Content-Type:application/json;charset=UTF-8;IEEE754Compatible=true

I get the following reponse:

--batchresponse_9f4b4742-3191-4a93-8d59-e22fb6ab2412
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 200 OK
OData-Version: 4.0;
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true;charset=utf-8
X-Content-Type-Options: nosniff
Cache-Control: no-cache

...

The bug occurs in the line OData-Version: 4.0; which afaik should NOT contain the semi-colon in the end.

Can you confirm that this is an incorrect header, e.g. not protocol-compliant?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the request against the Northwind v4 $batch endpoint described in the issue and compare the response with the OData protocol requirements. Done means confirming whether the trailing semicolon is invalid and identifying a repository-owned component or test that could be changed; none is named in the issue.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.