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): Use DAV functions from library to fix invalid source links #42338

Merged
merged 2 commits into from Dec 19, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Dec 17, 2023

Summary

Refactor the code to use the files library functions instead which will fix invalid source values causing #4233

Checklist

@susnux
Copy link
Contributor Author

susnux commented Dec 17, 2023

/backport to stable28

@artonge
Copy link
Contributor

artonge commented Dec 18, 2023

Let's wait for @skjnldsv approval

Copy link
Contributor

@emoral435 emoral435 left a comment

Choose a reason for hiding this comment

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

Tested on my local dev env - works now ! Still agree with Louis that we should wait for @skjnldsv approval

owner: getCurrentUser()?.uid || null,
permissions: Permission.READ,
}),
contents: contents.map(resultToNode),
contents: contents.map((r) => davResultToNode(r)),
Copy link
Member

Choose a reason for hiding this comment

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

Why not contents: contents.map(davResultToNode) ?
(not a blocker, simply curious))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Parameters do not match map has a signature of element: T, index: number but davResultToNode has element: Result, root?: string as it allows for different root path.

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 19, 2023
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@skjnldsv
Copy link
Member

/backport 6a67aff to stable28

@skjnldsv skjnldsv merged commit bfee316 into master Dec 19, 2023
40 of 41 checks passed
@skjnldsv skjnldsv deleted the fix/files-recent-links branch December 19, 2023 08:52
@AndyScherzinger AndyScherzinger added this to the Nextcloud 29 milestone Dec 19, 2023
@susnux susnux self-assigned this Dec 19, 2023
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: NC28 Recent files have incorrect URL
5 participants