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

Exception when manipulating class fields causes them to "disappear"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0 RC4
    • 1.0 B1, 1.0 B2, 1.0 B3, 1.0 B4, 1.0 B5, 1.0 B6, 1.0 RC1, 1.0 RC2, 1.0 RC3
    • {Unused} Core
    • None
    • I'm running 1.0 RC1, but I was able to reproduce this easily on sandbox.wiki.org, which is running 1.0 RC3
    • class field exception

    Description

      In short:

      • Add a field to a class and save it.
      • Edit the class again, and change some aspect of the field/property that generates an error. I've tried two that generate this issue: 1) changing the name of the field itself to include bad characters, or 2) setting a default value that disagrees with the rules for that field type. I'm sure others would work as well.
      • Try to save the change.

      XWiki will show you the correct error message for whatever you did that was bad, but you can't go back and change the field the right way because the field is missing from the class entirely. It appears (from a cursory look at the DB) that the field was deleted entirely. I'd expected to see doubles or triples, rather than none.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            ebullient Erin Schnabel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: