New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't chmod using ftp outbound Adapter #3026
Comments
The FTP protocol does not support changing the file permissions, only SFTP. The method is overridden in the SFTP message handler.
|
Hello, |
I should have googled it when I implemented it for SFTP; there is no direct support in the Apache |
So yes; we will add it; in the meantime you can use an |
Thank you! |
Resolves #3026 * Fix exception messages; remove test TODOs; test works on Windows
Resolves #3026 * Fix exception messages; remove test TODOs; test works on Windows # Conflicts: # spring-integration-ftp/src/test/java/org/springframework/integration/ftp/outbound/FtpServerOutboundTests.java # src/reference/asciidoc/whats-new.adoc
Hi guys, on the FtpMessageHandlerSpec, the target is still a FileTransferringMessageHandler, you have to use the children class you created FtpMessageHandler so that it can see the override, on my end it isn't working because isChmodCapable still returns false. |
Please open a new issue - that was a pre-existing bug - clearly it wouldn't work for SFTP either. |
thank you, working on it! |
this fix solves checkstyle
should fix the compilation with Gradle and pass tests
Added FileTransferringMessageHandlerSpec ctor todo
restore ctors for now
added tests
let's check if it fixes the problem.
doesn't seems to solve the problem
removed not standard ctors
restored back to default
removed test that check file permissions for FTP
solves handler spec
Fixes #3026 **Cherry-pick to `5.1.x`** * Populate proper `FileTransferringMessageHandler` impl from DSL spec implementations. This way we are able to use a provided `chmod` from Java DSL * Added `FileTransferringMessageHandlerSpec` ctor TODO * Update SftpTests * Code cleanup; `@Ignore` `SftpTests.testSftpOutboundFlowWithChmod()` since it doesn't work properly on Windows
Fixes #3026 **Cherry-pick to `5.1.x`** * Populate proper `FileTransferringMessageHandler` impl from DSL spec implementations. This way we are able to use a provided `chmod` from Java DSL * Added `FileTransferringMessageHandlerSpec` ctor TODO * Update SftpTests * Code cleanup; `@Ignore` `SftpTests.testSftpOutboundFlowWithChmod()` since it doesn't work properly on Windows # Conflicts: # spring-integration-sftp/src/test/java/org/springframework/integration/sftp/dsl/SftpTests.java # spring-integration-sftp/src/test/java/org/springframework/integration/sftp/inbound/SftpInboundRemoteFileSystemSynchronizerTests.java
Affects Version(s): 5.2.0.M4
Question
Hello guys, I'm having problems to use chmod with an outbound adapter, how can this be solved?
I gave a look around the code class FileTransferringMessageHandler, seems to be hardcoded
my dsl
The text was updated successfully, but these errors were encountered: