You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2020/05/14 10:19:00 UTC

[jira] [Commented] (CXF-8283) JAXRSClientFactory fails to build valid path when hostname contains a underscore

    [ https://issues.apache.org/jira/browse/CXF-8283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17107176#comment-17107176 ] 

Colm O hEigeartaigh commented on CXF-8283:
------------------------------------------

JAXRSClientFactory uses java.net.URI which doesn't allow underscores in the hostname.

[https://www.ietf.org/rfc/rfc2396.txt]

" Hostnames take the form described in Section 3 of [RFC1034] and
 Section 2.1 of [RFC1123]: a sequence of domain labels separated by
 ".", each domain label starting and ending with an alphanumeric
 character and possibly also containing "-" characters. "

> JAXRSClientFactory fails to build valid path when hostname contains a underscore
> --------------------------------------------------------------------------------
>
>                 Key: CXF-8283
>                 URL: https://issues.apache.org/jira/browse/CXF-8283
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.3.6
>            Reporter: Rémi Alvergnat
>            Priority: Major
>
> Client created with JAXRSClientFactory fails to build the full path of the requested resource when hostname contains an underscore.
> The issue can reproduced with this repository: [https://github.com/Toilal/cxf-jaxrs-invalid-path]
> Run the Main class and check the REQ_OUT logs, first one is with hostname "nounderscore" which should the expected Address, but second one is with hostname "with_underscore" and the resource path is missing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)