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

   [CAMEL-28020](https://issues.apache.org/jira/browse/CAMEL-28020)
   
   ### What
   
   The upgrade guides of every release line live on `main` and act as the 
canonical history across all releases (see
   `.oss-ai-helper-rules/project-guidelines.md`). The `camel-salesforce` note 
for this change went into the 4.25 guide
   with #31250. The change is backported to the two maintenance lines, and the 
backports carry no guide change, so this
   documentation-only PR adds the corresponding note to their guides on `main`:
   
   * `docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc`, in 
`== Upgrading from 4.22.3 to 4.22.4`
     (the change ships in 4.22.4).
   * `docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc`, in 
`== Upgrading from 4.18.6 to 4.18.7`
     (the change ships in 4.18.7).
   
   In both guides the note sits between two existing notes of that section, 
right after the `camel-fop` note.
   
   ### Note added to both guides
   
   ```asciidoc
   === camel-salesforce - REST and raw request URLs must stay on the configured 
instance
   
   The REST client `queryMore` operation and the raw client `makeRequest` 
operation now validate the request URL they
   build before sending it. The `nextRecordsUrl` passed to `queryMore` and the 
`path` passed to `makeRequest` must be an
   absolute path (they have to begin with a single `/`), and the fully resolved 
URL must keep the scheme, host and port of
   the configured Salesforce instance URL. A value that does not meet these 
rules now fails fast with a
   `SalesforceException` instead of being sent. Legitimate `nextRecordsUrl` 
values returned by Salesforce and raw paths
   that begin with `/` are unaffected. In addition, the record `id` segment of 
the `getSObject`, `updateSObject`,
   `updateSObjectMultipart`, `deleteSObject` and `getBlobField` operations is 
now URL-encoded, matching the operations
   that already encode their path values.
   ```
   
   The text is the one of the 4.25 note, checked against each line. On 
`camel-4.22.x` and `camel-4.18.x` the code changed
   by #31250 is the same as on `main` before that PR: 
`DefaultRestClient.queryMore` and `DefaultRawClient.makeRequest`
   append the value to the instance URL, the five operations named above append 
the record `id` as given, and
   `getSObjectWithId`, `upsertSObject` and `deleteSObjectWithId` already encode 
their path value. `AbstractRestProcessor`
   and `RawProcessor` report the `SalesforceException` on the exchange in the 
same way on the three lines. So each
   statement of the note also holds for 4.22.4 and 4.18.7.
   
   4.22.4 and 4.18.7 are the next releases of the two lines: `camel-4.22.x` is 
at `4.22.4-SNAPSHOT` and `camel-4.18.x` at
   `4.18.7-SNAPSHOT`, and neither version is tagged yet.
   
   ### Related PRs
   
   * #31250 - the change on `main` (4.25.0), which added the note to 
`camel-4x-upgrade-guide-4_25.adoc`.
   * Backport of #31250 to `camel-4.22.x` (4.22.4): #31321.
   * Backport of #31250 to `camel-4.18.x` (4.18.7): #31322.
   
   This PR accompanies the two backports and merges after them. No code 
changes, documentation only.
   
   _Claude Code on behalf of oscerd_
   
   🤖 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