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

Empty class ( no attributes ) can't be instantiated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Minor
    • None
    • 10.6.1, 10.7
    • App Within Minutes
    • Mac, linux
    • Unknown

    Description

      This is my setup

      • Fresh install of xwiki 10.7 ( the bug is also present in 10.6.1 and probably before) with standard XWiki flavor
      • hsqldb
      •  tomcat 9.0.12
      • Nothing changed in the config, just put thw war in tomcat and run

      We found a bug when you create an empty class with no property it doesn't appear in the list off class or in XWikiClass

      How to reproduce :

      • Create a new App Within Minute "Foo" and press next step every time then finish ( do nothing )
      • Then create a new Foo page named "bar"
      •  Go in the object editor of "Bar"
      •  Here you will found 2 bug, first you can't see the class Foo in the `Select a class` list, second bug if you press "new Code.FooClass object" you got a "Failed:Server not responding"
      • You can also see that if you go in XWikiClass from page index and look for "Foo" you will found nothing
      • Now go to the class editor and edit the Foo class by adding any properties.
      • Now everything works, you can see the class in the list and you can instantiate a `New Code.FooClass object` and also you can see Bar in the XWikiClass if you look for "Foo"

      Attachments

        1. 1.png
          1.png
          97 kB
        2. 2.png
          2.png
          105 kB
        3. 3.png
          3.png
          146 kB
        4. 4.png
          4.png
          38 kB
        5. 5.png
          5.png
          112 kB

        Activity

          People

            tmortagne Thomas Mortagne
            cracky5457 Axel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: