Skip to content
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

fix(files): only send config update requests if user is logged in #50680

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Feb 6, 2025

Summary

Since we use the files app also for public shares it is not guaranteed that there is a user logged in, in that case the update for user / view config will fail.
So ensure there is a user or do not send a request.

Also refactor both stores to setup styles to fix (remove) initialization hack, which causes Typescript issues.

TODO

  • ...

Checklist

@susnux susnux requested review from a team, artonge, nfebe and Pytal and removed request for a team February 6, 2025 09:21
@susnux susnux added this to the Nextcloud 32 milestone Feb 6, 2025
@susnux susnux marked this pull request as ready for review February 6, 2025 09:21
@susnux susnux requested a review from skjnldsv as a code owner February 6, 2025 09:21
@susnux
Copy link
Contributor Author

susnux commented Feb 6, 2025

/backport to stable31

@susnux susnux force-pushed the fix/files-public-share branch from 6f92823 to c6948eb Compare February 6, 2025 20:49
@susnux
Copy link
Contributor Author

susnux commented Feb 6, 2025

/compile

@skjnldsv skjnldsv force-pushed the fix/files-public-share branch from 959fad8 to 22e2454 Compare February 7, 2025 10:06
@skjnldsv
Copy link
Member

skjnldsv commented Feb 7, 2025

/compile amend /

@skjnldsv
Copy link
Member

skjnldsv commented Feb 7, 2025

Rebased

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

Cypress failure is related. 500 error on sorting user config change

@susnux susnux dismissed skjnldsv’s stale review February 7, 2025 13:24

already resolved

@susnux susnux force-pushed the fix/files-public-share branch from b0c9b1e to 409cb14 Compare February 7, 2025 13:25
@susnux
Copy link
Contributor Author

susnux commented Feb 7, 2025

Cypress failure is related. 500 error on sorting user config change

Yep viewId vs view - fixed ✅

Since we use the files app also for public shares it is not guaranteed
that there is a user logged in, in that case the update for user / view
config will fail.
So ensure there is a user or do not send a request.

Also refactor both stores to setup styles to fix (remove) initialization hack,
which causes Typescript issues.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/files-public-share branch from a538002 to 48bf91a Compare February 8, 2025 13:31
@susnux susnux merged commit 50536e6 into master Feb 8, 2025
120 checks passed
@susnux susnux deleted the fix/files-public-share branch February 8, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants