[
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)