-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Org.put_policy type not in body anymore #6514
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
Conversation
|
If I try to check organization policies I get logged out due to a request to |
|
@stefan0xC a yes had the same issue with latest client, had to add Timshel/oidc_web_vault@36436c4 :(. Might try to open an issue directly on Bitwarden client repository but always hesitant 😅 |
|
We could also ignore requests to that specific endpoint, so the |
|
Had a quick look, I would expect the refactor to fix the issue. |
Indeed it does. Tested if that PR can be backported and while it will call the endpoint twice at least it doesn't request an |
stefan0xC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that this fixes an issue with saving policies.
[2025-12-02 22:50:33.518][request][INFO] PUT /api/organizations/aa21cc7e-2ddb-4792-b336-58c6f64f0213/policies/0
[2025-12-02 22:50:33.533][vaultwarden::api::core::organizations::_][WARN] Data guard `Json < PolicyData >` failed: Parse("{\"enabled\":false,\"data\":null}", Error("missing field `type`", line: 1, column: 29)).
[2025-12-02 22:50:33.534][response][INFO] (put_policy) PUT /api/organizations/<org_id>/policies/<pol_type> => 422 Unprocessable Entity
With web-v2025.11.3 the policy type is not sent in the request body anymore.