| Summary: | NPE's and no guidance for user when schema in library is unresolved | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Paul Fullbright <paul.fullbright> | ||||
| Component: | JAXB | Assignee: | Paul Fullbright <paul.fullbright> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | cbridgha, david_williams, 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) cbridgha: pmc_approved+ neil.hauge: review+ |
||||
| Target Milestone: | 3.0 RC3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Vista | ||||||
| Whiteboard: | PMC_approved | ||||||
| Attachments: |
|
||||||
|
Description
Paul Fullbright
Created attachment 196245 [details]
proposed patch
Added exception handling for attempting to load schema resources from bad URI's and validation for projects with such URI's.
Patch is working well in my testing so far. 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.
Upon renaming/moving an XML schema that is referred to by our Schema Library the user will loose all validation and content assist for their JAXB classes. This results in NPE's in the log.
Is there a work-around? If so, why do you believe the work-around is insufficient?
Workaround is to go to the Schema repository and edit the schema file reference in our properties UI. The problem is that the user may not realize this is what they need to do.
How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
The fix has been tested by Paul and myself.
Give a brief technical overview. Who has reviewed this fix?
See comment 1. I have reviewed the fix.
What is the risk associated with this fix?
Risk is low. This fix is isolated and straightforward.
committed for rc3 looks good |