Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6644D178B4 for ; Wed, 18 Mar 2015 13:38:14 +0000 (UTC) Received: (qmail 28117 invoked by uid 500); 18 Mar 2015 13:37:39 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 27987 invoked by uid 500); 18 Mar 2015 13:37:39 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 27747 invoked by uid 99); 18 Mar 2015 13:37:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 13:37:39 +0000 Date: Wed, 18 Mar 2015 13:37:39 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6302) JAXRS issue with encoding in URL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367131#comment-14367131 ] Sergey Beryozkin commented on CXF-6302: --------------------------------------- I have to admit it is the 1st time we see it reported against the JAX-RS implementation. Typically one would create a "/REST" address and then push "/Test%20Test/Test%20Test" down to the actual service class and/or one of its methods. Actually, can you give me a favour and let me know what "AbstractHTTPDestination d = destinationRegistry.getDestinationForPath(pathInfo, true);" (the second line in ServletController.invoke) returns in your case ? That is expected to return a non-null Destination in your case... thanks > JAXRS issue with encoding in URL > -------------------------------- > > Key: CXF-6302 > URL: https://issues.apache.org/jira/browse/CXF-6302 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.0.3 > Reporter: Marat > Priority: Minor > Original Estimate: 4h > Remaining Estimate: 4h > > I use url "/Test%20Test/Test%20Test" that define while create server via JAXRSServerFactoryBean. And I have error "No service was found." for my URL. > I found that class org.apache.cxf.transport.http.DestinationRegistryImpl has decoding logic for SOAP requests, but Restful requests skip this logic. Please, chec checkRestfulRequest method in this class. Thsi method doesn't use decodedDestinations map for search. > {code:title=DestinationRegistryImpl.java|borderStyle=solid} > for (String path : getDestinationsPaths()) { > String thePath = path.length() > 1 && path.endsWith(SLASH) > ? path.substring(0, path.length() - 1) : path; > if ((address.equals(thePath) > || SLASH.equals(thePath) > || (address.length() &gr; thePath.length() > && address.startsWith(thePath) && address.charAt(thePath.length()) == '/')) > && thePath.length() &gr; len) { > ret = getDestinationForPath(path); > len = path.length(); > } > } > {code} > The thePath variable contains "/Test Test/Test Test", but i registered my service with URL "/Test%20Test/Test%20Test", so equals is false. > Please, could you fix this issue. It is critical for us, because our URL can contains whitespaces. > Thank you. -- This message was sent by Atlassian JIRA (v6.3.4#6332)