(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:
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?
(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?
Hmm - looks like the new Content API doesn't respect UmbracoSettings.EnsureUniqueNaming at all.
I suggest to create an issue:
http://issues.umbraco.org/issues
Bug filed under U4-2515
is working on a reply...