gnodet commented on PR #14205:
URL: https://github.com/apache/maven/pull/14205#issuecomment-7350849739

   <!-- hermes-bot -->
   Addressed the gnodet-bot findings and pushed updated branch:
   
   - **Empty bearer token guard**: added `if (!token.isEmpty())` check before 
calling `addBearerToken()` to skip a bare `Bearer ` prefix with no token value.
   - **Uncaught `IllegalArgumentException` on duplicate headers**: wrapped 
`addBearerToken`/`addTokenHeader` in a `try/catch` that logs a `WARN` instead 
of propagating the exception.
   - **Missing test coverage**: added three new tests in 
`DefaultRepositorySystemSessionFactoryTest` covering bearer token wiring, 
custom token header wiring, and graceful handling of duplicate headers.
   - **`DefaultSettingsDecrypter` http-header decryption**: added 
`decryptHttpHeaders()` to decrypt `<configuration><httpHeaders>` values 
in-place (with tests in `DefaultSettingsDecrypterTest`).
   - **Timeout parsing**: wrapped `connectTimeout`/`requestTimeout` 
`Integer.parseInt()` calls in `try/catch (NumberFormatException)` with `WARN` 
logging.
   
   The 2.0.27-SNAPSHOT dependency thread is left open pending the 
maven-resolver 2.0.27 release.


-- 
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]

Reply via email to