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

List DID Rules will give 200 even if DID does not exist #6334

Closed
ThePhisch opened this issue Sep 18, 2023 · 1 comment · Fixed by #6384
Closed

List DID Rules will give 200 even if DID does not exist #6334

ThePhisch opened this issue Sep 18, 2023 · 1 comment · Fixed by #6384
Assignees
Milestone

Comments

@ThePhisch
Copy link
Contributor

Description

Rucio will return a 200 OK when querying DID Rules even when the scopename is invalid.

Steps to reproduce

  1. GET /dids/<scope>/<name>/rules
  2. get a 200 OK even if the scopename is not valid

Rucio Version

32.3.0

Additional Information

Discovered while developing the WebUI

@alexanderrichards
Copy link
Contributor

alexanderrichards commented Nov 20, 2023

Just for confirmation, when I look at the OpenAPI documentation for the REST interface I see an endpoint that is slightly different from the one you sepcify (see /dids/{scope_name}/rules ). Notably the scope and name are combined into the single {scope_name} element. Is this the same endpoint that causing a problem?


Edit: Never mind, I see that there is a regex that is splitting the single scope_name into the two seperarte entities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants