gnodet commented on PR #30709:
URL: https://github.com/apache/camel/pull/30709#issuecomment-7142755049

   Thanks for the LGTM and the optional nits, @davsclaus!
   
   **Nit 1 — PR description:** The description already shows 
`SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE` as the primary check (the 
disconnect code path) alongside `"Authentication failed"` for the 
`DefaultAuthFuture` path. I've added the sentence you suggested: a login 
attempt goes once per auth method offered by the server (password + 
keyboard-interactive), which is why the count is ≤ 2 and differs from 
camel-sftp.
   
   **Nit 2 & 3 — `MinaSftpAuthRetryIT` Javadoc:** Fixed in 
[2102d59](https://github.com/apache/camel/pull/30709/commits/2102d5989a95f6bfd12e961be5decc7255547dee):
   - Class Javadoc: removed the inaccurate "thrown specifically for auth 
failures" phrasing; now describes both detection paths and notes non-auth 
`SshException`s are still retried.
   - `testRejectedLoginIsNotRetried`: changed "sent exactly once" → "sent at 
most twice (once per auth method)".
   - `testTransientFailureIsStillRetried`: changed "plain IOException" → 
"SshException wrapping ConnectException".


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