This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch CAMEL-26169-sap-netweaver-query
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to
refs/heads/CAMEL-26169-sap-netweaver-query by this push:
new f10fca519737 CAMEL-26169: camel-sap-netweaver - document the RAW
syntax corner case
f10fca519737 is described below
commit f10fca51973700faa9e00a2565eae6151b16f0ab
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 2 20:13:27 2026 +0100
CAMEL-26169: camel-sap-netweaver - document the RAW syntax corner case
A credential with both a ) followed by & and a } fits neither RAW form,
note it in a code comment (review feedback).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/component/sap/netweaver/NetWeaverProducer.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
b/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
index e0c3daea8be4..e4669c805e5b 100644
---
a/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
+++
b/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
@@ -93,6 +93,8 @@ public class NetWeaverProducer extends DefaultProducer {
private static String raw(String value) {
// RAW(...) ends at a ) followed by &, so a value with a ) uses the
RAW{...} form instead
+ // a value with both a ) followed by & and a } fits neither RAW form
(a limit of the RAW syntax),
+ // and is cut short at the )&
if (value != null && value.indexOf(')') != -1 && value.indexOf('}') ==
-1) {
return "RAW{" + value + "}";
}