Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product images gets removed from "Images And Videos" after validation alert. #7372

Closed
candia opened this issue Nov 9, 2016 · 7 comments
Closed
Labels
bug report Component: Catalog Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@candia
Copy link

candia commented Nov 9, 2016

When adding a new product with an image, if a validation error occurs when trying to save the prodcut, the images gets removed from the "Images And Videos" section. If you fix the validation conflict and try to save the product again, an error will occur with "The file "/home/user/www/pub/media/tmp/catalog/product/o/r/pic.png" doesn't exist or not a file"

Preconditions

  1. Magento CE 2.1.2
  2. New Product

Steps to reproduce

  1. Add new product
  2. Add image to product
  3. Force a validation error by using an already used URL Key for the product

Expected result

Magento should remember the image that was added before validation occurred and save the product with the image.

  1. Create product with image

Actual result

  1. The file "/home/user/www/pub/media/tmp/catalog/product/o/r/pic.png" doesn't exist or not a file

I checked the pub/media/tmp and the image was added to the folder, however once I click save and validation is triggered the image gets removed from the pub/media/tmp.

@sevos1984
Copy link
Contributor

Internal ticket created MAGETWO-60919. Thanks for reporting

@sevos1984 sevos1984 added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Nov 14, 2016
@sevos1984 sevos1984 removed their assignment Nov 14, 2016
@Ctucker9233
Copy link

I've had this same issue as well.

@carfantasy
Copy link

I have the same problem as well.

@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Catalog Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Oct 4, 2017
@magento-engcom-team
Copy link
Contributor

@candia, thank you for your report.
We've created internal ticket(s) MAGETWO-60919 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 11, 2017
@Rekha-periasamy
Copy link

Kindly let me know the fix for this issue.

@magento-engcom-team
Copy link
Contributor

Hi @candia. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1140 by @nmalevanec in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.5 release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Mar 13, 2018
swnsma pushed a commit to swnsma/magento2-1 that referenced this issue Jul 6, 2018
…ter validation alert.

- Add check for product in case of not initialized product.
@magento-engcom-team
Copy link
Contributor

Hi @candia. Thank you for your report.
The issue has been fixed in #16597 by @swnsma in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.7 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Catalog Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

9 participants