Investigate inability to read non-public-read objects from the CN index

Offen
#20 1 Kommentar 0 Reaktionen 2 zugewiesene Personen Auf GitHub ansehen

@taojing2002 arbeitet bereits daran.

Seit 02.5.2022.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

bug Data Search

It looks like objects without public-read permission aren't being returned by the CN index when requests are made with a token that (1) is valid and (2) should have read permission. It's not clear how long this has been the case.

The package below is an example. We can see it fine on arctica but not on the CN:

  • Metadata PID: urn:uuid:ebcb68d6-45c1-4440-b214-bb5b8eca1d6c
  • Resource map PID: resource_map_urn:uuid:5aff3115-ff3d-446a-90ed-94057bbb9348

Note: The metadata does not have public read permission but the resource map does. This is actually what led us to discover things weren't working.

Since discovering, we haven't seen a case here we are able to see a non-public-read object. We know this used to work. We've confirmed the Solr document is in the index by querying Solr directly so it's something to do with the interaction of the API and Solr.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
2
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DataONEorg/dataone

Alle Issues in DataONEorg/dataone

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.