[jira] [Commented] (SSHD-963) Uploading a file with filezilla,preserve timestamps of transferred files, but setting fileAttributes failed
[ https://issues.apache.org/jira/browse/SSHD-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17003825#comment-17003825 ] barry-gq commented on SSHD-963: --- I know that for SFTP v3, the flag contains both access time and modification time,but in fact they are separated, you can see this in picture 2. I will try to modify it myself to temporarily fix this problem, and then look forward to your updates in subsequent versions. Thank you very much! > Uploading a file with filezilla,preserve timestamps of transferred files, but > setting fileAttributes failed > --- > > Key: SSHD-963 > URL: https://issues.apache.org/jira/browse/SSHD-963 > Project: MINA SSHD > Issue Type: Bug >Affects Versions: 1.7.0 >Reporter: barry-gq >Assignee: Lyor Goldstein >Priority: Blocker > Attachments: 1.png, 2.png > > > *background:* > I have a project to process some data with apache sshd-sftp > > *Operation :* > I use filezilla to upload a file and turn on the option to preserve the > timestamp of the transferred file,but modifytime is not set correctly > > *java code description:* > After uploading a file, the server code can receive the accesstime and > modifytime normally, but when the client processes version V3, there is only > one flags parameter, which makes it impossible to set modifytime > correctly.The two codes of the picture are: pciture > 1:AbstractSftpSubsystemHelper :: setFileAttributes, pciture > 2:AbstractSftpClient :: writeAttributes > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org
[jira] [Resolved] (SSHD-963) Uploading a file with filezilla,preserve timestamps of transferred files, but setting fileAttributes failed
[ https://issues.apache.org/jira/browse/SSHD-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lyor Goldstein resolved SSHD-963. - Fix Version/s: (was: 1.7.0) Resolution: Won't Fix After reviewing the code I believe there is no bug - if you look closely at the code, you will see that for SFTP v3 the flag implies *both* access time +and+ modify time. Therefore when we build the attributes mask to send we need to make sure +both+ flags are available - thus the way the code is written. Please upgrade to version 2.3.0 and retry your code. If you still believe there is bug then, please re-open and provide clarification as to how you think the code should behave > Uploading a file with filezilla,preserve timestamps of transferred files, but > setting fileAttributes failed > --- > > Key: SSHD-963 > URL: https://issues.apache.org/jira/browse/SSHD-963 > Project: MINA SSHD > Issue Type: Bug >Affects Versions: 1.7.0 >Reporter: barry-gq >Assignee: Lyor Goldstein >Priority: Blocker > Attachments: 1.png, 2.png > > > *background:* > I have a project to process some data with apache sshd-sftp > > *Operation :* > I use filezilla to upload a file and turn on the option to preserve the > timestamp of the transferred file,but modifytime is not set correctly > > *java code description:* > After uploading a file, the server code can receive the accesstime and > modifytime normally, but when the client processes version V3, there is only > one flags parameter, which makes it impossible to set modifytime > correctly.The two codes of the picture are: pciture > 1:AbstractSftpSubsystemHelper :: setFileAttributes, pciture > 2:AbstractSftpClient :: writeAttributes > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org
[jira] [Work started] (SSHD-963) Uploading a file with filezilla,preserve timestamps of transferred files, but setting fileAttributes failed
[ https://issues.apache.org/jira/browse/SSHD-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on SSHD-963 started by Lyor Goldstein. --- > Uploading a file with filezilla,preserve timestamps of transferred files, but > setting fileAttributes failed > --- > > Key: SSHD-963 > URL: https://issues.apache.org/jira/browse/SSHD-963 > Project: MINA SSHD > Issue Type: Bug >Affects Versions: 1.7.0 >Reporter: barry-gq >Assignee: Lyor Goldstein >Priority: Blocker > Fix For: 1.7.0 > > Attachments: 1.png, 2.png > > > *background:* > I have a project to process some data with apache sshd-sftp > > *Operation :* > I use filezilla to upload a file and turn on the option to preserve the > timestamp of the transferred file,but modifytime is not set correctly > > *java code description:* > After uploading a file, the server code can receive the accesstime and > modifytime normally, but when the client processes version V3, there is only > one flags parameter, which makes it impossible to set modifytime > correctly.The two codes of the picture are: pciture > 1:AbstractSftpSubsystemHelper :: setFileAttributes, pciture > 2:AbstractSftpClient :: writeAttributes > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org
[jira] [Commented] (SSHD-963) Uploading a file with filezilla,preserve timestamps of transferred files, but setting fileAttributes failed
[ https://issues.apache.org/jira/browse/SSHD-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17003704#comment-17003704 ] Lyor Goldstein commented on SSHD-963: - The version you refer to in this issue (1.7.0) is very old. Due to extremely limited resources we do not provide fixes for released version (unless extremely critical bugs - in which case we release a *new* version - never a back fix). That being said, the bug you mention now seems to exist only in the {{AbstractSftpClient#writeAttributes}} method ({{AbstractSftpSubsystemHelper#setFileAttributes}} has been re-written and now behaves correctly IMO). That being said, I will fix {{AbstractSftpClient#writeAttributes}}, and it will be available when we release 2.3.1 (or maybe it will be called 2.4) - I believe some time in Jan. 2020... > Uploading a file with filezilla,preserve timestamps of transferred files, but > setting fileAttributes failed > --- > > Key: SSHD-963 > URL: https://issues.apache.org/jira/browse/SSHD-963 > Project: MINA SSHD > Issue Type: Bug >Affects Versions: 1.7.0 >Reporter: barry-gq >Assignee: Lyor Goldstein >Priority: Blocker > Fix For: 1.7.0 > > Attachments: 1.png, 2.png > > > *background:* > I have a project to process some data with apache sshd-sftp > > *Operation :* > I use filezilla to upload a file and turn on the option to preserve the > timestamp of the transferred file,but modifytime is not set correctly > > *java code description:* > After uploading a file, the server code can receive the accesstime and > modifytime normally, but when the client processes version V3, there is only > one flags parameter, which makes it impossible to set modifytime > correctly.The two codes of the picture are: pciture > 1:AbstractSftpSubsystemHelper :: setFileAttributes, pciture > 2:AbstractSftpClient :: writeAttributes > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org
[jira] [Assigned] (SSHD-963) Uploading a file with filezilla,preserve timestamps of transferred files, but setting fileAttributes failed
[ https://issues.apache.org/jira/browse/SSHD-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lyor Goldstein reassigned SSHD-963: --- Assignee: Lyor Goldstein > Uploading a file with filezilla,preserve timestamps of transferred files, but > setting fileAttributes failed > --- > > Key: SSHD-963 > URL: https://issues.apache.org/jira/browse/SSHD-963 > Project: MINA SSHD > Issue Type: Bug >Affects Versions: 1.7.0 >Reporter: barry-gq >Assignee: Lyor Goldstein >Priority: Blocker > Fix For: 1.7.0 > > Attachments: 1.png, 2.png > > > *background:* > I have a project to process some data with apache sshd-sftp > > *Operation :* > I use filezilla to upload a file and turn on the option to preserve the > timestamp of the transferred file,but modifytime is not set correctly > > *java code description:* > After uploading a file, the server code can receive the accesstime and > modifytime normally, but when the client processes version V3, there is only > one flags parameter, which makes it impossible to set modifytime > correctly.The two codes of the picture are: pciture > 1:AbstractSftpSubsystemHelper :: setFileAttributes, pciture > 2:AbstractSftpClient :: writeAttributes > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org