Skip to content

Conversation

@philippthun
Copy link
Member

@philippthun philippthun commented Dec 2, 2025

  • Convert IncompatibleBindings error to UnprocessableEntity (ApiError)
  • Fix validation of conflicting manifest features
  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@philippthun philippthun changed the title File based service bindings improved errors File-based-service-bindings: improved errors Dec 2, 2025
@philippthun philippthun marked this pull request as ready for review December 2, 2025 13:13
The ServiceBindingFilesBuilder can raise an IncompatibleBindings
exception in case of entries violating the specification for file names
or if the overall file size is too big. When pushing an app these errors
were shown as StagerErrors (with the correct error message); for other
operations - i.e. restart, restage - an UnknownError was returned. This
change ensures that in any case an UnprocessableEntity (ApiError) is
returned (with the concrete error message).
Switching from service-binding-k8s to file-based-vcap-services via
manifest entries (features) raised an error. This change fixes the wrong
validation for this corner case.
@philippthun philippthun force-pushed the file-based-service-bindings-improved-errors branch from 41fbc23 to 00fa649 Compare December 2, 2025 13:38
@philippthun philippthun merged commit d791e3d into cloudfoundry:main Dec 8, 2025
16 of 17 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Dec 8, 2025
Changes in cloud_controller_ng:

- File-based-service-bindings: improved errors
    PR: cloudfoundry/cloud_controller_ng#4693
    Author: Philipp Thun <[email protected]>
sethboyles pushed a commit to atanas-attodorov-wq/cloud_controller_ng that referenced this pull request Dec 11, 2025
* Convert IncompatibleBindings error to UnprocessableEntity (ApiError)

The ServiceBindingFilesBuilder can raise an IncompatibleBindings
exception in case of entries violating the specification for file names
or if the overall file size is too big. When pushing an app these errors
were shown as StagerErrors (with the correct error message); for other
operations - i.e. restart, restage - an UnknownError was returned. This
change ensures that in any case an UnprocessableEntity (ApiError) is
returned (with the concrete error message).

* Fix validation of conflicting manifest features

Switching from service-binding-k8s to file-based-vcap-services via
manifest entries (features) raised an error. This change fixes the wrong
validation for this corner case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants