Skip to content

Routes with metadata cause error when deleting orphan routes #1876

Open
@twoseat

Description

@twoseat

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions