1

Closed

Content negotiation doesn't fallback correctly with old odata version

description

In ODataServiceSample project in http://aspnet.codeplex.com

Send request:
GET /Products HTTP/1.1
Host: localhost:50231
Connection: keep-alive
Accept: application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;odata=verbose;q=0.5, /;q=0.1
MaxDataServiceVersion: 2.0
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17
Referer: http://localhost:50231/odataservice/ODataTestClient.html?testNumber=9
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

It get 500 error without error details

The expected result should be payload with json verbose.
Closed Mar 30, 2013 at 1:45 AM by HongmeiG
a dup of 830.

comments