Closed gberche-orange closed 4 years ago
Thanks for reporting!
This is part of the OSBAPI 2.15 spec, so will need to be back ported to 3.1.x.
https://github.com/openservicebrokerapi/servicebroker/blob/v2.15/spec.md#response-3
There are five scenarios where this applies with three different exception objects:
ServiceBrokerCreateOperationInProgressException
ServiceBrokerUpdateOperationInProgressException
ServiceBrokerDeleteOperationInProgressException
ServiceBrokerCreateOperationInProgressException
ServiceBrokerDeleteOperationInProgressException
Expected behavior
https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#response-3 mentions
Observed behavior
Currently the operation string does not seem to be returned in the response body in a parseable json string
https://github.com/spring-cloud/spring-cloud-open-service-broker/blob/a8fa63fdfcbf0f2f6e103ae1f9082ff3c59e7a90/spring-cloud-open-service-broker-core/src/main/java/org/springframework/cloud/servicebroker/exception/ServiceBrokerCreateOperationInProgressException.java#L28
https://github.com/spring-cloud/spring-cloud-open-service-broker/blob/a8fa63fdfcbf0f2f6e103ae1f9082ff3c59e7a90/spring-cloud-open-service-broker-core/src/main/java/org/springframework/cloud/servicebroker/controller/ServiceBrokerExceptionHandler.java#L181-L185
As a workaround, don't use ServiceBrokerCreateOperationInProgressException, and directly control status code and response body.