Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.2-milestone-2
-
None
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
This is because only string properties are correctly set in the newly created XWikiDocument.
from AbstractHandler.java
protected void endElementInternal(String uri, String localName, String qName) throws SAXException { if (this.currentBean != null && this.value != null) { Method setter; try { setter = this.currentBean.getClass().getMethod("set" + StringUtils.capitalize(qName), String.class); setter.invoke(this.currentBean, this.value.toString()); currentBeanModified(); } catch (Exception e) { // TODO: LOG warn "Unknown element [" + qName + "]" } } }