Copied to clipboard

Flag this post as spam?

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


  • HC Saustrup 28 posts 79 karma points
    May 21, 2013 @ 11:41
    HC Saustrup
    0

    (6.0.5) Possible bug in Content API: Duplicate URLs

    I'm using the Content API to create nodes in Umbraco 6.0.5, and I've discovered what could possibly be a bug: when I create two nodes (under the same parent) with the same name, the URL ends up being the same. Example:

    Name: "Foobar" - URL: /parent/foobar (first attempt)

    Name: "Foobar" - URL: /parent/foobar (second attempt)

    I'm using ContentService.CreateContent(). "ensureUniqueNaming" is enabled in umbracoSettings.config.

    If I do this manually in backoffice, the name of the unpublished node is changed to "Foobar (2)". If I change the name manually to "Foobar" before publishing, the URL ends up being /parent/foobar as above.

    Previously (in v4) this was handled by the API. What happened?

  • HC Saustrup 28 posts 79 karma points
    May 22, 2013 @ 13:58
    HC Saustrup
    0

    Hmm - looks like the new Content API doesn't respect UmbracoSettings.EnsureUniqueNaming at all.

     

  • Andreas Iseli 150 posts 427 karma points
    May 23, 2013 @ 10:34
    Andreas Iseli
    0

    I suggest to create an issue:

    http://issues.umbraco.org/issues

  • Søren Erland Vestø 19 posts 42 karma points
    Jul 16, 2013 @ 14:13
    Søren Erland Vestø
    0

    Bug filed under U4-2515

Please Sign in or register to post replies

Write your reply to:

Draft