You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/04 08:34:00 UTC

[jira] [Work logged] (CURATOR-586) NamespaceFacade return null if namespace is empty

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

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

                Author: ASF GitHub Bot
            Created on: 04/Feb/21 08:33
            Start Date: 04/Feb/21 08:33
    Worklog Time Spent: 10m 
      Work Description: TisonKun commented on pull request #377:
URL: https://github.com/apache/curator/pull/377#issuecomment-773129876


   > I recall that every time we've touched this in the past there were problems. I'd feel more comfortable if some users tested this with their code.
   
   Is there an exact example? What is the problems' kind?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

    Worklog Id:     (was: 547488)
    Time Spent: 40m  (was: 0.5h)

> 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: 40m
>  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.3.4#803005)