You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Vladimir Bogatyrov (JIRA)" <ji...@apache.org> on 2019/02/05 06:48:00 UTC
[jira] [Commented] (CXF-7960) Exception when SOAP service URI
contains whitespace
[ https://issues.apache.org/jira/browse/CXF-7960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16760509#comment-16760509 ]
Vladimir Bogatyrov commented on CXF-7960:
-----------------------------------------
May be replacing whitespace symbols with '%20' in the address variable at [https://github.com/apache/cxf/blob/master/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletDestination.java#L71] can be a suitable fix.
> Exception when SOAP service URI contains whitespace
> ---------------------------------------------------
>
> Key: CXF-7960
> URL: https://issues.apache.org/jira/browse/CXF-7960
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Affects Versions: 3.1.11
> Reporter: Vladimir Bogatyrov
> Priority: Minor
>
> To reproduce:
> # Create SOAP service and configure service URI so that it contains spaces, e.g. _http://localhost:8080/service/Resource AsService_
> # Try to access the service.
> When accessing the service, following exception is thrown:
> {code:java}
> java.lang.IllegalArgumentException: Illegal character in path at index 38: http://localhost:8080/service/Resource AsService
> at java.net.URI.create(Unknown Source)
> at org.apache.cxf.transport.servlet.ServletDestination.getBasePath(ServletDestination.java:75)"
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)