[MAGNOLIA-7166] Page gets 404 when the beginning of the requested path matches handle prefix in site definition Created: 28/Sep/17  Updated: 13/Jul/18  Resolved: 12/Jul/18

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 5.5.6, 5.6.3
Fix Version/s: 5.5.12, 5.6.7, 5.7.1, 6.0

Type: Bug Priority: Major
Reporter: Edwin Guilbert Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Current online demo env


Issue Links:
Relates
causality
caused by MAGNOLIA-7040 When requesting an URI that starts wi... Closed
duplicate
is duplicated by MAGNOLIA-7131 URI2RepositoryMapping cleans URI too ... Closed
relation
is related to MAGNOLIA-6344 Page gets 404 when parent page has th... Closed
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
Date of First Response:
Epic Link: Support
Sprint: Kromeriz 153, Kromeriz 154, Kromeriz 155
Story Points: 5

 Description   

When a site is defined, it defines a handle prefix in mappings. If this handle prefix is similar to the beginning of the path of the page that it is being requested, then this first part of the path is removed and the page cannot be found and cannot be rendered, getting an error 404.

How to reproduce it in demo website:

If you create a page under travel demo website with a name that begins with travel, the page editor won't be able to edit it and if you try to render it you will get 404.

Steps to reproduce:

  1. Create a page under /travel named travel0
  2. try to edit it -> 404
  3. try to render it directly: http://domain/magnoliaAuthor/travel/travel0 -> 404

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