-
Notifications
You must be signed in to change notification settings - Fork 110
fix(share): use relative path in share as davPath for attachments #7477
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
Conversation
|
I tested this in collectives and in shared folders with a folder description. However I don't know if I am missing some corner cases. All in all the approach seems sound though. |
mejo-
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this ❤️
Does this also work with subpage shares in Collectives? I can imagine it does, as internalPath might be relative to the share root? 🤔
Sadly not.... it's relative to the collective root. But maybe we can also resolve it relatively to the share root. |
f053c71 to
697564c
Compare
|
@mejo- I think I got it now. Could you double check the getShareFolder function? |
mejo-
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, great that you found a generic solution that works for all kinds of public file shares ❤️
I didn't test myself, but the code looks sensible to me.
9b6ed49 to
6e1fa86
Compare
|
/backport to stable31 |
|
/backport to stable30 |
6e1fa86 to
2b1271d
Compare
Provide relative path to attachments in public shares. The path needs to be relative to the shared folder. Open attachments in public collective shares as well as in folder descriptions of public shares. Signed-off-by: Max <[email protected]>
Signed-off-by: Max <[email protected]>
Signed-off-by: Max <[email protected]>
Only in folder description though as we do not allow it from the viewer. Signed-off-by: Max <[email protected]>
2b1271d to
8b04564
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7477 +/- ##
=======================================
Coverage 59.65% 59.65%
=======================================
Files 495 495
Lines 37866 37866
Branches 1090 1090
=======================================
Hits 22589 22589
Misses 15170 15170
Partials 107 107 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Allow opening attachments in public collective shares
as well as in folder descriptions of public shares.