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

[BUG] The resource_quota API allows taxonomies parameters #109

Open
bastian-src opened this issue Jan 21, 2025 · 0 comments
Open

[BUG] The resource_quota API allows taxonomies parameters #109

bastian-src opened this issue Jan 21, 2025 · 0 comments

Comments

@bastian-src
Copy link
Contributor

A Resource Quota is independent of any taxonomies since it is bound to users and usergroups.

However, the API endpoint to update and create a resource quota allows such parameters and does not recognize them as wrong (as it should be the case):

curl --request PUT \
  --url https://<addr>/foreman_resource_quota/api/v2/resource_quotas/1 \
  --header 'Authorization: Basic <auth>' \
  --header 'content-type: application/json' \
  --data '{
  "resource_quota": {
    "name": "testA",
    "organization_id": "1"
  }
}'

→ results in an HTTP 200.

The issue came up during #103.

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

No branches or pull requests

1 participant