Skip to content

The specified path is not allowed #31582

Open
@kassner

Description

Preconditions

  1. Magento 2.3.6; (the error seems to happen on 2.4, but the message is different: The path is not allowed: media/something-invalid.xml)

Steps to reproduce

  1. Make sure the file var/resource_config.json does not exist;
  2. Access {BASEURL}/media/something-invalid.xml;
  3. expected results don't happen;
  4. Now the var_resoruce_config.json file exists is generated;
  5. Access {BASEURL}/media/something-invalid.xml;
  6. expected results happen;

Expected result

  1. 404 error;
  2. No errors logged;

Actual result (*)

  1. 404 error 👍;
The specified path is not allowed.
#0 /var/www/magento/vendor/magento/framework/App/Bootstrap.php(261): Magento\MediaStorage\App\Media->launch()
#1 /var/www/magento/pub/get.php(84): Magento\Framework\App\Bootstrap->run(Object(Magento\MediaStorage\App\Media))
#2 {main}

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 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

Assignees

Labels

Area: SearchComponent: UrlIssue: 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: PR in progressReported on 2.3.6Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

  • Status

    Pull Request In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions