[
https://issues.apache.org/jira/browse/KNOX-3489?focusedWorklogId=1043982&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1043982
]
ASF GitHub Bot logged work on KNOX-3489:
----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Sep/26 12:18
Start Date: 25/Sep/26 12:18
Worklog Time Spent: 10m
Work Description: smolnar82 opened a new pull request, #1430:
URL: https://github.com/apache/knox/pull/1430
[KNOX-3489](https://issues.apache.org/jira/browse/KNOX-3489) - Log
request/response when calling remote role lookup server
## What changes were proposed in this pull request?
`RestApiLdapRolesLookup` now logs the outgoing request (endpoint + body) and
the response (status + body) at `DEBUG`, and the response body at `ERROR` on
non-200 — previously the error body was discarded, making troubleshooting hard.
## How was this patch tested?
Existing `RestApiLdapRolesLookupTest` passes. Added `@PowerMockIgnore` for
XML packages (the new logger initializes XML at class-load, which PowerMock
otherwise breaks on JDK 9+).
Issue Time Tracking
-------------------
Worklog Id: (was: 1043982)
Remaining Estimate: 0h
Time Spent: 10m
> Add logging arounf REST-based LDAP roles lookup
> -----------------------------------------------
>
> Key: KNOX-3489
> URL: https://issues.apache.org/jira/browse/KNOX-3489
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Affects Versions: 3.0.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 3.1.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Unfortunately Knox doesn't log output/input when talking to remote role
> lookup servers. That makes troubleshooting hard. Let's fix that.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)