<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Based on the comments and opinions in the original thread, I
      think a fix for this is justified. I wouldn't mind running this by
      the TC to double check that nothing has changed from the first
      time we had to fix this issue though.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/11/2017 06:03 AM, Attila Fazekas
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMTxPK0vVMK2syANPAMPVUsNkVE=GkEp3X9Lr6pmFX+6+ZBuhg@mail.gmail.com">
      <div dir="ltr">
        <div>Hi all,<br>
          <br>
          Long time ago it was discussed to make the keystone HEAD
          responses<br>
           right [1] as the RFC [2][3] recommends:<br>
          <br>
          "  A response to the HEAD method is identical to what an
          equivalent<br>
             request made with a GET would have been, except it lacks a
          body. "<br>
          <br>
        </div>
        <div>So, the status code needs to be identical as well !<br>
        </div>
        <div><br>
          Recently  turned out, keystone is still not correct in all
          cases [4].<br>
          <br>
          'Get role inference rule' (GET), 'Confirm role inference rule'
          (HEAD)<br>
           has the same URL pattern, but they differs in the status code
          (200/204)<br>
           which is not allowed! [5]<br>
          <br>
          This is the only documented case where both the HEAD and GET
          defined and<br>
          the HEAD has a 204 response.<br>
          <br>
          Are you going to fix this [4] as it was fixed before [6] ? <br>
          <br>
        </div>
        <div>
          <div>Best Regards,<br>
          </div>
          <div>Attila<br>
            <br>
          </div>
          <div>PS.: <br>
             Here is the tempest change for accepting the right code
            [7].</div>
          <div><br>
            [1] <a
href="http://lists.openstack.org/pipermail/openstack-dev/2014-July/039140.html"
              moz-do-not-send="true">http://lists.openstack.org/pipermail/openstack-dev/2014-July/039140.html</a><br>
            [2] <a
              href="https://tools.ietf.org/html/rfc7231#section-4.3.2"
              moz-do-not-send="true">https://tools.ietf.org/html/rfc7231#section-4.3.2</a><br>
            [3] <a
              href="https://tools.ietf.org/html/rfc7234#section-4.3.5"
              moz-do-not-send="true">https://tools.ietf.org/html/rfc7234#section-4.3.5</a><br>
            [4] <a
              href="https://bugs.launchpad.net/keystone/+bug/1701541"
              moz-do-not-send="true">https://bugs.launchpad.net/keystone/+bug/1701541</a><br>
            [5] <a
href="https://developer.openstack.org/api-ref/identity/v3/?expanded=confirm-role-inference-rule-detail,get-role-inference-rule-detail"
              moz-do-not-send="true">https://developer.openstack.org/api-ref/identity/v3/?expanded=confirm-role-inference-rule-detail,get-role-inference-rule-detail</a><br>
            [6] <a
              href="https://bugs.launchpad.net/keystone/+bug/1334368"
              moz-do-not-send="true">https://bugs.launchpad.net/keystone/+bug/1334368</a><br>
            [7] <a href="https://review.openstack.org/#/c/479286/"
              moz-do-not-send="true">https://review.openstack.org/#/c/479286/</a></div>
        </div>
      </div>
      <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>