Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 10220 invoked from network); 19 Nov 2008 23:54:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Nov 2008 23:54:07 -0000 Received: (qmail 71731 invoked by uid 500); 19 Nov 2008 23:54:14 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 71683 invoked by uid 500); 19 Nov 2008 23:54:14 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 71672 invoked by uid 99); 19 Nov 2008 23:54:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2008 15:54:14 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2008 23:52:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4FC80234C298 for ; Wed, 19 Nov 2008 15:53:44 -0800 (PST) Message-ID: <1262060057.1227138824325.JavaMail.jira@brutus> Date: Wed, 19 Nov 2008 15:53:44 -0800 (PST) From: "Andreas Veithen (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-4421) ContentType fails to parse content types with parameters containing escaped characters In-Reply-To: <995870660.1227138824244.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-4421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Veithen updated GERONIMO-4421: -------------------------------------- Attachment: GERONIMO-4421.patch.txt Attached patch with a fix for this issue as well as a unit test. > ContentType fails to parse content types with parameters containing escaped characters > -------------------------------------------------------------------------------------- > > Key: GERONIMO-4421 > URL: https://issues.apache.org/jira/browse/GERONIMO-4421 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: mail, specs > Reporter: Andreas Veithen > Priority: Minor > Attachments: GERONIMO-4421.patch.txt > > > javax.mail.internet.ContentType fails to parse the following content type: > multipart/related; type="application/xop+xml"; start=""; start-info="application/soap+xml; action=\"urn:upload\""; boundary="----=_Part_10_5804917.1223557742343" > This is caused by a bug in HeaderTokenizer#readQuotedString that is triggered if a parameter contains an escaped character. In this case the "pos" attribute is not updated correctly at the end of the parsing. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.