Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21118

Broken view when adding a duplicate property to a XWikiCLass

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 15.5, 14.10.13
    • Mozilla Firefox 114.0.2
      Standard Flavor Pre-installed
    • Unknown

    Description

      When I attempt to add a property that already exists to an XWikiClass, the view breaks, and I receive the popup shown in the image

      Steps to reproduce:

      1. Go to /xwiki/bin/view/XWiki/XWikiClasses
      2. Create a class named "test"
      3. Go to /xwiki/bin/edit/XWiki/testClass?editor=class
      4. Add a new property, e.g. one named 'test' and of any type
      5. Observe that the property has been added
      6. Add the same property with the same name ('test') and of any type

      Expected results: A simple pop-up that explains that a property with that name already exists.
      Actual results: A broken view that doesn't explain anything.

      This bug could be really annoying when the class has a lot of properties because the user would not realize that the error was caused by a duplicate name.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Farcasut Farcasi Alexandru-Vicentiu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: