Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF4C717B92 for ; Fri, 26 Jun 2015 14:22:04 +0000 (UTC) Received: (qmail 25889 invoked by uid 500); 26 Jun 2015 14:22:04 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 25836 invoked by uid 500); 26 Jun 2015 14:22:04 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 25825 invoked by uid 99); 26 Jun 2015 14:22:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2015 14:22:04 +0000 Date: Fri, 26 Jun 2015 14:22:04 +0000 (UTC) From: "Dmitry (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CMIS-923) URLDecoder: Illegal hex characters in escape (%) pattern - For input string MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-923?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D146029= 28#comment-14602928 ]=20 Dmitry commented on CMIS-923: ----------------------------- =E2=80=98org.apache.chemistry.opencmis.tck.tests.crud.NameCharsetTest=E2=80= =99 test creates a document with =E2=80=98abc%_Pxyz=E2=80=99 name. And Work= bench sends a request to get the information of the object to the URL, whic= h is similar to the following: {noformat} /cmis/versions/1.0/atom/content/abc%25_Pxyz?id=3D99a9fe7e-62ca-483c-b989-93= 63979559e6%3B1.0 {noformat} URL *is not encoded* in HTML notation in the Workbench. But server *tries* = to decode a URL from the HTML notation. And the decoding is performed in th= e Apache code of the CMIS ATOMpub servlet: {noformat} org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.servic= e(CmisAtomPubServlet.java:172) -> org.apache.chemistry.opencmis.server.shar= ed.AbstractCmisHttpServlet.createContext(AbstractCmisHttpServlet.java:125) = -> org.apache.chemistry.opencmis.server.shared.HttpUtils.splitPath(HttpUtil= s.java:71) -> org.apache.chemistry.opencmis.commons.impl.IOUtils.decodeURL(= IOUtils.java:127) -> java.net.URLDecoder.decode(URLDecoder.java:192) {noformat} Apache Workbench must encode the URLs in HTML notation in the tests > URLDecoder: Illegal hex characters in escape (%) pattern - For input stri= ng > -------------------------------------------------------------------------= -- > > Key: CMIS-923 > URL: https://issues.apache.org/jira/browse/CMIS-923 > Project: Chemistry > Issue Type: Bug > Affects Versions: OpenCMIS 0.11.0, OpenCMIS 0.12.0, OpenCMIS 0.13.0 > Reporter: Dmitry > > The failure of the test of CMIS ATOMpub 1.0 in Apache Workbecn 0.13.0: > {noformat} > UNEXPECTED_EXCEPTION: Newly created document is invalid! Exception: URLDe= coder: Illegal hex characters in escape (%) pattern - For input string: &qu= ot;_P" > {noformat} > The request is sent to the CMIS compatible server, whose support is imple= mented, based on Apache Chemistry library -- This message was sent by Atlassian JIRA (v6.3.4#6332)