Github user bbende commented on the issue:

    https://github.com/apache/nifi/pull/1307
  
    @randerzander I wrote a simple Java main method with the following:
    ```
    URI uri = new URI("nifi://techops_web-service.dev_1.techops_dev:42626");
    System.out.println("Host: " + uri.getHost());
    System.out.println("Port: " + uri.getPort());
    ```
    Sure enough this prints the host as null and the port as -1. From what I 
can tell the "_" causes the URI to not parse properly. Since this appears to be 
based on the RFC for URIs, I don't think this should hold up merging this in.
    
    I made an additional commit on my branch here 
https://github.com/bbende/nifi/commits/NIFI-2585 which in the case where host 
is null or port is -1, it will use the string "unknown" so that it looks a 
little nicer in the attributes.
    
    Thoughts?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to