fix(files_sharing): use user defined passwords#55026
Closed
fix(files_sharing): use user defined passwords#55026
Conversation
A previous MR(54055) resulted in the NcActionInput component responsible for creating file shares discarding user provided passwords, in favor of the system generated one. This was caused by drift between the component and the underlying Share model, resulting in the component calling .sync on a non-existent attribute, which meant the password was never updated. To reproduce (with password_policy enabled): * Under a files "External Shares", click "Create public link" * Supply a password to the password field, e.g., "testing-password_123" * Click "Create share" * Attempt to navigate to the generated share link and access the shared file with the password you provided at the time of creating the share. * The provided password will be rejected, as it was never updated from the system generated one. Signed-off-by: Darian Culver <darian.culver@catalyst.net.nz>
Contributor
Author
|
/compile |
Contributor
|
Possible performance regression detected Show Output |
Contributor
Author
|
/backport e4b7d65 to stable31 |
Contributor
Author
|
/backport e4b7d65 to stable32 |
Contributor
Author
|
/backport e4b7d65 to stable30 |
4 tasks
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Contributor
|
Possible performance regression detected Show Output |
artonge
reviewed
Sep 16, 2025
Contributor
artonge
left a comment
There was a problem hiding this comment.
Can you add a cypress test for it? Just to ensure that it does not break again in the future.
Member
|
I think this is fixed by #55081 already |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copy of #54399
Summary
A previous MR(#54055) resulted in the NcActionInput component responsible for creating file shares discarding user provided passwords, in favor of the system generated one.
This was caused by drift between the component and the underlying Share model, resulting in the component calling .sync on a non-existent attribute, which meant the password was never updated.
To reproduce (with password_policy enabled):
TODO
N/A
Checklist