Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-522

Default POST Servlet writes single-value property even though node type mandates multi-value.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • Servlets Post 2.0.2
    • None
    • Servlets
    • None

    Description

      If a JCR node-type defines a multi-value property (e.g. String[]) and only a single value for this property is posted, the property will become single-value (e.g String). The POST Servlet should check, if the property is multi-value and respect that. Otherwise, any code reading the property value would need to check, whether it is multi-value or not and handle both cases.

      It might even be beneficial to force a multi-value property, if there is no node-type that defines it. This would provide for better control of unstructured data.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jsedding Julian Sedding
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: