/api/v1/uploads/{uuid} gives 404 on skipped upload
I'm trying to write a python wrapper for the api and automate uploading with it.
When I upload the same track twice, the uuid returned by the second upload request leads into nowhere.
I have checked the db using the django admin interface:
- The second upload exists
- Its uuid was returned correctly
- When I change its import status to
Finished
instead ofSkipped
, it works normally
Steps to reproduce
- Upload a song twice, so the second upload gets marked as
skipped
- Try to get the second upload via
/api/v1/uploads/{uuid}
(it returns 404)
Bonus Steps
- Edit the import status of the second upload in the db and set it to
Finished
- Try again (now it works)
What happens?
It returns a 404
What is expected?
It should return the same data which it would, if the upload hadn't been skipped.
Context
Tried it on two different funkwhale instances, both version 1.0.1+git.68bc76bc.
Edited by funkwhale-bot