I wonder, is it intentional that Dataverse tries to access the file in Trusted Remote Storage when attaching a TRS-located file to the dataset, even if setting files-not-accessible-by-dataverse has been set to false as instructed in configuration guide?
My goal is to link to a dataset landing page in a target system, instead of actual file. When storageIdentifier in JSON payload points to an actual file which can be accessed by Dataverse, I do not get an error. When the storageIdentifier points to a landing page, I get the following error. I'm running Dataverse 6.10.1 .
[#|2026-04-16T16:03:13.803+0300|SEVERE|Payara 7.2026.3|edu.harvard.iq.dataverse.api.errorhandlers.ThrowableHandler|_ThreadID=102;_ThreadName=http-thread-pool::jk-connector(3);_TimeMillis=1776344593803;_LevelValue=1000;|
_status="ERROR";_code=500;_message="Internal server error. More details available at the server logs.";_incidentId="1cf5601d-2d55-4174-abbf-f03761f2d41e";_internalError="ArrayIndexOutOfBoundsException";_requestUrl="https://xxxxx/api/v1/datasets/:persistentId/add?persistentId=doi:10.5072/FK2/BRLYML";_requestMethod="POST"||#][#|2026-04-16T16:03:13.803+0300|SEVERE|Payara 7.2026.3|edu.harvard.iq.dataverse.api.errorhandlers.ThrowableHandler|_ThreadID=102;_ThreadName=http-thread-pool::jk-connector(3);_TimeMillis=1776344593803;_LevelValue=1000;|
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at edu.harvard.iq.dataverse.dataaccess.RemoteOverlayAccessIO.retrieveSizeFromMedia(RemoteOverlayAccessIO.java:172)
@mjlassila great questions. Could you please also post to https://groups.google.com/g/dataverse-community ? Others who aren't in Zulip, such as Jim Myers, might know the answer off the top of their heads, I hope! :sweat_smile:
Thanks, I cross-posted my question to Google Groups.
It seems that Google Groups has moderation queue in place for new user accounts, so my message is pending for publishing.
Yes, it was stuck in the queue but I just approved it (and future messages from you): https://groups.google.com/g/dataverse-community/c/INCtaiu88mQ/m/1WV9C3zyCAAJ
Thanks!
Sounds like the ArrayIndexOutOfBoundsException is coming from this line: https://github.com/IQSS/dataverse/blob/v6.10.1/src/main/java/edu/harvard/iq/dataverse/dataaccess/RemoteOverlayAccessIO.java#L172
String sizeString = response.getHeaders(HTTP.CONTENT_LEN)[0].getValue();
I guess the Content-Length header is missing? Not sure why.
@mjlassila please feel free to open an issue at https://github.com/IQSS/dataverse/issues
I submitted a bug report: https://github.com/IQSS/dataverse/issues/12339
Last updated: May 30 2026 at 09:11 UTC