[MAGNOLIA-7452] The content type filter looks up MIME types for .magnolia, .rest, etc. Created: 30/Jan/19  Updated: 30/Jan/19

Status: Accepted
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Maxime Michel Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Reproduction steps:

  1. configure the contentType filter to serve registeredExtensionsOnly
  2. look up localhost:8080/.magnolia
  3. notice the 'Cannot find MIME type for extension "magnolia"' message in the logs

Then Magnolia returns 400 errors for endpoints that shouldn't be matched to a MIME type at all.
i.e. request is denied before even reaching the URI security filter / login screen (regardless of eventual 404 or actual content).


Generated at Mon Feb 12 04:23:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.