Skip to content
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

Setting an empty "owner" is allowed in the REST API #3476

Closed
EricWittmann opened this issue Jun 29, 2023 · 1 comment · Fixed by #3593
Closed

Setting an empty "owner" is allowed in the REST API #3476

EricWittmann opened this issue Jun 29, 2023 · 1 comment · Fixed by #3593
Labels
area/rest-api Beginner Friendly Solving this issue can help people who are starting with the project learn type/bug Something isn't working

Comments

@EricWittmann
Copy link
Member

Description

When updating the owner of an artifact, we are allowing an empty string. That should not be a valid value and rejected by the server.

Registry
Version
: 2.4.3
Persistence type: all

Steps to Reproduce

  1. Create a new artifact
  2. Try changing the owner to "" (empty string)
  3. It's allowed?!

This should not be allowed - it should fail with some sort of 4xx error, perhaps a 400. The error message should indicate that there is a missing parameter.

@EricWittmann EricWittmann added the type/bug Something isn't working label Jun 29, 2023
@EricWittmann
Copy link
Member Author

@EricWittmann EricWittmann added Beginner Friendly Solving this issue can help people who are starting with the project learn and removed area/storage labels Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest-api Beginner Friendly Solving this issue can help people who are starting with the project learn type/bug Something isn't working
Projects
None yet
1 participant