Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1227

Restore of empty multivalue property always changes property type to String

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3, 1.4
    • Fix Version/s: 1.3.4, core 1.4.1
    • Component/s: jackrabbit-core, versioning
    • Labels:
      None

      Description

      When you do a restore of empty multivalue property (OPV=COPY), restored property always has the String type (no matter of property type in frozen state). The solution is to set the property type from frozen state instead of retriving it from 'first' value. If mulitvalue does not have any values the type is set to UNDEFINED and finally changed to STRING in restore method.

      Attached patch with test case.

        Attachments

        1. restoreMultvalueProp.patch
          6 kB
          Tomek Dabrowski

          Activity

            People

            • Assignee:
              jukkaz Jukka Zitting
              Reporter:
              tomekdab Tomek Dabrowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: