saravanakumar1987 opened a new pull request, #30642: URL: https://github.com/apache/camel/pull/30642
# Description Fixes [CAMEL-27388](https://issues.apache.org/jira/browse/CAMEL-27388). ## Summary Three required flags and three option labels of `camel-alibaba-oss` did not match the code, and `OSSHeaders` lacked six producer headers. This change corrects the flags and the labels, and adds the six headers. A user notices it in the Endpoint DSL and in the endpoint validation of the catalog, not at runtime. - `region`, `accessKey` and `secretKey` are no longer marked as required, as a set `ossClient` replaces all three. - `objectName` and `maxKeys` have the label `producer`, and `prefix` has no label, as the producer reads it too. - `OSSHeaders` declares the six headers that only the producer reads, and `CamelAlibabaOssOperation` lists its seven values with `enums`. - The nine older headers have the label `common`, as the producer sets them too for `getObject`. - The Endpoint DSL has `objectName` only in the producer builder now, and the upgrade guide has two sections. ### Why no option stays required `OSSUtils.createClient` needs `region` or `endpoint`, and it takes each key from its own option or from `serviceKeys`. So no single option is required when Camel creates the client. `camel-alibaba-sms` and `camel-alibaba-kms` need `region` or `endpoint` in the same way, and mark neither as required. ## Tests - `testValidateEndpointAlibabaOss` of `CamelCatalogTest` validates four URIs for the required flags and the three labels, and checks seven header groups. - It failed before the change, as the catalog reported `secretKey`, `accessKey` and `region` as missing required options. - The build of `camel-alibaba-oss` ran 30 tests, and none failed. - On Windows, 148 of the 149 tests of `CamelCatalogTest` pass, and `testValidateGroovyLanguage` fails as CAMEL-27401 describes. # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran `mvn clean install -Dquickly -DskipTests` in the root folder on the parent commit, ac2095627dfa. Then I ran the builds of `camel-alibaba-oss`, of `catalog/camel-catalog` with `CamelCatalogTest`, and of `dsl/camel-endpointdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. Claude Code (Anthropic) drafted the change and this text, and ran the builds and tests named above. _Claude Code on behalf of saravanakumar1987_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
