Skip to content

Fragile Parameter Parsing corrupts values containing spaces, URLs, or special characters in concore.py and concoredocker.py #184

@GREENRAT-K405

Description

@GREENRAT-K405

Hi @pradeeban
Currently, concore.py and concoredocker.py uses unsafe regualr expression substitution (re.sub) to parse raw parameter string into python dictionary format.
this causes three critical failures:

  1. the code re.sub(" ", "") removes all the space from the input. corrupting values that require spacing (e.g. sentences, timestamps, or file paths like concore\demo).

  2. The naive replacement of = with ': breaks any value that naturally contains an equals sign, such as a URL (?q=search) or a connection string.

  3. concore.py expects semicolons (;), while concoredocker.py expects commas (,), but both share the same fragile parsing flaw.

The parser should respect the structure of the data, splitting only on the intended delimiters and preserving the integrity of the values.
example:
Parsed Key: input_dir → Value: /data/my experiments/ (spaces preserved)
Parsed Key: server_url → Value: http://example.com/api?user=admin (equal sign = preserved)

Metadata

Metadata

Assignees

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