Stream: troubleshooting

Topic: Trusted Remote Storage and files not accessible by Dataverse


view this post on Zulip mjlassila (Apr 16 2026 at 13:46):

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)

view this post on Zulip Philip Durbin ๐Ÿš€ (Apr 16 2026 at 16:06):

@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:

view this post on Zulip mjlassila (Apr 17 2026 at 05:56):

Thanks, I cross-posted my question to Google Groups.

view this post on Zulip mjlassila (Apr 17 2026 at 07:34):

It seems that Google Groups has moderation queue in place for new user accounts, so my message is pending for publishing.

view this post on Zulip Philip Durbin ๐Ÿš€ (Apr 17 2026 at 11:05):

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!

view this post on Zulip Philip Durbin ๐Ÿš€ (Apr 17 2026 at 13:00):

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();

view this post on Zulip Philip Durbin ๐Ÿš€ (Apr 17 2026 at 13:02):

I guess the Content-Length header is missing? Not sure why.

view this post on Zulip Philip Durbin ๐Ÿš€ (Apr 17 2026 at 13:03):

@mjlassila please feel free to open an issue at https://github.com/IQSS/dataverse/issues

view this post on Zulip mjlassila (Apr 20 2026 at 07:37):

I submitted a bug report: https://github.com/IQSS/dataverse/issues/12339


Last updated: May 30 2026 at 09:11 UTC