You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Francesco Mari (JIRA)" <ji...@apache.org> on 2015/08/03 12:14:04 UTC

[jira] [Updated] (OAK-3022) DocumentNodeStoreService fails to handle empty strings in the OSGi configuration

     [ https://issues.apache.org/jira/browse/OAK-3022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Mari updated OAK-3022:
--------------------------------
    Attachment: OAK-3022-01.patch

The attached patch uses the new method introduced by OAK-3048 to handle empty strings in the OSGi configuration.

> DocumentNodeStoreService fails to handle empty strings in the OSGi configuration
> --------------------------------------------------------------------------------
>
>                 Key: OAK-3022
>                 URL: https://issues.apache.org/jira/browse/OAK-3022
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Francesco Mari
>            Assignee: Francesco Mari
>         Attachments: OAK-3022-01.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)