Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3022

DocumentNodeStoreService fails to handle empty strings in the OSGi configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.4, 1.4
    • core
    • None

    Description

      When an OSGi configuration property is removed from the dictionary associated to a component, the default value assigned to it is an empty string.

      When such an empty string is processed by DocumentNodeStoreService#prop, it is returned to its caller as a valid configuration value. The callers of DocumentNodeStoreService#prop, instead, expect null when such an empty value is found.

      The method DocumentNodeStoreService#prop should check for empty strings in the OSGi configuration, and treat them as null values.

      Attachments

        1. OAK-3022-01.patch
          2 kB
          Francesco Mari

        Issue Links

          Activity

            People

              frm Francesco Mari
              frm Francesco Mari
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: