epugh commented on PR #3860:
URL: https://github.com/apache/solr/pull/3860#issuecomment-3530020849
I really hope the last edit makes sense, I asked for help and go this
explanation...
### File: `TestDelegationTokenResponse.java`
Modified `delegationTokenResponse()` method to check parser type:
- If parser is `InputStreamResponseParser`: Create empty `NamedList`
directly
- Otherwise: Use the existing `processResponse()` method
## Why This Works
- **Cancel requests** use `InputStreamResponseParser` and expect empty
responses anyway, so creating an empty `NamedList` is appropriate
- **Get and Renew requests** use `JsonMapResponseParser` which still
supports `processResponse()`, so they continue to work as before
- This approach avoids calling `processResponse()` on
`InputStreamResponseParser`, preventing the `UnsupportedOperationException`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]