Skip to content

[18.0][FIX] vault_share: make share token consistent between UI and DB - #992

Open
jans23 wants to merge 1 commit into
OCA:18.0from
Nitrokey:18.0-fix-vault_share-token
Open

[18.0][FIX] vault_share: make share token consistent between UI and DB#992
jans23 wants to merge 1 commit into
OCA:18.0from
Nitrokey:18.0-fix-vault_share-token

Conversation

@jans23

@jans23 jans23 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The server stored a different token than the one the form used to build the share link, which then always resulted in 'Invalid token'. Generate the token client-side via a string default and persist that exact value using a view readonly field with force_save, so the UI and DB always agree.

@jans23
jans23 force-pushed the 18.0-fix-vault_share-token branch from 34a1209 to 7c8b7b0 Compare August 24, 2026 16:18
The server stored a different token than the one the form used to
build the share link, which then always resulted in 'Invalid token'.
Generate the token client-side via a string default and persist that
exact value using a view readonly field with force_save, so the UI and
DB always agree.
@jans23
jans23 force-pushed the 18.0-fix-vault_share-token branch from 7c8b7b0 to c2a7b45 Compare August 24, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants