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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2-milestone-2
    • Fix Version/s: 4.2-milestone-3
    • Component/s: Extension
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: