Skip to content

JsonConfigurator does not escape quoted options #1827

@drcrallen

Description

@drcrallen

io/druid/druid-api/0.3.13/druid-api-0.3.13-sources.jar!/io/druid/guice/JsonConfigurator.java:85 (or there-abouts) puts property values in quotes, this makes #1748 have to have a lot of extra escape characters. So the runtime.properties file has to have something like this: druid.indexer.runner.javaOpts=-server -Xmx256m -XX:OnOutOfMemoryError=\\\"kill -9 %p\\\" in order to actually pick up the options properly whenever value = jsonMapper.readValue(modifiedPropValue, Object.class); is called.

The proper behavior would be to escape quotes in the modifiedPropValue when it encapsulates the property value in "%s"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions