You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2008/01/11 14:15:33 UTC

[jira] Updated: (FELIX-456) NumberFormatException thrown if bundle manifest contains a version range with spaces

     [ https://issues.apache.org/jira/browse/FELIX-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated FELIX-456:
-----------------------------------

    Attachment: pom.xml

Example pom that recreates the exception

> NumberFormatException thrown if bundle manifest contains a version range with spaces
> ------------------------------------------------------------------------------------
>
>                 Key: FELIX-456
>                 URL: https://issues.apache.org/jira/browse/FELIX-456
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven OBR Plugin
>    Affects Versions: 1.0.0
>            Reporter: Stuart McCulloch
>            Assignee: Stuart McCulloch
>            Priority: Minor
>             Fix For: 1.0.1
>
>         Attachments: pom.xml
>
>
> When installing a bundle that has a version range with spaces in its manifest, for example:
>    some.pkg.name;version="(0, 2]"
> the OBR install mojo will report a NumberFormatException, because the bindex implementation
> does not handle spaces inside the quoted string. However, the OSGi spec says version strings
> may contain whitespace.
> The VersionRange code needs a small fix to strip whitespace from around the version numbers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.