Croway commented on code in PR #30237:
URL: https://github.com/apache/camel/pull/30237#discussion_r4598582228


##########
docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc:
##########
@@ -476,6 +476,21 @@ starting directory (`autoCreate=true`), it now logs
 `Cannot auto-create starting directory <directory> at: ... due to: ... Will 
skip this poll.` instead.
 See the xref:components::sftp-component.adoc[SFTP component].
 
+=== camel-smb - a starting directory that cannot be created
+
+When the server refuses to create the starting directory of the `smb` consumer 
as the route starts (`autoCreate=true`),
+such as `STATUS_ACCESS_DENIED` on a read-only share, the route now starts and 
the consumer tries again on each poll, as
+the 
xref:camel-4x-upgrade-guide-4_13.adoc#_camel_file_camel_ftp_camel_smb_camel_azure_files[Camel
 4.13 upgrade guide]
+describes. Before, the route failed to start. `SmbOperations.buildDirectory` 
now throws a
+`GenericFileOperationFailedException` with the smbj exception as its cause, as 
the ftp and sftp operations do. This
+also applies when the producer or a move creates a directory.
+

Review Comment:
   Right, only the consumer start catches it (`SmbConsumer.doStart`). 
`GenericFileProducer.writeFile` lets it through and the exchange fails, as 
before with the smbj exception. The guide now says the producer and the moves 
get the new exception type and still fail as before, and that an `onException` 
or `doCatch` for the smbj exception still matches it as the cause 
(42725c5a68fb).
   
   _Claude Code on behalf of Federico Mariani_
   



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