<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Devs,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">As of now, when user passes 'Accept' header in request other than JSON and XML using curl command then it returns 200 OK response with json format data.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In api-ref guide [1] also it's not clearly mentioned about what response it should return if invalid value for 'Accept' header is specified. IMO instead of 'HTTP 200 OK' it should return 'HTTP 406 Not Acceptable' response.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have checked this behavior for nova, cinder and glance and for all of these it is returning HTTP 200 OK which is invalid.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Please let me know your opinion for the same.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Steps to reproduce:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Request:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">curl -g -i -X GET <a href="http://controller/volume/v2/c72e66cc4f1341f381e0c2eb7b28b443/volumes/detail">
<span style="color:windowtext">http://controller/volume/v2/c72e66cc4f1341f381e0c2eb7b28b443/volumes/detail</span></a> -H "User-Agent: python-cinderclient" -H "Accept: application/abc" -H "X-Auth-Token: cd85aff745ce4dc0a04f686b52cf7e4f"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Response:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">HTTP/1.1 200 OK<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Date: Thu, 31 Aug 2017 07:12:18 GMT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Server: Apache/2.4.18 (Ubuntu)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">x-compute-request-id: req-ab48db9d-f869-4eb4-95f9-ef8e90a918df<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Content-Type: application/json<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Content-Length: 2681<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">x-openstack-request-id: req-ab48db9d-f869-4eb4-95f9-ef8e90a918df<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Connection: close<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[1] <a href="https://developer.openstack.org/api-ref/block-storage/v2/#list-volumes-with-details">
<span style="color:windowtext">https://developer.openstack.org/api-ref/block-storage/v2/#list-volumes-with-details</span></a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Niraj Singh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
</div>
<br clear="both">
______________________________________________________________________<BR>
Disclaimer: This email and any attachments are sent in strictest confidence<BR>
for the sole use of the addressee and may contain legally privileged,<BR>
confidential, and proprietary data. If you are not the intended recipient,<BR>
please advise the sender by replying promptly to this email and then delete<BR>
and destroy this email and any attachments without any further use, copying<BR>
or forwarding.<BR>
</body>
</html>