Skip to content

concoredocker.java init stuck in main(), param parser broken for values with = #424

Description

@avinxshKD

two issues wit the java docker binding:

  1. all initialization (iport, oport, params, maxtime) is inside main(). import the class and call read() directly, everything is empty, no error

  2. the param fallback:
    sparams = "{'" + sparams.replaceAll(";", ",'").replaceAll("=", "':").replaceAll(" ", "") + "}";

replaces every =, not just the first. url=https://x.com?a=1 becomes {'url':https://x.com?a':1}, malformed, literalEval throws. python uses split("=", 1).

fix can be, move init to a static {} block nd change param split to split on first = only and quote string values. same pattern as concore.py's parse_params.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions