Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIM-cli import breaks feAPIs with basic auth w/out password #470

Open
emmanuel-galindo opened this issue Mar 13, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@emmanuel-galindo
Copy link

APIM-CLI version

1.14.2

API-Management version

7.7.3

Bug description

For a feAPI that has an outbound backend servier with BASIC auth, and only username defined and password is empty, "apim api get" retrieves:
" [...]
"authenticationProfiles" : [ {
"name" : "_default",
"isDefault" : true,
"parameters" : {
"username" : "user",
"id" : 0
},
[...]"
Doing an import with this, breaks the feAPI and user gets 500. Exception in logs reads:
"
[...]
nested fault: no password specified
java.lang.NullPointerException: no password specified
at com.vordel.dwe.http.ClientTransaction.basicAuthString(Native Method)
at com.vordel.circuit.net.BasicAuthNConnectionHandler$BasicState.getAuthToken(BasicAuthNConnectionHandler.java:152)
at com.vordel.circuit.net.BasicAuthNConnectionHandler$BasicState.expectContinue(BasicAuthNConnectionHandler.java:191)
[...]"

When setting this basic (user with no password) via API Manager UI, the PUT request body reads as:
" [...]
"authenticationProfiles": [
{
"name": "_default",
"isDefault": true,
"parameters": {
"username": "username",
"id": 0,
"password": ""
},
"type": "http_basic"
}
[...]"

Steps to reproduce

No response

Relevant log output

No response

@emmanuel-galindo emmanuel-galindo added the bug Something isn't working label Mar 13, 2024
@rathnapandi rathnapandi self-assigned this Mar 22, 2024
@emmanuel-galindo
Copy link
Author

@rathnapandi this is fixed in 1.14.4 right?

@rathnapandi
Copy link
Member

Hi @emmanuel-galindo, Can you test it with latest relelase?

rathnapandi pushed a commit that referenced this issue Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants