marklogic-contentpump
marklogic-contentpump copied to clipboard
Comma in output_uri_replace causes "Invalid option argument" error
The following command fails because the uri_replace string contains a comma: text,123. Attempted to escape the comma with slush or double slush has no effect.
./mlcp.sh IMPORT -host local -port 8000 -username admin \
-password admin -input_file_path test -mode local \
-output_uri_replace "test,'test,123'"
java.lang.IllegalArgumentException: Invalid option argument for output_uri_replace :test,'test,123'
at com.marklogic.contentpump.Command.applyCommonOutputConfigOptions(Command.java:2219)
at com.marklogic.contentpump.Command$1.applyConfigOptions(Command.java:448)
at com.marklogic.contentpump.Command$1.createJob(Command.java:348)
at com.marklogic.contentpump.ContentPump.runCommand(ContentPump.java:226)
at com.marklogic.contentpump.ContentPump.main(ContentPump.java:74)