Skip to content

Unexisting sitemap responds with product image #39756

Open
@VladyslavSikailo

Description

@VladyslavSikailo

Preconditions and environment

  • Magento version 2.4.6-p9
    I believe the behavior is also the same on the latest version, since pub/media/.htaccess and nginx.conf.sample are the same there

Steps to reproduce

  • Install vanilla magento
  • open <magento>/media/sitemap/foobarbaz

Expected result

Response: 404 NOT FOUND

Actual result

Response: default product image

Additional information

This behavior looks correct in case we are trying to load some unexisting image.
But in case with sitemaps it's important for search engines to have 404

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without 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

    Area: ContentComponent: ImageIssue: 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.Reported on 2.4.6-p9Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions