Open AsamK opened 3 days ago
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.
Hey hey, i am experiencing the exact same issue after updating to nextcloud 30. As described by OP, the api returns a 401 and as the error text an internal server error (which doesnt match the status code).
The only javascript error occurs after the request to the video has failed:
The network tab shows two WebDAV requests to root path of the share
and returning the following response with a 401
So i did take a look at the logs and the unauthenticated exception, returned by the api, is thrown at this line/file
I found a workaround until the issue will be resolved. Enabling this option fixes the issue, as the condition triggering the error in the code (see my message above) is no longer reached
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: X-Requested-With: XMLHttpRequest
.
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
⚠️ This issue respects the following points: ⚠️
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
: 401