U4-7217 - umbracoReservedUrls do not always resolve correctly

Created by Paul Sterling 09 Oct 2015, 18:30:01 Updated by Claus Jensen 21 Oct 2015, 09:53:07

When providing a setting like

One of more of the custom Urls results in Umbraco looking for an Umbraco document rather than treating it as a ReservedUrl. Stepping through I see that line 816 in GlobalSettings.cs sometimes returns false even when a direct string compare should return true

return _reservedList.StartsWith(pathPart.ToLowerInvariant());

For example, using the above setting the _reservedList.StartsWith compare returns the following:

"/catalog/productdetail.aspx" returns false, so umbraco looks for an umbraco document "catalog/product-detail.aspx" returns true, so umbraco sends the request on the url

Comments

Shannon Deminick 20 Oct 2015, 07:49:33

PR: https://github.com/umbraco/Umbraco-CMS/pull/825


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.3.0, 7.2.8

Due in version: 7.3.1

Sprint: Sprint 1

Story Points:

Cycle: