Map config item with the map values gets the wrong keys
See original GitHub issueDescribe 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:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have a fix, but #5989 has to be merged first due to conflicts.
@dmlloyd thanks, I will follow up with the #4360 rebase after the fix is in