| Summary: | XML-formatted JSP validation doesn't see variables from includes | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Nitin Dahyabhai <thatnitind> | ||||||
| Component: | jst.jsp | Assignee: | Nitin Dahyabhai <thatnitind> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | david_williams, nsand.dev, raghunathan.srinivasan | ||||||
| Version: | 3.1 | Flags: | david_williams:
pmc_approved+
thatnitind: pmc_approved? (raghunathan.srinivasan) thatnitind: pmc_approved? (naci.dai) deboer: pmc_approved+ thatnitind: pmc_approved? (neil.hauge) thatnitind: pmc_approved? (kaloyan) nsand.dev: review+ |
||||||
| Target Milestone: | 3.2 RC3 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | PMC_approved | ||||||||
| Attachments: |
|
||||||||
|
Description
Nitin Dahyabhai
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. XML-formatted JSP files don't have their included fragments considered during JSP-Java validation. Any variables declared in fragments or added through the use of custom tags will trigger validation errors on access. * Is there a work-around? If so, why do you believe the work-around is insufficient? None. * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? Manual testing, plus included JUnit for both include syntaxes. * Give a brief technical overview. Who has reviewed this fix? Java scriptlets/expressions/declarations within JSP fragments where the includer uses the XML syntax are skipped when creating our Servlet translation, specifically because it doesn't consider the XML syntax valid for further processing. Reviewed by Nick. * What is the risk associated with this fix? Low. Takes out a restriction on the syntax that prevented the handling of include and page directives when written as XML. Releasing. Created attachment 170219 [details]
supplemental patch
The original fix exposed a duplicate handling of custom tags, in terms of adding variables declared by their TEI class, in the processIncludeDirective() method. As removing the invocation corrects the failures in the UI test suite without breaking any of the existing tests in the Core suite, I'd prefer to apply it rather than rollback the original patch.
Reopening for re-review. I'm fine with completing the fix. Seems an important area to "get right". thanks, Update looks fine. Thanks for addressing it quickly. Rereleasing on +1/-0. |