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

Andy McCright resolved CXF-7625.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 3.2.2

> JAX-RS 2.1 TCK: UriBuilder doesn't handle case where "port" is not an integer
> -----------------------------------------------------------------------------
>
>                 Key: CXF-7625
>                 URL: https://issues.apache.org/jira/browse/CXF-7625
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.2.1
>            Reporter: Andy McCright
>            Assignee: Andy McCright
>            Priority: Major
>             Fix For: 3.2.2
>
>
> The JAX-RS 2.1 TCK (which isn't public in EE4J yet, but once it is, I'll post 
> a link) has a test that checks the String content of a call to 
> URI.toString().  The URI contains what looks like an HTTP URL, but does not 
> specify an integer for the port - it uses a string instead.  While debugging 
> this, the "host" and "port" portion of the URI is passed in as scheme 
> specific part, and the host field is null and the port field is -1.  
> {{The UriBuilderImpl creates the URI object, this scheme specific part is 
> lost, so when the user (test) calls uri.toString(), they do not see that 
> info.  Here is an example:}}
> {{String uriString = "myscheme://not.really.a.host:fakePort/";}}{{URI uri = 
> UriBuilder.fromUri(uriString).build();}}{{assertEquals(uriString, 
> uri.toString());}}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to