Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-4961

saving a property of a nt:unstruc​tured type changes the type of that property

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 2.16.05
    • 2.16.06
    • console
    • None

    Description

      I upgraded my project from hippo-ecm-package-war version 2.16.02 to 2.16.05. It seems that now the way the console handles the types of jcr nodes has changed. A property that was defined as sv:type="Boolean" is changed after saving to sv:type="String". This is really unexpected and leads to errors like "java.lang.UnsupportedOperationException: The type class java.lang.Boolean with value type '1' is not supported." in my application.

      So, in version 2.16.05 in the xml-export before changing has:

      <sv:property sv:name="active" sv:type="Boolean">
      <sv:value>false</sv:value>
      </sv:property>

      After changing, the exported xml has:

      <sv:property sv:name="active" sv:type="String">
      <sv:value>true</sv:value>
      </sv:property>

      The type has changed! This did not happen in 2.16.02 and seems a bug to me.

      Attachments

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            bleunis Bert Leunis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: