Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29421

Contents of file field are lost if object is saved before publishing

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: Customer request
    • Component/s: None
    • Labels:
      None
    • Environment:

      Can for instance be reproduced on eZ Platform Sales Cloud

      Description

      Files uploaded to file field type are lost if a user saves the object before publishing. End result is that the object is published, but the file is not stored and leads to a 500 error.

      Steps to reproduce:

      1. Navigate to media/files/xxxwhateverfoldernamexxx
      2. Click ‘Create’ in the right-hand menu
      3. Select ‘File’ from the options box
      4. Name file, then upload from file source (without title image) – THIS BIT WORKS OK
      5. Click ‘Save’ in the right-hand menu– THIS BIT WORKS OK
      6. Click ‘Publish’ – DISASTER – this is when file size reverts to ‘0 bytes’.

      If step 5 (save) is not performed, the system works as expected and the file is available.

        Activity

        Show
        Mikołaj Adamczyk added a comment - PR: https://github.com/ezsystems/repository-forms/pull/242
        Show
        Mikołaj Adamczyk added a comment - Merged: https://github.com/ezsystems/repository-forms/commit/4fb47ffc21420789577def49ccd4ccb1d0a65bb0
        Hide
        Barbara Grajczyk added a comment -

        QA approved. Tested successfully with patch.

        Show
        Barbara Grajczyk added a comment - QA approved. Tested successfully with patch.
        Show
        Mikołaj Adamczyk added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/2405
        Hide
        Barbara Grajczyk added a comment -

        QA approved. Tested successfully with patch.

        Show
        Barbara Grajczyk added a comment - QA approved. Tested successfully with patch.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jani Tarvainen
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: