Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-2041

ezplatform:images:normalize-path command doesn't move files on secondary repository

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 3.3.15, 4.0.2
    • 3.3.14
    • Content

    Description

      Steps to reproduce on the platform versions containing the https://developers.ibexa.co/security-advisories/ibexa-sa-2022-001-image-filenames-sanitization fix:

      1. Create multi repository setup with 2 admin site accesses: https://doc.ibexa.co/en/2.5/guide/config_repository/#content-repository-configuration, remember about setting the proper var/dir and cache_service_name parameters for each site access (https://doc.ibexa.co/en/2.5/guide/persistence_cache/#multi-repository-setup).
      2. Comment out the following lines https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Publish/Core/IO/FilePathNormalizer/Flysystem.php#L29-L36.
      3. Upload file with the following name: image%20 .jpg in two repositories.
      4. Images are not visible in each site access.
      5. Uncomment the commented lines.
      6. Run the https://doc.ibexa.co/en/2.5/guide/images/#normalizing-images command with --siteaccess=admin2 (or other that uses second repository).

      Result:
      Filenames were not changed in the second repository when using --siteaccess=admin2 option.

      Expected result:
      Filenames should be changed in the second repository when using --siteaccess=admin2 option.

      Note:
      The issue doesn't occur in v2.5.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              d75588ee-5685-4117-be3b-e5746af05636@accounts.ibexa.co Björn Köster
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: