projectblacklight / arclight

A Rails engine supporting discovery of archival material
https://samvera.atlassian.net/wiki/spaces/samvera/pages/405211890/ArcLight
Other
39 stars 25 forks source link

arclight:index_url doesn't fetch remote files #1527

Open alexduryee opened 7 months ago

alexduryee commented 7 months ago

When running arclight:index_url with a valid URL, it throws the following error:

rake arclight:index_url URL=https:/path/to/valid/ead.xml
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - https:/path/to/valid/ead.xml (Errno::ENOENT)

The issue appears to be at https://github.com/projectblacklight/arclight/blob/main/lib/tasks/index.rake#L46, where Ruby's basic open() in invoked (checking the filesystem) and not a HTTP-aware open().