You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a round trip conversion of an ActiveFedora based FileSet to a Valkyrie resource and back to an ActiveFedora based FileSet, files are not correctly converted.
Rationale
Round trip conversion should produce the same object.
Initial ActiveFedora based FileSet
Expected and Actual behavior for FileSet
NOTE: IDs are simplified to make this easier to read. Typical file IDs and URIs look like...
id # "191dc5d4-66ea-4897-ab25-11fe7340bf8a/files/01ccf5d8-c136-48c5-af16-ecc513ca69f2"
uri # "http://127.0.0.1:8986/rest/test/19/1d/c5/d4/191dc5d4-66ea-4897-ab25-11fe7340bf8a/files/01ccf5d8-c136-48c5-af16-ecc513ca69f2"
Accessing the file using the filter_files_by_type and the convenience method original_files returns the same file with the same URI and the same id. The id is a shortened version of the URI with the Fedora PROTOCOL removed.
NOTE: The FileSet does not respond to the following methods.
The resource.original_file's URI is different from fileset1.original_file's URI. For the valkyrization process, it is probably undesirable for the original_file method to exist on the resource. The expected behavior shows this method raising NoMethodError.
It is created as part of the property-to-attribute translation process in the ModelTransformer.
Behavior when converting back to an ActiveFedora based FileSet
Descriptive summary
When there is a round trip conversion of an ActiveFedora based FileSet to a Valkyrie resource and back to an ActiveFedora based FileSet, files are not correctly converted.
Rationale
Round trip conversion should produce the same object.
Initial ActiveFedora based FileSet
Expected and Actual behavior for FileSet
NOTE: IDs are simplified to make this easier to read. Typical file IDs and URIs look like...
Results of method calls on fileset1
Accessing the file using the
filter_files_by_type
and the convenience methodoriginal_files
returns the same file with the same URI and the same id. The id is a shortened version of the URI with the Fedora PROTOCOL removed.NOTE: The FileSet does not respond to the following methods.
Behavior when converting to a Resource
Expected behavior
Actual behavior
The resource.original_file's URI is different from fileset1.original_file's URI. For the valkyrization process, it is probably undesirable for the original_file method to exist on the resource. The expected behavior shows this method raising NoMethodError.
It is created as part of the property-to-attribute translation process in the ModelTransformer.
Behavior when converting back to an ActiveFedora based FileSet
Expected behavior
Actual behavior
Steps to reproduce the behavior
Related work
PR #4055 Convert file ids in resource fileset to pcdm files in AF fileset
The text was updated successfully, but these errors were encountered: