Skip to content

CatalogImportExport uploader can't handle HTTPS images #8277

Closed
@clementbeudot

Description

@clementbeudot

CatalogImportExport uploader can't handle HTTPS images

In the case we create a product programmatically and want to use the Magento\CatalogImportExport\Model\Uploader class, if the URL of the file contained https, it will still use the HTTP Provider to retrieve the image leading to an error.

Preconditions

Using PHP 5.6, and Magento 2.1.2

Steps to reproduce

Instanciate class Magento\CatalogImportExport\Model\Uploader and try to move an URL with https

Expected result

  1. File should be downloaded with appropriate driver instead of the default HTTP

Actual result

We have an exception

 exception 'Magento\Framework\Exception\FileSystemException' with message 'Fichier "myhttpsfile/6bdc0aa637275ff47b16e87e7535b336.jpg" inexistant' in /var/www/marketplace/vendor/magento/framework/Filesystem/File/Read.php:75
Stack trace:
#0 /var/www/marketplace/vendor/magento/framework/Filesystem/File/Read.php(61): Magento\Framework\Filesystem\File\Read->assertValid()
#1 /var/www/marketplace/vendor/magento/framework/Filesystem/File/Read.php(51): Magento\Framework\Filesystem\File\Read->open()
#2 /var/www/marketplace/vendor/magento/framework/Filesystem/File/ReadFactory.php(40): Magento\Framework\Filesystem\File\Read->__construct('****....', Object(Magento\Framework\Filesystem\Driver\Http))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions