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

   [CAMEL-27901](https://issues.apache.org/jira/browse/CAMEL-27901)
   
   Creating a Bulk API job with `pkChunking` and any of `pkChunkingChunkSize`, 
`pkChunkingStartRow` or `pkChunkingParent` fails with `400 
Sforce-Enable-PkChunking doesn't have a valid value`.
   
   `BulkApiProcessor` built the `Sforce-Enable-PKChunking` header as a list 
(`true`, `chunkSize=1000`, ...), which Jetty sends as `true, chunkSize=1000`. 
Salesforce expects a single value: `TRUE`, or the options separated by 
semicolons (`chunkSize=1000; startRow=...`).
   
   The header is now `TRUE` when no options are set, otherwise the options 
joined with `"; "`.
   
   - `BulkApiProcessorTest`: unit test for the header value.
   - `BulkApiQueryManualIT.testPkChunkingWithoutOptions`: covers `pkChunking` 
alone. It and the existing `testPkChunking` pass against a scratch org.
   
   _Claude Code on behalf of jamesnetherton_
   
   🤖 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