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 public link paths for file shares #2297

Merged
merged 1 commit into from
Nov 22, 2021
Merged

Conversation

ishank011
Copy link
Contributor

No description provided.

@ishank011
Copy link
Contributor Author

@C0rby this takes care of the issue of why tests were failing in #2214

The download requests go to /remote.php/dav/public-files/$token/a.txt/a.txt for file links. Without having the file name in the href twice, the downloaded file is named as the $token. But without these fixes, the downloads don't work for me

@ishank011 ishank011 marked this pull request as ready for review November 19, 2021 16:08
@labkode labkode merged commit 29826a3 into cs3org:master Nov 22, 2021
@ishank011 ishank011 deleted the public-share branch November 22, 2021 10:14
@butonic
Copy link
Contributor

butonic commented Nov 22, 2021

the actual problem is that the Content-Disposition Header is wrong:

content-disposition | attachment; filename*=UTF-8''gKGaNZfxXMpbVMm; filename="gKGaNZfxXMpbVMm"

I struggle to make chrome or edge show me actual download requests. But with firefox this can be seen. I'll comment with a proper fix ...

butonic added a commit to butonic/reva that referenced this pull request Nov 22, 2021
@butonic butonic mentioned this pull request Nov 22, 2021
labkode pushed a commit that referenced this pull request Dec 2, 2021
* make content disposition reflect request base path

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Revert "Fix public link paths for file shares (#2297)"

This reverts commit 29826a3.

* Add content disposition fix changelog

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants