Open
Description
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.