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

The Sling API ObjectConverter does not correctly convert JCR values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • API 2.21.0
    • API 2.22.0
    • API
    • None

    Description

      SLING-8116 delegates value conversions to the org.osgi.util.converter.Converter. However, JCR values will be wrongly processed by the Converter, since it will first convert them to maps and then return the map's key if the key's type is the same as the conversion type. For JCR values, the Map's keys will be the value's public method names, whereas the values will be the invocation of said methods. This is definitely not the behaviour we want.

      The simplest solution would be to optionally import the javax.jcr API and, if present, add some custom rules based on javax.jcr.Value into the Converter.

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m