ufal / clarin-dspace

clarin-dspace digital repository based on DSpace and LINDAT/CLARIN DSpace
http://lindat.cz
BSD 3-Clause "New" or "Revised" License
27 stars 18 forks source link

Download instructions for command line don't work #1130

Open kosarko opened 1 week ago

kosarko commented 1 week ago

download instructions for command line don't work

image

~/Downloads$> curl --remote-name-all https://dspace-dev.ufal.mff.cuni.cz/repository/server/api/core/bitstreams/handle/11234/1-3185/{PDT-C-1.0.zip}
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   193    0   193    0     0   1484      0 --:--:-- --:--:-- --:--:--  1484
okosarko@LAPTOP-6ROFNDP4:~/Downloads$> file PDT-C-1.0.zip
PDT-C-1.0.zip: JSON data
okosarko@LAPTOP-6ROFNDP4:~/Downloads$> cat PDT-C-1.0.zip
{"timestamp":"2024-11-07T11:15:13.966+00:00","status":404,"error":"Not Found","message":"No message available","path":"/repository/server/api/core/bitstreams/handle/11234/1-3185/PDT-C-1.0.zip"}
kosarko commented 1 week ago

@milanmajchrak Normally files are downloaded from .../api/core/bitstreams/<uuid>/content have you added some sort of endpoint to handle bitstreams/handle/11234/1-3185/PDT-C-1.0.zip?