Bug 1539757 - async unbind returns 200 instead of 202
Summary: async unbind returns 200 instead of 202
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.9.0
Assignee: Michael Hrivnak
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-29 14:47 UTC by Michael Hrivnak
Modified: 2018-06-27 18:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-06-27 18:01:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ansible-service-broker issues 701 0 None None None 2018-01-29 14:47:17 UTC
Red Hat Product Errata RHSA-2018:2013 0 None None None 2018-06-27 18:01:53 UTC

Description Michael Hrivnak 2018-01-29 14:47:18 UTC
Reported upstream: https://github.com/openshift/ansible-service-broker/issues/701

Description of problem:

I made the following request to a broker that was configured to launch APB on bind and to auto-escalate:

172.17.0.1 - - [29/Jan/2018:13:58:01 +0000] "DELETE /ansible-service-broker/v2/service_instances/ad7e24ee-4344-4a72-8e2a-4bbfe0399c13/service_bindings/133a20b9-c045-4458-90b3-b759e222fb99?plan_id=7f4a5e35e4af2beb70076e72fab0b7ff&servuce_id=1dda1477cace09730bd8ed7a6505607e&accepts_incomplete=true HTTP/1.1" 200 58

You can see that it returned a 200 response code instead of 202. The rest of the response looks correct per the spec:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 29 Jan 2018 13:58:01 GMT
Content-Length: 58
Set-Cookie: d05351dd24520dce41f310fcfc112523=40019baab3f211b0fa625c5f1e06dba2; path=/; HttpOnly; Secure
Cache-control: private

{
  "operation": "4e62e770-715a-42d5-b3e7-87df6dd6ae25"
}


Version-Release number of selected component (if applicable):
1.1


How reproducible:
always


Steps to Reproduce:
1. configure the broker to run APBs on bind/unbind and auto-escalate
2. DELETE a binding via the OSB API and specify query parameter "accepts_incomplete=true"

Actual results:
200 response code

Expected results:
202 response code

Comment 2 Zhang Cheng 2018-02-07 08:31:04 UTC
PR #702 was merged in 1.1.9, Changing status to ON_QA since asb downstream image ready for test.

Comment 5 errata-xmlrpc 2018-06-27 18:01:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2013


Note You need to log in before you can comment on or make changes to this bug.