| Summary: | JAXB Schemas Properties Page: Exception when editing a specified schema w/o target namespace | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||||||||||||
| Component: | JAXB | Assignee: | Paul Fullbright <paul.fullbright> | ||||||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||||||
| Severity: | normal | ||||||||||||||||
| Priority: | P3 | CC: | jolene.moffitt, neil.hauge | ||||||||||||||
| Version: | unspecified | Flags: | neil.hauge:
pmc_approved?
(david_williams) neil.hauge: pmc_approved? (raghunathan.srinivasan) neil.hauge: pmc_approved? (naci.dai) neil.hauge: pmc_approved? (deboer) neil.hauge: pmc_approved+ neil.hauge: pmc_approved? (kaloyan) neil.hauge: pmc_approved? (cbridgha) neil.hauge: review+ |
||||||||||||||
| Target Milestone: | 3.0 RC2 | ||||||||||||||||
| Hardware: | PC | ||||||||||||||||
| OS: | Windows 7 | ||||||||||||||||
| Whiteboard: | PMC_approved | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Nan Li
Created attachment 195410 [details]
stack trace 1
Created attachment 195411 [details]
stack trace 2
Created attachment 195976 [details] patch this patch also fixes bug 345467 Created attachment 196031 [details]
patch retry
Created attachment 196057 [details]
updated patch
Adds empty namespace validation support
Created attachment 196059 [details]
updated patch
(didn't actually *create* a new patch in eclipse before resubmitting)
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.
Schemas that lacked a namespace are now able to be added to the schema repository. Also, validation of schema with no namespace was resulting in invalid validation errors. This patch fixes both of these issues.
Is there a work-around? If so, why do you believe the work-around is insufficient?
Workaround is to lose schema validation and code completion for no-namespace schemas by not entering them in the schema repository.
How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
Paul and I have both tested the fix manually, and the JUnit tests have been run.
Give a brief technical overview. Who has reviewed this fix?
This patch makes sure that schemas with empty namespaces resolve to JAXB metadata where no namespace is specified. The rest of the patch is basic UI work to ensure that these empty namespaces are handled correctly. The path looks bigger due to some minor refactoring to prevent code duplication. I have reviewed the fix.
What is the risk associated with this fix?
Low risk.
Approving so this can make it into Thursday's build. We can roll back if there are any objections from the PMC. committed for rc2 Verified in Build I-3.3.0RC4-20110603221533 Verified no exception when you select a schema with no namespace. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_RC2 |