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

Strings of zero length on update in post servlet delete the property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Post 2.1.2
    • Servlets Post 2.3.28
    • Servlets
    • None

    Description

      According to JCR specs, for string type properties, a blank string should be a valid value. Currently the post servlet delets any property where 1 or less values are specifed and the 1 value has a 0 length. I think string properties with a zero length should be blanked instead of deleted.

      Attachments

        1. SLING-2534-diff.txt
          1 kB
          Hanish Bansal
        2. blankstrings.patch
          1 kB
          Endolf

        Activity

          People

            cziegeler Carsten Ziegeler
            endolf Endolf
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: