marklogic / marklogic/marklogic-contentpump

Comma in output_uri_replace causes "Invalid option argument" error

Open
#89 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug minor mlcp verify
Dominant language
Java
Stars
37
Forks
32
Avg merge
1h 3m
Merged PRs (30d)
12

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.