Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora StorageAdapter finds root node for nil identifer #905

Open
no-reply opened this issue Jun 16, 2022 · 0 comments
Open

Fedora StorageAdapter finds root node for nil identifer #905

no-reply opened this issue Jun 16, 2022 · 0 comments

Comments

@no-reply
Copy link
Contributor

no-reply commented Jun 16, 2022

adapter = ::Valkyrie::Storage::Fedora.new(connection: my_connection))
adapter.find_by(id: nil)

gives the RDF for the root node:

#<Valkyrie::StorageAdapter::StreamFile id=nil io=#<Valkyrie::Storage::Fedora::IOProxy:0x00007fbef52d2380 @source="@prefix premis:  <http://www.loc.gov/premis/rdf/v1#> .\n@prefix test:  <info:fedora/test/> .\n@prefix rdfs:  <http://www.w3.org/...

it should instead raise an error. likely this applies to any id that doesn't match an ldp:NonRDFSource, which is kinda neat, but probably not what we want.

no-reply pushed a commit to samvera/hyrax that referenced this issue Jun 16, 2022
the base case originally tested relied on a bug in
Valkyrie (samvera/valkyrie#905).

this reimplements with a more serious error handling approach.
no-reply pushed a commit to samvera/hyrax that referenced this issue Jun 16, 2022
the base case originally tested relied on a bug in
Valkyrie (samvera/valkyrie#905).

this reimplements with a more serious error handling approach.
no-reply pushed a commit to samvera/hyrax that referenced this issue Jun 16, 2022
the base case originally tested relied on a bug in
Valkyrie (samvera/valkyrie#905).

this reimplements with a more serious error handling approach.
dunn pushed a commit to samvera/hyrax that referenced this issue Jun 17, 2022
the base case originally tested relied on a bug in
Valkyrie (samvera/valkyrie#905).

this reimplements with a more serious error handling approach.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant