MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

OAI toolchain error: "No such file or directory" #503

Open bondjimbond opened 5 years ago

bondjimbond commented 5 years ago

I'm getting errors in the OAI toolchain as MIK wants to put them into folders that don't yet exist.

[2019-06-25 20:30:29] ErrorException.ERROR: ErrorException {"message":"file_put_contents(/Volumes/Arca/tmp/oaitest_output/oai_mruir.mtroyal.ca_11205/434.xml): failed to open stream: No such file or directory"

Are we missing a mkdir command or something?

bondjimbond commented 4 years ago

I think the real problem here is that MIK is not escaping the special character found in the recodr identifier. The ID in this case is "oai_mruir.mtroyal.ca_11205/434" -- which is really terrible. Maybe we can escape the IDs when creating files?