Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 0F556935D for ; Thu, 19 Jan 2012 17:36:13 +0000 (UTC) Received: (qmail 39321 invoked by uid 500); 19 Jan 2012 17:36:12 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 39231 invoked by uid 500); 19 Jan 2012 17:36:11 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 39210 invoked by uid 99); 19 Jan 2012 17:36:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 17:36:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2012 17:36:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7CBF21569B6 for ; Thu, 19 Jan 2012 17:35:41 +0000 (UTC) Date: Thu, 19 Jan 2012 17:35:41 +0000 (UTC) From: "Jonathan Anstey (Created) (JIRA)" To: dev@felix.apache.org Message-ID: <488669591.56717.1326994541528.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (FELIX-3309) Dashes in qualifier get replaced by periods causing framework not to start up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Dashes in qualifier get replaced by periods causing framework not to start up ----------------------------------------------------------------------------- Key: FELIX-3309 URL: https://issues.apache.org/jira/browse/FELIX-3309 Project: Felix Issue Type: Bug Affects Versions: framework-3.0.9 Reporter: Jonathan Anstey For a valid OSGi version such as 1.2.3.foo-123, the org.osgi.framework.Version class was throwing an "invalid format" error: Could not create framework: java.lang.IllegalArgumentException: invalid format java.lang.IllegalArgumentException: invalid format at org.osgi.framework.Version.(Version.java:140) at org.apache.felix.framework.ExtensionManager$ExtensionManagerModule.(ExtensionManager.java:628) at org.apache.felix.framework.ExtensionManager.(ExtensionManager.java:154) at org.apache.felix.framework.Felix.(Felix.java:385) at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28) The cause of this was that in Felix.getFrameworkVersion the '-' character in the qualifier was getting replaced with a '.' so the version was changed to 1.2.3.foo.123 which wasn't valid anymore. Attaching a patch shortly that copies the code from VersionCleaner in the utils project to properly clean up the incoming version String. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira