chitralverma opened a new pull request, #9262: URL: https://github.com/apache/opendal/pull/9262
# Which issue does this PR close? Closes #9261. # Rationale for this change String-keyed configuration (`Operator::from_uri`, `Operator::via_iter`, `Configurator::from_iter`, and the bindings built on them) cannot set `HashMap<String, String>` options such as `HdfsNativeConfig::options` and `S3Config::assume_role_session_tags`. Every string value fails with `invalid type: string, expected a map`. #9261 describes the gap, the binding workarounds, and the MiniDFS check. # What changes are included in this PR? - `ConfigDeserializer` reads a map-valued option as a JSON object with string values. Keys inside the object keep their case, and the last occurrence of a duplicate key wins. An empty value gives an empty map, as an empty list value already does, so an `Option` map stays unset. Numbers, `null`, arrays, nested objects, and non-JSON values fail with `ConfigInvalid` and name the option. - `operator-configuration.md` states the rule in "Option values and errors". - Unit tests in `serde_util.rs` cover preserved key case, values that contain `,`, empty values, and the rejected forms. No service code changes. The Python, Java, .NET, and docs generator follow-ups listed in #9261 will come as separate PRs. # Are there any user-facing changes? Yes. A JSON object string now sets `HdfsNativeConfig::options` and `S3Config::assume_role_session_tags` through URIs, `via_iter`, `from_iter`, and bindings that pass options through as strings. Before this change, any non-empty value for these fields failed, so no previously accepted configuration changes meaning. The operator configuration specification documents the encoding. # Breaking changes # AI Usage Statement - Harness: Claude Code (in T3 Code) - Model: Claude Opus 5.5 (`claude-opus-5-5`) - Effort: xhigh - Role: Analyzed #9038 and the maintainer's suggestion, implemented the change and its tests, ran the MiniDFS check described in #9261, and drafted #9261 and this description. The author reviewed them. S3 session tags were not tested against AWS STS. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
