Skip to content

UrlRewriteCollection store_id filter may be ambiguous #31853

Closed
@gabrieldagama

Description

@gabrieldagama

Summary (*)

The collection app/code/Magento/UrlRewrite/Model/ResourceModel/UrlRewriteCollection.php has a function addStoreFilter, the problem here is that the filter is being added without table reference on store_id.

That may be a problem on extensibility whenever a join is added to the collection on a table that also has a store_id column.

Examples (*)

Add a plugin that adds a join to this collection from a table that has store_id column.

Proposed solution

Add main_table reference to the store_id on addStoreFilter function.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users with no workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions