Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing response code mapping for 410 code #436

Merged
merged 5 commits into from
Aug 26, 2021

Conversation

gberche-orange
Copy link
Member

@gberche-orange gberche-orange commented Aug 25, 2021

410 is in the specs https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#unbinding and should not converted to 500

Fixes #435

And now maps all inner broker error codes to their original code + message.

410 is in the specs https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#unbinding and should not converted to 500

Fixes #435

Hot fix before mapping all code to original now that we bump to spring5 which provides this support
Even though

```
2021-08-26 12:11:50.361 DEBUG 7236 --- [-auto-1-exec-10] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler org.springframework.cloud.servicebroker.controller.ServiceBrokerWebMvcExceptionHandler#handleException(Exception)
2021-08-26 12:11:50.364 ERROR 7236 --- [-auto-1-exec-10] .s.c.ServiceBrokerWebMvcExceptionHandler : Unknown exception handled:

org.springframework.web.server.ResponseStatusException: 400 BAD_REQUEST "inner-broker-provided-error-description"

2021-08-26 12:11:50.376  INFO 7236 --- [           main] okhttp3.OkHttpClient                     : <-- 500 http://127.0.0.1:43017/v2/service_instances/111/service_bindings/333?accepts_incomplete=false (1607ms)
```
@gberche-orange gberche-orange merged commit c55750c into develop Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coab isn't robust to missing service bindings in nested inner brokers
1 participant