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

Fix remote digital objects import error via csv #1558

Open
wants to merge 1 commit into
base: qa/2.x
Choose a base branch
from

Conversation

willian95cs
Copy link

When importing digital objects via command line (csv) after importing the records, you get the error "Could not read the file" due to checking the path to the local directory. However, remote digital objects have no local path.

Fixes the bug by commenting out these validations and replacing importFromFile with importFromURI when creating digital objects so we can import to remote digital objects.

Allows the sending of local and remote digital objects in the same csv, validating the URI by the presence of the host. If the host does not exist, import the object with the local path.

@willian95cs
Copy link
Author

willian95cs commented Jan 21, 2023

This change makes the --link-source option work.

@willian95cs willian95cs changed the title WIP: Fix remote digital objects import error via csv Fix remote digital objects import error via csv Jun 9, 2023
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

Successfully merging this pull request may close these issues.

1 participant