cloud_controller_ng icon indicating copy to clipboard operation
cloud_controller_ng copied to clipboard

Routes with metadata cause error when deleting orphan routes

Open twoseat opened this issue 5 years ago • 1 comments

Issue

Calling the delete unmapped routes endpoint, either directly or through the CLI, causes an unknown error if the orphaned route has metadata.

Context

Found while implementing this endpoint for the Cloud Foundry Java Client. Problem doesn't appear directly when using the CLI as it has no facility (afaik) for making routes with metadata.

Steps to Reproduce

Create a minimal domain. Create a route based on the domain with some metadata. Hit the delete orphaned routes endpoint.

Expected result

Orphaned routes, if any, are deleted, and success is returned.

Current result

Delete fails with an UnknownError(10001): An unknown error occurred. message.

twoseat avatar Sep 29 '20 10:09 twoseat

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/175034581

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Sep 29 '20 10:09 cf-gitbot