Skip to content

fix(files_sharing): Only send password on change - #55580

Merged
nfebe merged 2 commits into
masterfrom
fix/share-permissions-password-validation
Oct 21, 2025
Merged

fix(files_sharing): Only send password on change#55580
nfebe merged 2 commits into
masterfrom
fix/share-permissions-password-validation

Conversation

@nfebe

@nfebenfebe commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

The password param should never be sent if the intention is not remove it or update it.

This commit adapts the frontend and backend to this rule to avoid weird bugs especially around updating new shares.

@nfebe
nfebe requested review from a team as code ownersOctober 6, 2025 15:14
@nfebenfebe added the 3. to review Waiting for reviews label Oct 6, 2025
@nfebe
nfebe requested review from icewind1991 and removed request for a teamOctober 6, 2025 15:14
@nfebe

nfebe commented Oct 6, 2025

Copy link
Copy Markdown
ContributorAuthor

/backport to stable32

@nfebe

nfebe commented Oct 6, 2025

Copy link
Copy Markdown
ContributorAuthor

/backport to stable31

@susnuxsusnux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code makes sense but did not test it

@artongeartonge left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good beside nitpick.

Comment threadapps/files_sharing/lib/Controller/ShareAPIController.php Outdated
@nfebe
nfebeforce-pushed the fix/share-permissions-password-validation branch from a9b74c0 to 425d455CompareOctober 20, 2025 13:55
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

@nfebe
nfebe enabled auto-merge October 20, 2025 13:55
@nfebe
nfebeforce-pushed the fix/share-permissions-password-validation branch from b1799aa to 5d726aaCompareOctober 20, 2025 15:52
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

@nfebe
nfebeforce-pushed the fix/share-permissions-password-validation branch from 5d726aa to 7b31bf1CompareOctober 20, 2025 15:59
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

The password param should never be sent if the intention is not
remove it or update it.
This commit adapts the frontend and backend to this rule to avoid weird bugs
especially around updating new shares.
Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe
nfebeforce-pushed the fix/share-permissions-password-validation branch from 06eaddc to a28834bCompareOctober 21, 2025 15:55
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
nfebe merged commit 87b94c7 into masterOct 21, 2025
205 of 214 checks passed
@nfebe
nfebe deleted the fix/share-permissions-password-validation branch October 21, 2025 20:08
@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable32

@nfebe

Copy link
Copy Markdown
ContributorAuthor

/backport to stable31

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsfeature: sharing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@nfebe@susnux@artonge@nextcloud-command