Claus Ibsen created CAMEL-27809:
-----------------------------------
Summary: camel-sap-netweaver: a missing username or password sends
"null" as the credentials
Key: CAMEL-27809
URL: https://issues.apache.org/jira/browse/CAMEL-27809
Project: Camel
Issue Type: Bug
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-sap-netweaver for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31138).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. A missing username or password is sent as the text null
username and password are @Metadata(required = true) but nothing enforces it at
runtime. {{NetWeaverProducer.doStart}} builds {{RAW(null)}}, so camel-http
answers the Basic challenge with the literal "null".
Proposed change: fail in doStart (or the endpoint's doInit) with
IllegalArgumentException when either is missing.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)