NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 24 forks source link

Error retrieving files #2431

Open rushirajnenuji opened 4 weeks ago

rushirajnenuji commented 4 weeks ago

We recently received a report of files being inaccessible in a package in DataONE (see ticket #28111: Error retrieving files); and I suspect this could be a related issue. In MetacatUI v 2.28.0 or later, the data package table shows the error "Error retrieving files for this data package", but on v 2.27.0 or earlier, the list of files appears as is.

Steps to reproduce

  1. On a local instance of MetacatUI configured to the dataone theme, checkout the main branch.
  2. Navigate to http://localhost:3000/view/doi%3A10.6085%2FAA%2FPISCO_kelpforest.1.6
  3. See the error in the package table
  4. Checkout MetacatUI version 2.27.0 in git: git checkout tags/2.27.0
  5. Navigate to http://localhost:3000/view/doi%3A10.6085%2FAA%2FPISCO_kelpforest.1.6 again and see that the file list loads

I haven't dug into this enough to see exactly which request succeeds in the old version that now fails in the new version, but the list of requests that include package ID do differ between the two versions:

v 2.27.0

mcui-v-2 27 0

v 2.28.0

mcui-v-2 28 0

Note that both include some 404s & CORS errors.

Originally posted by @robyngit in https://github.com/NCEAS/metacatui/issues/2373#issuecomment-2112767951

rushirajnenuji commented 3 weeks ago

from DataONE Slack thread:

update: Had a call with Rani, Eric (PISCO), Jing and I; and we were able to look at the server setting at PISCO MN. We updated CORS related settings in Apache and were able to resolve this. The package link is working. Robyn and I talked briefly about this issue last week while we were debugging it and noticed we had some lost functionality (fall back to SOLR index when resMaps are not accessible), which I'll work on adding as part of this issue.