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

Broken view when adding a duplicate property to a XWikiCLass

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    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

        1. broken_view.png
          134 kB
          Farcasi Alexandru-Vicentiu
        2. XWIKI-21118-repro-master.mp4
          545 kB
          Charpentier Lucas

        Issue Links

          Activity

            People

              Lucas C Charpentier Lucas
              Farcasut Farcasi Alexandru-Vicentiu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: