question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Map config item with the map values gets the wrong keys

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dmlloydcommented, Dec 6, 2019

I have a fix, but #5989 has to be merged first due to conflicts.

0reactions
sberyozkincommented, Dec 6, 2019

@dmlloyd thanks, I will follow up with the #4360 rebase after the fix is in

Read more comments on GitHub >

github_iconTop Results From Across the Web

HashMap wrong values for keys - java - Stack Overflow
I am kinda new to Java, and I am trying to write a function that maps all element indexes from an ArrayList into...
Read more >
Understanding Map and Set Objects in JavaScript | DigitalOcean
Introduced in ECMAScript 2015, Maps in JavaScript are ordered collections of key/value pairs, and Sets are collections of unique values.
Read more >
Mapping configuration to objects - Quarkus
The List or Set mappings can use indexed properties to map configuration values in mapping groups. For collection with simple element types like...
Read more >
configparser — Configuration file parser — Python 3.11.1 ...
Config parsers do not guess datatypes of values in configuration files, ... parser.items() is compatible with the mapping protocol (returns a list of ......
Read more >
Configure the map—ArcGIS Field Maps | Documentation
If a field has a range or coded value domain, the default value must honor it. If you set a default value outside...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found