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

SegmentNodeStoreService fails to handle empty strings in the OSGi configuration

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.2, 1.4
    • Component/s: segmentmk
    • Labels:
      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 SegmentNodeStoreService#lookup, it is returned to its caller as a valid configuration value. The callers of SegmentNodeStoreService#lookup, instead, expect null when such an empty value is found.

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

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              amitjain Amit Jain
              Reporter:
              frm Francesco Mari

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment