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

Products of hidden sub-category are shown in parent anchor category #30300

Open
magento-engcom-team opened this issue Oct 1, 2020 · 4 comments
Assignees
Labels
Area: Catalog CD Issue recommended for the contribution day Component: Other Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: dev in progress Reported on 2.3.4 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S2 Major restrictions or short-term circumventions are required until a fix is available.

Comments

@magento-engcom-team
Copy link
Contributor

magento-engcom-team commented Oct 1, 2020

Preconditions
  1. Install Magento EE 2.4-develop
  2. Indexers are in Update on Save mode
  3. Category Permission feature is enabled:
  • admin > Stores > Configuration > Catalog > Catalog > Category Permissions
  • Enable = Yes
  • Allow Browsing Category = Yes, For Everyone
  • Display Product Prices = Yes, For Everyone
  • Allow Adding to Cart = Yes, For Everyone
  • Save Config
  • Clear Cache
Steps
  1. Create category A
  • Name = A Category
  • Display Sattings > Anchor = Yes
  1. Create sub-category B
  • Parrent Category = A Category
  • Name = B Sub-Category
  • Display Sattings > Anchor = Yes
  1. Create product Simple Can you commit to repository a folder dev/tests/static ? #1 and assign it to A Category
  2. Create product Simple BUG FIX - Uncaught exception when accessing admin with none existent use... #2 and assign it to B Sub-Category
  3. Go to storefront and open A Category as not logged in customer
  1. Go to admin, open B Sub-Category for edit and add Category Permission:
  • Customer Group = NOT LOGGED IN
  • Browsing Category = Deny
  • Display Product Prices = Deny
  • Add to Cart = Deny
  • Save category
  1. Go to storefront and open A Category again
(-) Actual Result

A Category still contains both products Simple #1 and Simple #2

(+) Expected Result
  1. A Category should contain only Simple Can you commit to repository a folder dev/tests/static ? #1
  2. Simple BUG FIX - Uncaught exception when accessing admin with none existent use... #2 should not be displayed because browsing of B Sub-Category is denied by permissions for not logged in user, and its product should not be displayed in anchor A Category
  3. It should happen immediately after category save as Indexers are in Update on Save mode
@magento-engcom-team magento-engcom-team added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: ready for dev Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. labels Oct 1, 2020
@magento-engcom-team
Copy link
Contributor Author

The issue was exported from the internal JIRA. The link to the original JIRA issue: https://jira.corp.magento.com/browse/MC-25179

@m2-assistant
Copy link

m2-assistant bot commented Oct 1, 2020

Hi @magento-engcom-team. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@m2-community-project m2-community-project bot added this to Ready for Grooming in Low Priority Backlog Oct 1, 2020
@magento-engcom-team magento-engcom-team added Component: Other Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch labels Oct 1, 2020
@m2-community-project m2-community-project bot moved this from Ready for Grooming to Ready for Development in Low Priority Backlog Oct 1, 2020
@magento-engcom-team magento-engcom-team added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Oct 1, 2020
@magento-engcom-team
Copy link
Contributor Author

✅ Confirmed by @magento-engcom-team
Thank you for verifying the issue. Based on the provided information internal tickets MC-25179 were created

Issue Available: @magento-engcom-team, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@sivaschenko sivaschenko added the CD Issue recommended for the contribution day label Oct 7, 2020
@sidolov sidolov added this to Ready for Development in High Priority Backlog Oct 20, 2020
@ghost ghost removed this from Ready for Development in Low Priority Backlog Oct 20, 2020
@sdzhepa sdzhepa added the Reported on 2.3.4 Indicates original Magento version for the Issue report. label Nov 11, 2020
@engcom-Kilo engcom-Kilo self-assigned this Dec 29, 2020
@m2-assistant
Copy link

m2-assistant bot commented Dec 29, 2020

Hi @engcom-Kilo. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

    1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
    1. If the issue is not relevant or is not reproducible any more, feel free to close it.

@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in High Priority Backlog Dec 29, 2020
@m2-community-project m2-community-project bot moved this from Dev In Progress to Ready for Development in High Priority Backlog Dec 31, 2020
@github-jira-sync-bot github-jira-sync-bot changed the title Anchor category shows product of child category with browsing permission "Deny" till full reindex from CLI Products of hidden sub-category are shown in anchor category Apr 19, 2021
@github-jira-sync-bot github-jira-sync-bot changed the title Products of hidden sub-category are shown in anchor category Products of hidden sub-category are shown in parent anchor category Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Catalog CD Issue recommended for the contribution day Component: Other Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: dev in progress Reported on 2.3.4 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S2 Major restrictions or short-term circumventions are required until a fix is available.
Projects
High Priority Backlog
  
Dev In Progress
Development

No branches or pull requests

6 participants