Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Doug Mackay 56 posts 155 karma points
    Oct 20, 2011 @ 22:54
    Doug Mackay
    1

    Umbraco unique naming issue

    The ensureUniqueNaming setting (which is true by default) in config/umbracoSettings.config is supposed to prevent nodes with duplicate names being created under a parent. However it seems to have a bug:-

    Create node named Page at least 3 times :-
    Page
    Page (1)
    Page (2)

    Umbraco is making sure the nodes are unique by appending (x)

    Delete any of the numbered nodes (apart from the last one)
    e.g.
    Page
    Page (2)

    Create another node named Page
    Page
    Page (2)
    Page (1)

    Still no issues at the point. However create another node named Page
    Page
    Page (2)
    Page (1)
    Page (2)

    There now exists nodes with the same name (and url). The issue seems to be that if the nodes are out of sequence (this could be becase a node has been deleted or the nodes sorted) then umbEnsureUniqueName Action Handler fails to rename the nodes correctly.

    I've fixed the Action Handler and will submit to Codeplex once tested - just posted here in case someone has the same issue.

     

Please Sign in or register to post replies

Write your reply to:

Draft