[MAGNOLIA-2013] Pages with te same name as the servlet context will generate a 404 Created: 21/Jan/08  Updated: 17/Mar/09  Resolved: 03/Sep/08

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.5.3
Fix Version/s: 3.6.2, 3.6.3

Type: Bug Priority: Major
Reporter: Ralf Hirning Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
is duplicated by MAGNOLIA-2064 404 if a page has the same name as th... Closed
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   

If a top level page has the same name as the servlet context the path will not be calculated correctly because Magnolia tries to remove the context path several times (at least twice). Example: Context = project, then "/project/project.html" will be reduced to ".html".

The context is removed by the Method Path.decodedURI(uri, encoding).

We should make sure that this is done only once.


Generated at Mon Feb 12 03:32:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.