-
Notifications
You must be signed in to change notification settings - Fork 14
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
Work generic_file validation is wrong #71
Comments
|
I have a fix for this specific problem. I will create a PR. |
PR #74 fixes this issue. When the PR is merged, this ticket should be closed. |
To validate something is a generic file...
|
Ok, with the fuller set of tests, it is apparent the kludge does not work. By using initialize method, it is not fully using the included PCDM:CollectionBehavior. It does not seem to create the members container in Fedora. The most common error:
|
Why do we want to use:
instead of just:
hydra-pcdm doesn't seem to use .container. It is just doing this as a single line https://github.com/projecthydra-labs/hydra-pcdm/blob/master/lib/hydra/pcdm/models/concerns/collection_behavior.rb#L63-L65. |
Fixed by PR samvera/hydra-pcdm#85 |
https://github.com/projecthydra-labs/hydra-works/blob/master/lib/hydra/works/models/concerns/work_behavior.rb#L41-L42
it is validating that the type of file must be a Works::GenericFile however Sufia will want to provide a "GenericFile" which does not satisfy the current validation:
The text was updated successfully, but these errors were encountered: