Bugzilla – Bug 544
One byte error causes entire project to be discarded without error.
Last modified: 2011-06-04 04:17:29 UTC
DETAILED DESCRIPTION: from DRFOSTER: I had a 2+ megabyte .proj file. I edited it and introduced a 1 byte error that caused the XML to be invalid. I started Designer with this as my default project. No error was displayed and nothing with displayed by the modeler in my project although it had numerous objects in it. I shut down Designer. My .proj file was reduced to 400+ bytes that represented a simple empty project. I never said save yet my .proj file was re-written. EVERYTHING I had in my project was discarded. This is unacceptable. We should detect errors in the XML and tell the user, not blow away the project. BUILD NUMBER: Oses/CONFIG: STEPS TO REPRO: RESULTS: EXPECTED: WORKAROUNDS: CUSTOMER IMPACT: NTS entered defects should also include: Additional debug info like screenshots, screencams, log files, trace files, packet traces, memory coredump location. Accurate customer information so that proper prioritizing of the defect is possible (mainly for NTS defects)
I talked with Dennis about this (originator of the defect), He simply wants the model to be able to recognize invalid prortions of the model (when a file is corrupted) and give handles to the developers (or prompt the user) that the file is not well formed ... or is otherwise invalid.
I have reviewed defect with Dennis. The more recent model does not have this behavior, however I am leaving it open to investigate an interesting thing we found: - changing or removing the closing tag on an XMI file has no effect on loading (and we'ere wonding if it should since the file would no longer be well-formed) My guess is that they have an optimization turned on (for loading).
This behavior in he last comment does not seem to cause any problems after going through some tests. I belive it is just fault tolerance of EMF
Included in Designer build 20050124
Included in Designer build 20050125
Regressed 0126
Adding built keyword.
Marking closed/resolved fixed bugs public view.