Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-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 1895510950 for ; Fri, 8 Nov 2013 04:33:26 +0000 (UTC) Received: (qmail 90464 invoked by uid 500); 8 Nov 2013 04:33:20 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 90410 invoked by uid 500); 8 Nov 2013 04:33:18 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 90381 invoked by uid 99); 8 Nov 2013 04:33:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 04:33:17 +0000 Date: Fri, 8 Nov 2013 04:33:17 +0000 (UTC) From: "Anthony Baldocchi (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-445) ResolverUtil cannot find packages in file URLs which include the '+' character 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/LOG4J2-445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anthony Baldocchi updated LOG4J2-445: ------------------------------------- Summary: ResolverUtil cannot find packages in file URLs which include the '+' character (was: ResolverUtil cannot find packages in paths whose URL includes the '+' character) > ResolverUtil cannot find packages in file URLs which include the '+' character > ------------------------------------------------------------------------------ > > Key: LOG4J2-445 > URL: https://issues.apache.org/jira/browse/LOG4J2-445 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.0-beta9 > Environment: Debian Squeeze and Gentoo > Java 7u25 > Reporter: Anthony Baldocchi > Attachments: resolver-util-file-with-plus.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > I work on an application whose version number includes a '+' character which becomes part of the filename for the jars created in the build process. This application uses several custom log4j2 plugins contained in the jar which are discovered via the packages tag in the xml Configuration. We also generate a plugin map using the exec-maven-plugin command documented in the Extending log4j section of the log4j2 documentation. This command prints the following during the build: > ERROR StatusLogger Could not search jar file '/src/program-1.2.3 build127/util/target/util-1.2.3 build127.jar' for classes matching criteria: annotated with @Plugin file not found > The actual path to the jar is '/src/program-1.2.3+build127/util/target/util-1.2.3+build127.jar' > I examined the source for ResolverUtil and in the method findInPackage (line 225), URLDecoder.decode is called unilaterally even for file: URLs. The javadoc for this class says the character + is converted to space, which is inappropriate for a file: URL. -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org