Uploaded image for project: 'Kopano Files Plugin'
  1. Kopano Files Plugin
  2. KFP-397

[FTP] Downloaded files are 0 bytes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 3.0.0beta-1
    • Security Level: Public
    • Labels:
      None
    • Environment:
      2.1.5

      Description

      Seems to be an issue in class.backend.php
      $list array is associative, so can't be accessed by index.
      https://stash.kopano.io/projects/KWA/repos/files/browse/php/Files/Backend/FTP/class.backend.php#760

      public function gpi($path)
              {
                      $list = $this->ls($path, false);
      
                      // be sure it is an array
                      if (is_array($list)) {
                              return $list[0];
                      }
      

      Suggested fix on forum:
      https://forum.kopano.io/topic/2435/files-with-ftp-download-0-bytes/8

      "return reset($list);"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              malberts Martijn Alberts
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: