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

   _Claude Code on behalf of Claus Ibsen_
   
   ## Backport of #31062
   
   Cherry-pick of #31062 onto `camel-4.22.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.22.x`
   **JIRA:** https://issues.apache.org/jira/browse/CAMEL-27751 (fixVersion 
4.22.4)
   
   ### Straight or adapted
   
   Straight cherry-pick (`git cherry-pick -x`) of the squash-merge commit, with 
only mechanical differences:
   
   - The upgrade-guide entries of #31062 (4.24, 4.22.4, 4.18.7) are not part of 
this backport: the upgrade guides for all versions live on `main`, where #31062 
already added the 4.22.4 entry.
   - `FopProducer.java`: an import-only conflict. `main` also imports 
`org.apache.camel.InvalidPayloadException` (from a change that is not on 
`camel-4.22.x`); the backport keeps the import list of this branch and adds the 
new `NoTypeConversionAvailableException` import. The two changed methods 
(`setRenderParameters`, `setEncryptionParameters`) and the new helpers are the 
same as on `main`.
   - The catalog copy of `fop-component.adoc` was regenerated by the build of 
this branch.
   
   The new tests use `camel-test-junit6` and PDFBox, both available on 
`camel-4.22.x`; FOP 2.11 on this branch has the same setters as FOP 2.12 on 
`main`.
   
   ### Original description
   
   The fop producer reads the `CamelFop.Render.*` and `CamelFop.Encrypt.*` 
message headers to set the PDF metadata and the encryption settings of each 
document. It now maps the supported option names to the `FOUserAgent` and 
`PDFEncryptionParams` setters and converts each value 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. 
`CamelFop.RendererOptions.*` is unchanged. `fop-component.adoc` lists all 
supported headers.
   
   ### Tests
   
   - `mvn install` in `components/camel-fop`: 16 tests, 0 failures (includes 
the new `FopMetadataHeadersTest` and `FopEncryptionHeadersTest`).
   - Full reactor `mvn -Dquickly install` on `camel-4.22.x`.
   
   🤖 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