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

Exception when manipulating class fields causes them to "disappear"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 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
    • Fix Version/s: 1.0 RC4
    • Component/s: {Unused} Core
    • Labels:
      None
    • Environment:
      I'm running 1.0 RC1, but I was able to reproduce this easily on sandbox.wiki.org, which is running 1.0 RC3
    • keywords:
      class field exception
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: