Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8188

Extension Manager resets the hidden property to false when it installs documents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.2-milestone-3
    • 4.2-milestone-2
    • Extension
    • 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 + "]"
                  }
              }
          }
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            jvdrean Jean-Vincent Drean
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: