mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #494] organization not displayed for a user #308
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @siwica on GitHub (May 29, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/494
After changing some user-rights for an organization back and forth, said user is suddenly displayed as being part of no organization (even after reinstating the original permissions). Even after re-inviting the user to the organization + confirmation an email with subject Invitation to confirmed is sent but the web-interface still shows no organization for the user.
Server logs upon login show an error for said user foo@bar.de that does not occur for other users:
@dani-garcia commented on GitHub (May 29, 2019):
Hmm not sure where that could come from, I can't see any unwraps in the sync endpoint. Are you using the docker image? Which version (You can check the log right after the server starts)?
Can you set the env variable
RUST_BACKTRACE=1, relaunch the server and try to reproduce the error again? Hope that gives a better message.@mprasil commented on GitHub (May 31, 2019):
Maybe this is stupid question, but did you confirm (as org admin) the user in the organization after the user is invited?
@siwica commented on GitHub (May 31, 2019):
@mprasil Yes, the user was confirmed and I was perfectly able to use the organizations collection up until it was no longer displayed.
@dani-garcia I messaged the person in charge of our installation and will get back to you as soon as I have the requested information.
@kaotika commented on GitHub (Jun 14, 2019):
I got the same strange behaviour. It happend after I tried to add an existing user a second time.
Dropping the user from the organisation doesn't worked.
I'am using the docker version (build my own Swarm config, instead of the default) with Sqlite DB. After adding
RUST_BACKTRACE=1I always get the following after login of the faulty user:RUST_BACKTRACE=fullshows:@dani-garcia commented on GitHub (Jun 14, 2019):
I pushed a change to remove the unwraps that were failing, though I'm not sure why they were failing in the first place to be honest. Specially because the stack trace points to the Cipher to JSON conversion, not sure how that is related to users and organizations.
The changes are in
76f38621de, the images will be built after some hours. I'd appreciate some testing to see if the issue is fixed.@kaotika commented on GitHub (Jun 15, 2019):
@dani-garcia many thanks for the quick fix. The problem is gone now and I could add the user to the organisation. And the user doesn't get's kicked out from the organization when I tried to reinvite him, what caused to problem in the first place.
The only strange thing are a few nonsense entries (attached image). Don't know if this is related to the problem. There where no error messages in the logs about that. They just can't be edited.
@dani-garcia commented on GitHub (Jun 15, 2019):
Well the reason for the panic before was because the cipher data couldn't be decoded, so I simply made it so in that case it would just return an empty value. So it makes sense that you get empty values I guess.
Now I'd want to know what's causing those errors in the first place, are those empty ciphers new or are they existing ones that have had their data corrupted somehow?
It's also strange that they can't be edited either, can you delete them at least?
@kaotika commented on GitHub (Jun 16, 2019):
Yes, I can delete them. Attaching files also worked.
As far as I can tell these are new entries and no other entries are corrupted.
Sharing isn't possible and fails with (don't know if this helps anyway):
@mprasil commented on GitHub (Nov 11, 2019):
Is this still a problem? If it is, have you tried the latest version of
bitwarden_rs?@mprasil commented on GitHub (Nov 27, 2019):
This is quite old issue with no response. Going to close this now, feel free to reopen if you need more help.