[
https://issues.apache.org/jira/browse/CXF-7625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16340262#comment-16340262
]
ASF GitHub Bot commented on CXF-7625:
-------------------------------------
andymc12 opened a new pull request #370: [CXF-7625] Handle schemeSpecificPart
that looks like host:port
URL: https://github.com/apache/cxf/pull/370
The JAX-RS 2.1 TCK checks that a URI that has a non-integer port - i.e.
a scheme specific part that looks like host:port. They expect that the
string returned from UriBuilder.fromUri(uri).build().toString() should
include the scheme and the scheme-specific part, but CXF currently drops
the scheme-specific part. This change helps to ensure that we preserve
it, and adds a test similar to the TCK.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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
>
> 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)