davsclaus opened a new pull request, #31064:
URL: https://github.com/apache/camel/pull/31064

   _Claude Code on behalf of Claus Ibsen_
   
   ## Backport of #31062
   
   Cherry-pick (`git cherry-pick -x`) of #31062 onto `camel-4.18.x`.
   
   **Original PR:** #31062 - CAMEL-27751: camel-fop - apply the CamelFop.Render 
and CamelFop.Encrypt header values as given
   **Original author:** @davsclaus
   **Target branch:** `camel-4.18.x`
   **JIRA:** https://issues.apache.org/jira/browse/CAMEL-27751 (fixVersion 
4.18.7)
   
   ### Straight or adapted
   
   Adapted: the code change to `FopProducer` and the tests are the same as on 
`main`. These parts differ:
   
   - `FopProducer`: a conflict in the import block, resolved mechanically. 
`main` imports `InvalidPayloadException`, `camel-4.18.x` does not, and the 
change does not use it. The changed lines are the same as in #31062.
   - `FopEncryptionHeadersTest` and `FopMetadataHeadersTest`: they use 
`org.apache.camel.test.junit5.CamelTestSupport` instead of `junit6`, because 
`camel-4.18.x` tests with `camel-test-junit5`.
   - The changes to the upgrade guides (`camel-4x-upgrade-guide-4_18.adoc`, 
`4_22.adoc`, `4_24.adoc`) are left out. The upgrade guides live on `main`, and 
#31062 already added the 4.18.7 entry there.
   - The change to the catalog copy 
`catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/fop-component.adoc`
 is left out. `camel-4.18.x` does not keep that copy (CAMEL-16881). The 
component doc `components/camel-fop/src/main/docs/fop-component.adoc` is 
included.
   
   ### Original description
   
   The fop producer now maps the supported `CamelFop.Render.*` and 
`CamelFop.Encrypt.*` headers to the setters of `FOUserAgent` and 
`PDFEncryptionParams`. It converts each value to the type of the setter with 
the Camel type converter, so the value is used as given, instead of binding all 
such headers with `PropertyBindingSupport` like endpoint options. Option names 
are matched case-insensitively. Other names are ignored, with a WARN in the 
log. `CamelFop.RendererOptions.*` is unchanged. `fop-component.adoc` lists all 
supported headers.
   
   See #31062 for details.
   
   ### Tests
   
   - `mvn -o install -DskipTests` in `components/camel-fop` (formatter and 
impsort ran): no changes to the generated files, and the generated `fop.json` 
is identical to the copy in the catalog.
   - `mvn -o verify` in `components/camel-fop`: 16 tests, 0 failures, including 
`FopMetadataHeadersTest` (4) and `FopEncryptionHeadersTest` (2).
   
   🤖 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]

Reply via email to