-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Bug]: Viewing media files via a share link doesn't work anymore #48475
Comments
Works fine for me. Can you check your browser inspector? Specifically check the Network tab while reproducing the issue and also your Console tab after. |
So i did take a look at the logs and the unauthenticated exception, returned by the api, is thrown at this line/file
|
That option is on by default. But if it's off, the ajax request header check is more important. It appears this header is missing from the request: |
This is similar to a bug we had back early in the v28 release cycle. There have been a few refactors in the v30 dev cycle that touch on this area of code. It's a front-end matter. I suspect it's a mixture of nextcloud-libraries/nextcloud-files#996 and/or nextcloud/viewer#2392. Our tests also seem to have a blind spot here. Cc: @susnux |
Bug description
After upgrade to Nextcloud 30 (from 29), video and audio files shared via a link, cannot be played anymore. Playing the files works as expected in the Nextcloud files app when logged in.
Viewing images via share link works as well. Images and audio/video files seem to be downloaded using different endpoints.
Images (works):
GET https://x.x.x/index.php/apps/files_sharing/publicpreview/We29yd6pa3K9Hjx?file=/2024/ef77f0f1-51de-4172-a7f8-8226af09ee32.jpeg&fileId=67260&x=2256&y=1504&a=true&etag=de0abba96f6431595e86c39661d7fbb5
Videos (doesn't work):
GET https://x.x.x/public.php/dav/files/We29yd6pa3K9Hjx/2024/Video.mp4
The logs show a
Sabre\\DAV\\Exception\\NotAuthenticated
error for the failed video request.Downloading videos from the file list works
GET https://x.x.x/index.php/s/We29yd6pa3K9Hjx/download?path=/2024&files=Video.mp4&downloadStartSecret=d5qsoy67xxx
Steps to reproduce
Expected behavior
Audio and video files can be played via a share link.
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Response of
GET https://x.x.x/public.php/dav/files/We29yd6pa3K9Hjx/2024/Video.mp4
: 401The text was updated successfully, but these errors were encountered: