Bitstreams file URL issue (dspace 7.5)

214 views
Skip to first unread message

Aroldo Rique

unread,
Aug 4, 2023, 1:52:04 PM8/4/23
to DSpace Technical Support, DSpace Community, DSpace Developers
Hello everybody.

I'm having a problem with the URL of my items' bitstream file links.

We have an entry in the DSN that points the address biblioteca.mpf.mp.br/repositorio to the IP of the dspace machine. We access the site normally through the link biblioteca.mpf.mp.br/repositorio. The site is not yet available outside our network.

If I access an item and then go to the full item page, as shown below, I can usually download the two files available for download, without errors. Note that the "Download" link (red arrow) is formed by the URL https://biblioteca.mpf.mp.br/repositorio/bitstreams/... (yellow arrow). The link works normally and I can download the file.

image.png

The problem occurs on the Item Edit page (picture below). If I click on the button indicated by the red arrow, which is the button to download the license.txt file, the URL formed (yellow arrow) is in the format https://biblioteca.mpf.mp.br/bitstreams/.. This link is broken because /repository is missing before /bitstreams. Does anyone know how I can fix this problem on these URLs? I need to include /repository before /bitstreams in the file links on the item edit page.

image.png



Aroldo Rique

unread,
Aug 7, 2023, 12:42:44 PM8/7/23
to DSpace Technical Support, DSpace Community, DSpace Developers
In summary, guys, I would like to know if it is possible to edit the download URL (yellow arrow) from the Bitstreams tab when editing files uploaded to dspace, because currently the link is broken.
image.png

DSpace Technical Support

unread,
Aug 21, 2023, 5:47:54 PM8/21/23
to DSpace Technical Support
Hi,

Apologies for the delayed response on this question. These links are not directly editable, but the behavior you are describing sounds like a possible bug to me.  Links to the same bitstream (file) should be the same on all pages in the UI. 

I'd recommend submitting a bug ticket to https://github.com/DSpace/dspace-angular/issues with these screenshots and any other information you may have on how to reproduce it (as we'll need to see if this same bug still exists in 7.6).  

We can then look for a volunteer to create a PR to fix it (or if you are interested, we'd welcome a PR from you as well).  I suspect that the broken link is now building the URL properly & likely it's code needs to be fixed to align with the link that works.

Tim

Aroldo Rique

unread,
Aug 21, 2023, 6:38:43 PM8/21/23
to DSpace Technical Support
Thanks Tim. I submitted the bug to git.

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/3b4d95cb-7afb-4c5b-a546-9bd2333b3da0n%40googlegroups.com.

Aroldo Rique Júnior

unread,
Sep 25, 2023, 5:43:06 PM9/25/23
to DSpace Technical Support
I tested the fix: https://github.com/DSpace/dspace-angular/pull/2473/files

And the links are working correctly. Thank you very much!
Reply all
Reply to author
Forward
0 new messages