Problem: After click on download token the whole ZIP file is not downloaded, the first bitstream is downloaded instead
Reason: Downloading via link from the email is authorized by the dtoken. This dtoken is associated with downloading bitstream, which means every bitstream from the ZIP file must have an associated dtoken, which did not happen. The dtoken was generated only for the first bitstream and when the server tried to retrieve bitstream content of second bitstream it threw Unauthorized error.
Solution: Create a new endpoint for downloading restricted ZIP file, which creates dtoken for every bitstream of the Item. I have done a small refactor, because I needed to reuse some code, but this code should be refactored at all.
Issue: https://github.com/dataquest-dev/DSpace/issues/538
Problem description
Problem: After click on download token the whole ZIP file is not downloaded, the first bitstream is downloaded instead Reason: Downloading via link from the email is authorized by the
dtoken
. Thisdtoken
is associated with downloading bitstream, which means every bitstream from the ZIP file must have an associateddtoken
, which did not happen. Thedtoken
was generated only for the first bitstream and when the server tried to retrieve bitstream content of second bitstream it threwUnauthorized error
. Solution: Create a new endpoint for downloading restricted ZIP file, which createsdtoken
for every bitstream of the Item. I have done a small refactor, because I needed to reuse some code, but this code should be refactored at all.