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

handle multiple objects in storage root with same id #8

Open
ghukill opened this issue Dec 20, 2018 · 0 comments
Open

handle multiple objects in storage root with same id #8

ghukill opened this issue Dec 20, 2018 · 0 comments

Comments

@ghukill
Copy link
Member

ghukill commented Dec 20, 2018

Take the following example of 4 objects, two sharing ids:

In [34]: for obj in sr.get_objects(): 
    ...:     print(obj.id) 
    ...:                                                                                                                                                                                                                                                                                   
93545273046d4857b30037ad4d59463f
93545273046d4857b30037ad4d59463f
4bc8bfd37c654748a9aa899a3c413e84
4bc8bfd37c654748a9aa899a3c413e84

Currently, OCFLStorageRoot.get_object():

  1. takes the passed identifier
  2. using storage engine, checks for object at that calculated path
  3. if present, returns

In this construed example, though two OCFL objects share the same identifier, one of them is not valid in the context of the Storage Root's storage engine (storage_pair_tree in this instance). This makes this issue acutely related to #7.

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