Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] io.helidon.config.mp.SeConfig.asMap truncates keys #7360

Closed
romain-grecourt opened this issue Aug 10, 2023 · 0 comments · Fixed by #7457
Closed

[3.x] io.helidon.config.mp.SeConfig.asMap truncates keys #7360

romain-grecourt opened this issue Aug 10, 2023 · 0 comments · Fixed by #7457
Assignees
Labels
3.x Issues for 3.x version branch bug Something isn't working config P2

Comments

@romain-grecourt
Copy link
Contributor

Environment Details

  • Helidon Version: 3.2.2
  • Helidon MP

var mpConfig = ConfigProviderResolver.instance().getBuilder()
        .withSources(MpConfigSources.create(Map.of(
                "client.headers.0.name", "foo",
                "client.headers.0.value", "bar"
        )))
        .build();
var helidonConfig = MpConfig.toHelidonConfig(mpConfig).get("client");
System.out.println(helidonConfig.asMap().orElse(Map.of()));
// prints {lient.headers.0.name=foo, lient.headers.0.value=bar}

var helidonConfig2 = Config.create(ConfigSources.create(Map.of(
        "client.headers.0.name", "foo",
        "client.headers.0.value", "bar"
))).get("client");
System.out.println(helidonConfig2.asMap().orElse(Map.of()));
// prints {client.headers.0.value=bar, client.headers.0.name=foo}
@romain-grecourt romain-grecourt added bug Something isn't working config 3.x Issues for 3.x version branch labels Aug 10, 2023
@m0mus m0mus added the P2 label Aug 14, 2023
@romain-grecourt romain-grecourt self-assigned this Aug 25, 2023
@romain-grecourt romain-grecourt changed the title io.helidon.config.mp.SeConfig.asMap truncates keys [3.x] io.helidon.config.mp.SeConfig.asMap truncates keys Aug 29, 2023
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues for 3.x version branch bug Something isn't working config P2
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants