Skip to content

Error loading ROOT file from S3 storage in JSROOT versions 7.10 and later #372

@grzanka

Description

@grzanka

I am able to open certain ROOT files hosted on S3-compatible storage (https://s3.cloud.cyfronet.pl/) using the JSROOT instance at https://jsroot.gsi.de/ with version 7.9.3. For example, this file loads without issues:

https://jsroot.gsi.de/7.9.3/?file=https://s3.cloud.cyfronet.pl/datarawlv3v1/lgad_agg_v1.root

Image

When using version 7.10.0 with the same ROOT file, I get the following error:
https://jsroot.gsi.de/7.10.0/?file=https://s3.cloud.cyfronet.pl/datarawlv3v1/lgad_agg_v1.root
Image

Ssame error occurs when using the latest JSROOT version:
https://jsroot.gsi.de/latest/?file=https://s3.cloud.cyfronet.pl/datarawlv3v1/lgad_agg_v1.root
Image

For reference, the CORS configuration on the S3 storage side is set as follows:

<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <CORSRule>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedHeader>*</AllowedHeader>
    <ExposeHeader>content-range</ExposeHeader>
    <ExposeHeader>content-length</ExposeHeader>
    <ExposeHeader>accept-ranges</ExposeHeader>
  </CORSRule>
</CORSConfiguration>

Please let me know if there is any additional information I can provide or if there is a workaround to load ROOT files from S3 storage in JSROOT versions 7.10 and above.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions