Skip to content

Better handling of trailing / in federation prefixes #1806

@jhiemstrawisc

Description

@jhiemstrawisc

A user tried registering a namespace like /foo/bar/, which generated an error. The correct registration was /foo/bar without a trailing /.

I do think it's important that our internal representations of prefixes contain a trailing / so that it's much harder to accidentally match /foo/barbaz to /foo/bar, but we can make this logic transparent to users by permitting registration of both /foo/bar and /foo/bar/ (and treating them the same under the hood).

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginternalInternal code improvements, not user-facingregistryIssue relating to the registry component

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions