-
Notifications
You must be signed in to change notification settings - Fork 29
Unable to import external jpeg images from a CDN with dynamic URLs. #77
Comments
From @magento-engcom-team on December 4, 2017 12:39 @dromoded, thank you for your report. |
From @EliasZ on December 6, 2017 8:56 This is related to: #12455 Not exactly the same, but similar problem case. In this case GET params are present in the URL and due to regex stripping characters, the GET params are appended to the file extension resulting in breaking the validation rules. |
From @PieterCappelle on December 22, 2017 19:24 @okorshenko Can you assign this to me? |
From @PieterCappelle on December 24, 2017 12:33 Should be fixed. If accepted I'll create backport to 2.2 & 2.1. |
From @magento-team on January 3, 2018 11:45 Hi @dromoded. Thank you for your report. The fix will be available with the upcoming patch release. |
@PieterCappelle again another image related one. Could you again validate what the next steps if any should be for this issue. |
Merge 2.3-develop to EPAM-PR-2
This has been covered by magento/magento2#12872 |
From @dromoded on December 4, 2017 6:27
Unable to import products with external jpeg images hosted on a CDN with dynamic URLs not ending with ".jpg" or ".jpeg", e.g.
http://asset.lemansnet.com/media/edge/8/4/0/840EC331-41BE-4AFF-9392-4A35F2C486A9.png?x=260&y=260&b=ffffff&t=image/jpeg
(This is a real image, and it is indeed a jpeg. Parameters "x" and "y" control image size, "b" - background color)
The same procedure as described below succeeds for a "plain" image URL (verified for
http://cdn.cnn.com/cnnnext/dam/assets/160405140459-06-nba-finals-superlatives-tease-only-large-tease.jpg
)Preconditions
Steps to reproduce
Entity Type:
Products
Import Behavior:
Add/Update
Stop on Error
Allowed Errors Count:
10
Field Separator:
,
Multiple Value Separator:
,
Field Enclosure:
checked
Select File to Import: the file created in step 1
Images File Directory: (left empty)
Click "Import"
Expected result
~/pub/media/catalog/product/h/t
Actual result
Import returns the following error:
"Imported resource (image) could not be downloaded from external resource due to timeout or access permissions in row(s): 1"
~/pub/media/import
with the file namehttpasset.lemansnet.commediaedge840840EC331-41BE-4AFF-9392-4A35F2C486A9.pngx260y260bfffffftimagejpeg
(verified that it is indeed the right jpeg image file)
Copied from original issue: magento/magento2#12533
The text was updated successfully, but these errors were encountered: