Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.7.0
-
None
Description
InĀ SftpHelper#writeAttrsV4 the lastAccessTime is written instead of the creationTime.
if ((flags & SftpConstants.SSH_FILEXFER_ATTR_CREATETIME) != 0) {
buffer = writeTime(buffer, version, flags, lastAccessTime);
}
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.