-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Component: ImportExportIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report
Description
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
- 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))
Gronan and DnDDeployer
Metadata
Metadata
Assignees
Labels
Component: ImportExportIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report