Uploaded image for project: 'Z-Push'
  1. Z-Push
  2. ZP-1466

FileStateMachine: written state size is always 1

    Details

    • Type: Bug
    • Status: QA
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.4.5
    • Fix Version/s: 2.5.0 beta1, 2.5.0
    • Component/s: None
    • Labels:
      None

      Description

      When using FileStateMachine the reported written size in log is always 1:

      ...FileStateMachine->SetState() written 1 bytes on file: ...

      The problem is in Utils::SafePutContents method where $res variable is overwritten by the rename operation result.

      I have attached a patch file that solves the issue in 'src/lib/utils/utils.php'.

      Matteo

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                matteo.albinola Matteo Albinola
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: