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

Minor Bug on Setting API level logs #3169

Closed
piyumaldk opened this issue Oct 2, 2024 · 2 comments · Fixed by wso2/carbon-apimgt#12686
Closed

Minor Bug on Setting API level logs #3169

piyumaldk opened this issue Oct 2, 2024 · 2 comments · Fixed by wso2/carbon-apimgt#12686
Assignees
Labels
4.4.0 Affected/APIM-4.3.0 Affected/APIM-4.4.0 Issues affecting APIM 4.4.0 BugFixing Tracks the bugs to be fixed for APIM 4.3.0 release Type/Bug

Comments

@piyumaldk
Copy link

Description

When setting API logs [1] using below call,

curl -X PUT 'http://<HOST_NAME>:<PORT>/api/am/devops/v0/tenant-logs/{tenant-domain}/apis/{api-id}' -H 'Authorization: Basic <base64Encode(username:password)>' -H 'Content-Type: application/json' -d '{"logLevel": "<logLevel>"}' -k

However even if we did not had the right tenant in {tenant-domain} and add a wrong tenant, if API Manager cannot find a right tenant on that name, it updates the carbon.super's API if ID is right.

This is not actually a major bug, but will report this for future references.

[1] https://apim.docs.wso2.com/en/latest/observe/api-manager/monitoring-api-logs/

Steps to Reproduce

curl -X PUT 'http://<HOST_NAME>:<PORT>/api/am/devops/v0/tenant-logs/{tenant-domain}/apis/{api-id}' -H 'Authorization: Basic <base64Encode(username:password)>' -H 'Content-Type: application/json' -d '{"logLevel": "<logLevel>"}' -k

Affected Component

APIM

Version

4.3.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@RakhithaRR RakhithaRR added Affected/APIM-4.4.0 Issues affecting APIM 4.4.0 4.4.0 BugFixing Tracks the bugs to be fixed for APIM 4.3.0 release labels Oct 2, 2024
@Piumal1999 Piumal1999 self-assigned this Oct 4, 2024
@Piumal1999
Copy link

Hi @piyumaldk ,
I couldn't reproduce this error. Could you please check it again and verify?

@Piumal1999 Piumal1999 removed their assignment Oct 10, 2024
@AnuGayan
Copy link

This issue is reproducing in beta pack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.4.0 Affected/APIM-4.3.0 Affected/APIM-4.4.0 Issues affecting APIM 4.4.0 BugFixing Tracks the bugs to be fixed for APIM 4.3.0 release Type/Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants