gnodet-bot commented on code in PR #30709:
URL: https://github.com/apache/camel/pull/30709#discussion_r4680160111
##########
components/camel-mina-sftp/src/main/docs/mina-sftp-component.adoc:
##########
@@ -466,8 +466,12 @@ The component provides clear error messages for common
failure scenarios:
* **Connection timeout**: `Connection timed out after \{timeout\}ms`
==== Authentication Errors
-* **Authentication failure**: `Authentication failed: \{reason\}`
-* **Authentication timeout**: `Authentication timed out after \{timeout\}ms`
+* **Login rejected** (wrong credentials): `Login rejected by {host}:{port}: No
more authentication methods available`
Review Comment:
💡 **AsciiDoc attribute substitution:** `{host}` and `{port}` are unescaped
inside backtick-monospace. The existing lines above use `\{timeout\}` correctly
— without the backslash escapes, these will silently render as empty strings.
```suggestion
* **Login rejected** (wrong credentials): `Login rejected by
\{host\}:\{port\}: No more authentication methods available`
```
##########
components/camel-mina-sftp/src/main/docs/mina-sftp-component.adoc:
##########
@@ -466,8 +466,12 @@ The component provides clear error messages for common
failure scenarios:
* **Connection timeout**: `Connection timed out after \{timeout\}ms`
==== Authentication Errors
-* **Authentication failure**: `Authentication failed: \{reason\}`
-* **Authentication timeout**: `Authentication timed out after \{timeout\}ms`
+* **Login rejected** (wrong credentials): `Login rejected by {host}:{port}: No
more authentication methods available`
++
+When the server definitively rejects the credentials, `mina-sftp` throws
`GenericFileOperationFailedException`
+immediately, without retrying. Transient connection failures (server
unreachable, network error) are still retried up
+to `maximumReconnectAttempts` times.
+* **Authentication timeout**: `Authentication timed out after {timeout}ms`
Review Comment:
💡 **AsciiDoc attribute substitution:** Same issue — `{timeout}` is unescaped
and will render as an empty string.
```suggestion
* **Authentication timeout**: `Authentication timed out after \{timeout\}ms`
```
--
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]