]
Chris Laprun resolved GTNPC-70.
-------------------------------
Assignee: Julien Viet
Fix Version/s: 2.3.0-Beta08
(was: 2.3.0-GA)
Resolution: Done
Behavioral change: New portlet metadata parser silently discards
unexpected elements.
-------------------------------------------------------------------------------------
Key: GTNPC-70
URL:
https://issues.jboss.org/browse/GTNPC-70
Project: GateIn Portlet Container
Issue Type: Enhancement
Components: API, Documentation
Affects Versions: 2.3.0-Beta05
Reporter: Chris Laprun
Assignee: Julien Viet
Labels: metadata, parser
Fix For: 2.3.0-Beta08
portlet.xml parsing was previously very tolerant with respect to out-of-order elements
(XSD kinda sucks for this), thus silently allowing portlet.xml that were not strictly
valid according to portlet-app_2_0.xsd. The new staxnav parser, on the other hand, is a
lot stricter (while still not validating) meaning that it will silently discard unexpected
(in particular, out-of-order) elements, resulting in portlet metadata that previously was
imported, now being silently discarded. While this is not strictly a bug (after all, the
portlet.xml that result in errors are invalid), this is a rather big behavioral change
compounded with the fact that the new parser silently discards information resulting in
errors showing up much later than the parsing process and without any informational
context that the user could use to fix the issue... :(
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: