| Summary: | No validation message when a persistence.xml file version is unsupported | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Tim deBoer <deboer> | ||||
| Component: | General | Assignee: | Paul Fullbright <paul.fullbright> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | david_williams, karenfbutzke, neil.hauge | ||||
| Version: | 3.0 | Flags: | david_williams:
pmc_approved+
neil.hauge: pmc_approved? (raghunathan.srinivasan) neil.hauge: pmc_approved? (naci.dai) neil.hauge: pmc_approved? (deboer) neil.hauge: pmc_approved? (neil.hauge) neil.hauge: pmc_approved? (kaloyan) neil.hauge: review+ |
||||
| Target Milestone: | 2.3 RC2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | PMC_approved | ||||||
| Attachments: |
|
||||||
|
Description
Tim deBoer
We're looking at some minor changes that could enhance the usability here, since this isn't an unlikely error state to be in. Trying to come up with a fix that would be suitable for RC2. Thanks for reporting this Tim. Retitling this and splitting the error logging into another bug, as that is potentially destabilizing for RC2. (see bug 313632) Created attachment 169233 [details] proposed patch Changed the validation for GenericRootContextNode to check for unsupported as well as unrecognizable (invalid) content. Placed the validation error on the file itself if the file exists. Made similar changes for orm.xml validation. Made notes in BaseJpaPlatformUI with respect to bug 313632. One further note. The patch gives user feedback in the case he falls into this state, but we decided not to address the error logging issue. The exception is caught and logged, so we don't have spare exceptions flying around. But removing the exception required adding a null implementation of the ResourceUiProvider or various other null checking that could cause destability. I've tested this patch, looks good to me * Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. This problem is likely to cause quite a bit of user confusion, possibly to the point where they may recreate a project to get out of the described error state. It is also likely that users will encounter this problem as Tim did. * Is there a work-around? If so, why do you believe the work-around is insufficient? Work around is to change the facet version and platform, but the user likely won't figure this out. * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? Fix has been manually tested by Paul, Karen, and myself. * Give a brief technical overview. Who has reviewed this fix? See comment 3. Karen and I have reviewed the fix. * What is the risk associated with this fix? Medium Low. Generally we wouldn't want to add validation at this point in the release, but this seems to be a particularly nasty error state that is not currently detected in a meaningful way to the user. Given this risk, extra testing has been performed. Well, if Tim did it, it must be easy to make this error :) ... so, I'm good. Patch committed and released last night. verified in RC2 |