magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

Issue with Image roles in Environment with Multiple Store Views and Unchecked "Use Default" Attribute #37744

Open carlosyrm opened 1 year ago

carlosyrm commented 1 year ago

Preconditions and environment

Steps to reproduce

Starting with a clean Magento installation, follow these steps:

  1. Create a new store view.
  2. Create a new simple product and add an image to it.
  3. Navigate to the frontend and verify that the product is visible in all store views.
  4. In the backend, edit the product and change the store view to a particular store view.
  5. Modify an attribute, such as the name, specifically for that store view. Click "Save".
  6. On the frontend, navigate through all store views and verify that the attribute is different in the selected store view.
  7. In the backend, edit the product and select "All Store Views". Upload a new image and click "Save".
  8. Check the frontend in all store views to ensure the new image is displayed.
  9. Edit the product using the "All Store Views" option and update all roles to the new image. Click "Save".
  10. Delete the first image and click "Save".

Expected result

Two expected results:

  1. As result of step 9, the image should take the same roles in all store views.
  2. As result of step 10, the image should be deleted.

Actual result

Two actual results:

  1. Result of Step 9: In the edited store view from steps 4 and 5, the image retains the initial roles and does not reflect the last roles that were set in the "All Store Views" option.
  2. Result of Step 10: The backend prevents the deletion of the image because it is still being used in other roles or contexts.

Additional information

It doesn't matter if the same steps are accomplished using the API.

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @carlosyrm. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://91a07777b8ef54e6dfa718d0ea9927f7.instances-prod.magento-community.engineering Admin access: https://91a07777b8ef54e6dfa718d0ea9927f7.instances-prod.magento-community.engineering/admin_e6a4 Login: 2747c523 Password: 923d81e4c67f

engcom-Dash commented 1 year ago

Hi @carlosyrm ,

Verified the issue in 2.4-develop instance and the issue is not reproducible,Kindly recheck the behaviour in 2.4-develop instance. Kindly refer the below screenshots: 1.All the roles assigned in first image

Screenshot 2023-07-12 at 4 20 25 PM

2.All the roles assinged to new image

Screenshot 2023-07-12 at 4 18 30 PM

3.First image deleted successfully in admin as well as Store front

Screenshot 2023-07-12 at 4 20 25 PM Screenshot 2023-07-12 at 4 49 45 PM

Steps to reproduce: as per the main description

We are getting expected result which is the new image should taken the same roles in all store views and first image deleted successfully. Kindly recheck the behaviour in 2.4-develop instance and let us know if we are missing anything!

Thanks

carlosyrm commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @carlosyrm. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @carlosyrm, here is your Magento Instance: https://91a07777b8ef54e6dfa718d0ea9927f7.instances-prod.magento-community.engineering Admin access: https://91a07777b8ef54e6dfa718d0ea9927f7.instances-prod.magento-community.engineering/admin_9e18 Login: 6131d1e1 Password: 45ae92c12939

carlosyrm commented 1 year ago

Hi @engcom-Dash

Thank you for taking the time to review my report.

I have successfully reproduced the issue in a 2.4-develop instance, and I have recorded a video demonstrating all the steps in the development environment.

Before recording the video, the only action I took was creating a new store view.

In the video, you will observe that as soon as I set a different attribute for the name in the second store view, the image role begins to disregard the parameters set through the "all store view" option.

Please let me know if you need any further information or if there is anything else I can assist you with.

Screencast_07_12_2023_08:08:56_AM.webm

engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://91a07777b8ef54e6dfa718d0ea9927f7.instances-prod.magento-community.engineering Admin access: https://91a07777b8ef54e6dfa718d0ea9927f7.instances-prod.magento-community.engineering/admin_d479 Login: 7430d73f Password: fb45ac428afc

engcom-Dash commented 1 year ago

Hi @carlosyrm , Thanks for reporting and collaboration! Verified the issue in 2.4-develop instance and the issue is reproducible,Hence we are confirming the issue. Kindly refer the below screenshot:

Screenshot 2023-07-13 at 4 26 05 PM

Thanks

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9144 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

github-jira-sync-bot commented 1 year ago

:x: You don't have permission to export this issue.