Closed Biont closed 6 years ago
There seems to be a bug (or actually two) in the endpoint /api/file/{fileid}/download which makes it fail on Chrome. I'll include a fix for this to the next Music app release. The bug does not happen on Firefox, because unlike Chrome, it does not use the "HTTP range request" to download the file, and the bugs were in the parts of code handling the range requests.
The bugs had been introduced more than year ago in commit a1119d297, but they haven't been noticed because the UI of the Music app has not used the endpoint /api/file/{fileid}/download for many years. Instead, it uses the WebDAV API to load the files. The WebDAV URL of a file can be obtained from /api/file/{fileid}/webdav.
The error you see on your dummy Android app is another issue. It basically indicates that there was no logged-in user when the endpoint was called. Technically, the error note states that the "user folder" injected to ApiController was null.
The owncloud/music repo is the official channel to report issues on the Music app. I have been making releases for ownCloud and Nextcloud from the exactly same sources and it would be pointless to maintain the application in more than one repositories. This fork paulijar/music is just my personal sandbox which I may use e.g. to prototype changes which I'm not ready to make public yet.
Hey thank you for your reply.
I actually did suspect missing authentication to be the cause, but after seeing that it did not work in the browser as well, I figured we had a bug here. What a coincidence, having two separate problems in the same spot. I have now implemented authentication and was able to proceed to the next problem (within the android app), so that is settled.
The endpoint indeed works in Firefox, looking forward to the fix for Chrome. Thanks for clearing up my confusion about this repo. I will create new issues over at owncloud/music. See you there :)
The issue in endpoint /api/file/{fileid}/download
with Chrome was fixed with commit be7131edcf which has been released in the Music app v0.5.5.
Hello. I was just toying around with the rest API, but failed to actually fetch a song for playback
Endpoint used (example): https://nextcloud.com/index.php/apps/music/api/file/63816/download
I get this, when I call the URL in my browser:
..and this when I use my dummy Android App:
Do you have an idea what's wrong here? I'm using
The endpoint https://nextcloud.com/index.php/apps/music/api/file/63816 responds just fine, so the file should exist.
(I don't know if this is the right repo given there's so little activity in the issues here. It just felt weird to create the issue on the owncloud repo as a nextcloud user. And it seems the Nextcloud App Store draws its releases from here)