[
https://issues.apache.org/jira/browse/SSHD-1228?focusedWorklogId=684770&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-684770
]
ASF GitHub Bot logged work on SSHD-1228:
----------------------------------------
Author: ASF GitHub Bot
Created on: 22/Nov/21 14:52
Start Date: 22/Nov/21 14:52
Worklog Time Spent: 10m
Work Description: tomaswolf merged pull request #209:
URL: https://github.com/apache/mina-sshd/pull/209
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 684770)
Remaining Estimate: 0h
Time Spent: 10m
> Wrong creationTime in writeAttrs for SFTP
> -----------------------------------------
>
> Key: SSHD-1228
> URL: https://issues.apache.org/jira/browse/SSHD-1228
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.7.0
> Reporter: Samuel Padou
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> InĀ {{SftpHelper#writeAttrsV4}} the {{lastAccessTime}} is written instead of
> the {{creationTime}}.
> {code:java}
> if ((flags & SftpConstants.SSH_FILEXFER_ATTR_CREATETIME) != 0) {
> buffer = writeTime(buffer, version, flags, lastAccessTime);
> }
> {code}
> In my implementation I have a {{creationTime}} but no {{lastAccessTime}} so
> this cause a NPE (the flag is set because {{creationTime}} is not null but
> {{lastAccessTime}} is null when trying to write it), but this still write the
> wrong date even if both are available. Most clients seems to only show the
> {{lastModifiedTime}} though, so this is probably not very visible in most
> cases.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]