OCFL / ocfl-java

A Java OCFL implementation
MIT License
18 stars 12 forks source link

configurable behavior on unknown extensions #26

Closed pwinckles closed 3 years ago

pwinckles commented 3 years ago

Allow users to configure what they want to happen when unsupported extensions are encountered:

  1. Fail on unknown repo extensions
  2. Warn on unknown repo extensions
  3. Fail on unknown object extensions
  4. Warn on unknown object extensions
bcail commented 3 years ago

Would these options affect storage layout extensions?

For non-storage-layout extensions, I could see an option of "fail, but allow an override" being useful.

pwinckles commented 3 years ago

@bcail Can you elaborate on what you mean?

bcail commented 3 years ago

Sure. For safety, I could the failure option being helpful - if you don't understand something, just fail. But, there could be a situation where the unknown extension is harmless, so I want to override the default failure mode to just do the operation anyway.

pwinckles commented 3 years ago

resolved with https://github.com/UW-Madison-Library/ocfl-java/commit/779e60eb5bf9e9231a2b61e7114cf6ce293191e1