Skip to content

Make the server fail when two references with the same name are created for a single artifact #4283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
carlesarnal opened this issue Feb 1, 2024 · 1 comment
Assignees
Labels
type/bug Something isn't working

Comments

@carlesarnal
Copy link
Member

Currently, when an artifact with two references with the same name pointing to two different artifact coordinates is created the server accepts the request creating a single reference pointing to the first content. Since this is not a valid use case (a different name must be used if the referenced content is different) the server must fail the artifact regitration.

@carlesarnal carlesarnal added the type/bug Something isn't working label Feb 1, 2024
@jsenko jsenko self-assigned this Feb 1, 2024
@carlesarnal
Copy link
Member Author

This can be done using the no-duplicates integrity rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants