[ 
https://issues.apache.org/jira/browse/CAMEL-27809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27809:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-sap-netweaver for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/800e63636cb5cf151e93037191c087b49ed30169,
 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_

  was:
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_


> 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
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-sap-netweaver for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/800e63636cb5cf151e93037191c087b49ed30169,
>  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)

Reply via email to