[ 
https://issues.apache.org/jira/browse/CURATOR-586?focusedWorklogId=773513&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-773513
 ]

ASF GitHub Bot logged work on CURATOR-586:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/May/22 14:40
            Start Date: 23/May/22 14:40
    Worklog Time Spent: 10m 
      Work Description: tisonkun commented on PR #377:
URL: https://github.com/apache/curator/pull/377#issuecomment-1134763985

   Closed as inactive.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 773513)
    Time Spent: 1h 20m  (was: 1h 10m)

> NamespaceFacade return null if namespace is empty
> -------------------------------------------------
>
>                 Key: CURATOR-586
>                 URL: https://issues.apache.org/jira/browse/CURATOR-586
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Nikita Ryanov
>            Priority: Trivial
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> According to java doc framework should return empty string if namespace is 
> empty instead of null:
>  
> {code:java}
> /**
>  * Return the current namespace or "" if none
>  *
>  * @return namespace
>  */
> public String getNamespace();
> {code}
>  
> If namespace is claimed from CuratorFramework client directly all is ok, but 
> if NamespaceFacade is used then null is returned. 
> How to reproduce:
> {code:java}
> RetryPolicy policy = ...;
> CuratorFramework client = 
> CuratorFrameworkFactory.newClient("connectionString", policy);
> CuratorFramework clientWithNamespaceFacade = client.usingNamespace(null);
> clientWithNamespaceFacade.getNamespace(); // <- expected "", but got null
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to