marklogic-contentpump icon indicating copy to clipboard operation
marklogic-contentpump copied to clipboard

Comma in output_uri_replace causes "Invalid option argument" error

Open lifan0127 opened this issue 6 years ago • 0 comments

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)

lifan0127 avatar Nov 20 '18 21:11 lifan0127