U4-2592 - Cannot delete a node when the node has just a closing bracket in the name.

Created by Lorenzo Cervo 06 Aug 2013, 16:27:56 Updated by Paulo Samson 04 May 2017, 14:33:07

Relates to: U4-5261

Relates to: U4-9856

Scenario. Create a node using the "test (123)" as node name. Save and publish. Rename the node name (under the "Properties" tab) to "test 123)". Save and publish. Right click on the node "test 123)" and select delete. An exception is thrown.({"Message":"Length cannot be less than zero.\r\nParameter name: length","StackTrace":" at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)\r\n at Umbraco.Core.Persistence.Repositories.SimilarNodeNameComparer.Compare(String x, String y)\r\n at System.Linq.EnumerableSorter2.CompareKeys(Int32 index1, Int32 index2)\r\n at System.Linq.EnumerableSorter1.QuickSort(Int32[] [...]).

L.

Comments

Priority: Normal

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.3

Due in version: 6.1.4

Sprint:

Story Points:

Cycle: