Skip to content

Map config item with the map values gets the wrong keys #5982

@sberyozkin

Description

@sberyozkin

Describe the bug

With this config item:

/**
     * Configuration of the individual parsers.
     * For example:
     *
     * <pre>
     * quarkus.tika.parsers = pdf
     * quarkus.tika.parser-options.pdf.sort-by-position = true
     */
    @ConfigItem
    public Map<String, Map<String, String>> parserOptions;

the first segment following the name of the config item (pdf) is lost.

Before the major config update I was seeing the map initialized as follows, given the above config fragment:

pdf (key): sort-by-position = true (single entry map value, sort-by-position - key, true - value)

Now I'm seeing:

sort-by-position (key): sort-by-position = true (single entry map value, sort-by-position - key, true - value)

so the pdf bit is lost.

(I think a similar issue may affect this configuration)

CC @dmlloyd

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions