Skip to content

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

Merged
susnux merged 2 commits into
masterfrom
fix/files-public-share
Feb 8, 2025
Merged

fix(files): only send config update requests if user is logged in#50680
susnux merged 2 commits into
masterfrom
fix/files-public-share

Conversation

@susnux

@susnuxsusnux commented Feb 6, 2025

Copy link
Copy Markdown
Contributor

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, Pytal, artonge and nfebe and removed request for a teamFebruary 6, 2025 09:21
@susnuxsusnux 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 ownerFebruary 6, 2025 09:21
@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable31

@susnux
susnuxforce-pushed the fix/files-public-share branch from 6f92823 to c6948ebCompareFebruary 6, 2025 20:49
@susnux

Copy link
Copy Markdown
ContributorAuthor

/compile

@skjnldsv
skjnldsvforce-pushed the fix/files-public-share branch from 959fad8 to 22e2454CompareFebruary 7, 2025 10:06
@skjnldsv

Copy link
Copy Markdown
Member

/compile amend /

@skjnldsv

Copy link
Copy Markdown
Member

Rebased

skjnldsv
skjnldsv previously requested changes Feb 7, 2025

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

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

Comment threadapps/files/src/store/viewConfig.ts Outdated
@susnux
susnux dismissed skjnldsv’s stale reviewFebruary 7, 2025 13:24

already resolved

@susnux
susnuxforce-pushed the fix/files-public-share branch from b0c9b1e to 409cb14CompareFebruary 7, 2025 13:25
@susnux

Copy link
Copy Markdown
ContributorAuthor

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

Yep viewId vs view - fixed ✅

Comment threadapps/files/src/store/viewConfig.ts Outdated
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 <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnuxforce-pushed the fix/files-public-share branch from a538002 to 48bf91aCompareFebruary 8, 2025 13:31
@susnux
susnux merged commit 50536e6 into masterFeb 8, 2025
@susnux
susnux deleted the fix/files-public-share branch February 8, 2025 13:45
@nextcloud-botnextcloud-bot mentioned this pull request Aug 19, 2025
Sign up for freeto 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

@susnux@skjnldsv@artonge@Pytal