Skip to content

Fedora StorageAdapter finds root node for nil identifer #905

@no-reply

Description

@no-reply
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions