Skip to content

backend/ftp: incomplete modtime support #5283

Closed

Description

@ivandeex

The associated forum post URL from https://forum.rclone.org

N/A

What is your current rclone version (output from rclone version)?

rclone v1.55.1

  • os/version: ubuntu 18.04 (64 bit)

What problem are you are trying to solve?

SetModTime in the FTP backend is a stub, the touch command does nothing, etc.

This also prevents from testing new bisync with this backend due to the way bisync tests work, namely by comparing literal time on files under test with golden results (#5164).

How do you think rclone should be changed to solve that?

The core issue is with underlying jlaffaye/ftp library, which does not support the MFMT extension present in most modern FTP servers like vsftpd, FileZilla etc.

I prepared a patch for jlaffaye/ftp to submit as a pull request as well as relevant rclone patch.

Additionally I found that rclone serve ftp based on goftp.io/server also lacks the MFMT feature. Moreover, it lacks the MLSD extension, which allows to query the full ISO file time. The legacy LIST command, which is the only listing flavor supported currently, is very limited w.r.t file times. It can return either time with 1 second precision but without year (sic!) for recently modified files, or a date with year but without daytime!

I prepared a quick fix for goftp.io/server, however this might have been already fixed in its v2.

The fixes will be submitted in due course.

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. self-assigned this
    on Apr 28, 2021
  2. ncw commented on Apr 28, 2021

    @ncw
    Member

    SetModTime in the FTP backend is a stub, the touch command does nothing, etc.
    This also prevents from testing new bisync with this backend due to the way bisync tests work, namely by comparing literal time on files under test with golden results (#5164).

    SetModTime will prevent modtime syncing also so adding it is very useful.

    How do you think rclone should be changed to solve that?

    The core issue is with underlying jlaffaye/ftp library, which does not support the MFMT extension present in most modern FTP servers like vsftpd, FileZilla etc.

    I prepared a patch for jlaffaye/ftp to submit as a pull request as well as

    That patch looks excellent to me 👍

    relevant rclone patch.

    And so does that. Do the integration tests pass with it against an FTP server which supports MFMT?

    Additionally I found that rclone serve ftp based on goftp.io/server also lacks the MFMT feature. Moreover, it lacks the MLSD extension, which allows to query the full ISO file time. The legacy LIST command, which is the only listing flavor supported currently, is very limited w.r.t file times. It can return either time with 1 second precision but without year (sic!) for recently modified files, or a date with year but without daytime! I prepared a quick fix for goftp.io/server, however this might have been already fixed in its v2.

    Your patch looks good, but it does break backwards compatibility...

    Also there is a v2! We could do with a tool which tells us when there is a new major version of dependencies since I don't think we notice otherwise.

    I saw a MLSD patch in the v2 branch.

    The fixes will be submitted in due course.

    :-)

    This looks really useful - thanks :-)

  3. ivandeex commented on Apr 29, 2021

    @ivandeex
    MemberAuthor

    And so does that. Do the integration tests pass with it against an FTP server which supports MFMT?

    Yes. FileZilla in three modes (plain FTP, implicit or explicit TLS) and FTP-something embedded in my WiFi station.

    Your patch looks good, but it does break backwards compatibility. Also there is a v2!

    I envisage the goftp-server maintainers will bring me to reason as the play progresses.

  4. changed the title [-]backend/ftp: missing full modified time support[/-] [+]backend/ftp: incomplete modtime support[/+] on May 2, 2021
  5. added this to the Soon milestone on May 6, 2021
  6. modified the milestones: Soon, v1.57 on May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions