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

Existing file path outside the current vardir throw an exception

    Details

      Description

      If a file referenced in a legacy database is located outside the VarDir, the Legacy IO Handler will throw an exception.

      The approach is to prevent this from happening by providing an update script that moved image files back into the current var directory.

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          This is actually a doc issue that I haven't mentioned.

          The script doesn't and can't cover tc-1561: binary & media files aren't stored with the full path. Since we don't know what var folder we are migrating from, the script has no knowledge of the old files.

          Manually copying <OldVarDir>/storage/original/ to <NewVarDir>/storage/original would work. Note that this will not work on DB/DFS cluster setups. A new script where the old var dir is provided would be required for this.

          Show
          Bertrand Dunogier added a comment - This is actually a doc issue that I haven't mentioned. The script doesn't and can't cover tc-1561: binary & media files aren't stored with the full path. Since we don't know what var folder we are migrating from , the script has no knowledge of the old files. Manually copying <OldVarDir>/storage/original/ to <NewVarDir>/storage/original would work. Note that this will not work on DB/DFS cluster setups . A new script where the old var dir is provided would be required for this.
          Hide
          Ricardo Correia (Inactive) added a comment -

          The fiximagesoutsidevardir.php script has been added to the 5.0 to 5.1 upgrade guide:
          http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-5.1/Upgrading-from-5.0-to-5.1

          Show
          Ricardo Correia (Inactive) added a comment - The fiximagesoutsidevardir.php script has been added to the 5.0 to 5.1 upgrade guide: http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-5.1/Upgrading-from-5.0-to-5.1
          Hide
          Ricardo Correia (Inactive) added a comment -

          The following document has been updated to include additional details regarding the executions of the fiximagesoutsidevardir.php script:
          http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-5.1/Upgrading-from-5.0-to-5.1

          Show
          Ricardo Correia (Inactive) added a comment - The following document has been updated to include additional details regarding the executions of the fiximagesoutsidevardir.php script: http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-5.1/Upgrading-from-5.0-to-5.1
          Hide
          Joao Pingo (Inactive) added a comment -

          Re Tested and Document Reviewed
          No Issues found ... QA Approved

          Show
          Joao Pingo (Inactive) added a comment - Re Tested and Document Reviewed No Issues found ... QA Approved
          Hide
          Bertrand Dunogier added a comment -

          Follow-up story: EZP-20502.

          Show
          Bertrand Dunogier added a comment - Follow-up story: EZP-20502 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Bertrand Dunogier
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 2 minutes
                4d 2m