You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alexey Markevich (JIRA)" <ji...@apache.org> on 2018/03/05 11:58:00 UTC
[jira] [Commented] (CXF-7625) JAX-RS 2.1 TCK: UriBuilder doesn't
handle case where "port" is not an integer
[ https://issues.apache.org/jira/browse/CXF-7625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16385987#comment-16385987 ]
Alexey Markevich commented on CXF-7625:
---------------------------------------
Test failed in case query present: "myscheme://not.really.a.host:fakePort/?q=v"
> 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)