<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hey Niraj,</p>
    <p>That does seem to be incorrect behavior on the services side. It
      would be good to have a bug<br>
      filed to track it. For now you could open one and flag each
      project as being affected. We may<br>
      find that it requires a change in each project, or it may end up
      being a common oslo change.<br>
      Either way, a bug will allow us to capture findings and make sure
      it gets resolved.</p>
    <p><a class="moz-txt-link-freetext" href="https://bugs.launchpad.net/cinder/+filebug">https://bugs.launchpad.net/cinder/+filebug</a></p>
    <p>Thanks,</p>
    <p>Sean<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 08/31/2017 05:10 AM, Singh, Niraj
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:BN6PR12MB1188059C56F32966BE630EA0E09D0@BN6PR12MB1188.namprd12.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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]-->
      <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"
              moz-do-not-send="true">
              <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"
              moz-do-not-send="true">
              <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="all">
______________________________________________________________________<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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>