Uploaded image for project: 'Blog Application'
  1. Blog Application
  2. BLOG-271

Renaming a category to the name of an existing category is not refused

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 9.15.14
    • None
    • None
    • Unknown

    Description

      When categories are stored in Blog.Categories (the default since 9.15) or in the categories space of a custom blog, renaming a category to the name of another existing category of the same blog is not refused.

      Steps to reproduce

      1. Have two categories Blog.Categories.A and Blog.Categories.B.
      2. In Blog.ManageCategories, rename A to "B".

      Expected

      An error saying that the category B already exists.

      Actual

      The "already exists" check is done on Blog.B (the new name resolved relative to Blog.ManageCategories), while the rename targets Blog.Categories.B. The check passes and the rename is attempted over the existing category.

      The rename target is computed in #renameCategory (Blog.CategoriesCode) from the space of the renamed category, while the checks in Blog.ManageCategories use the raw new name.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: