https://issues.apache.org/jira/browse/KARAF-7163

Regards
Steven

On Tue, May 25, 2021 at 10:06 AM Jean-Baptiste Onofre <[email protected]>
wrote:

> Ok,
>
> Can you please create a Jira about that, I will fix/improve that.
>
> Regards
> JB
>
> Le 25 mai 2021 à 09:08, Steven Huypens <[email protected]> a écrit
> :
>
> Hi,
>
> Apparently our customer needs the version numbers to be alphanumerically
> sortable, so we cannot remove the leading zeroes. I'm looking forward to a
> solution, let me know how I can help.
>
>
> Best regards,
> Steven
>
> On Tue, May 25, 2021 at 6:19 AM Jean-Baptiste Onofre <[email protected]>
> wrote:
>
>> Hi Daniel,
>>
>> I don’t think there’s any enforcement in the OSGi spec regarding leading
>> 0 (actually, I think it’s "blurry" as there’s no details in one way or
>> another).
>>
>> That’s why I said more a "best practice".
>>
>> Generally speaking (not OSGi related), I don’t see any good reason to use
>> leading 0 in version ;)
>>
>> So, as the spec is not very strict about that, we should support it in
>> the resolver.
>>
>> Regards
>> JB
>>
>> > Le 24 mai 2021 à 17:16, Daniel Krügler <[email protected]> a
>> écrit :
>> >
>> > Am 24.05.2021 um 17:10 schrieb Jean-Baptiste Onofre:
>> >> Hi Steven,
>> >>
>> >> Yeah, the state should already contain the "cleaned" versions.
>> >>
>> >> I will take a look.
>> >>
>> >> Anyway, as best practice, I would avoid leading 0 ;)
>> >
>> > I completely agree and I don't understand why there should be additional
>> > work invested to "fix" that. The OSGi specification is clear that any
>> > leading zeros in version numbers are invalid. Anyone attempting to
>> > provide such a bundle should correct the version number and remove the
>> > leading zeros.
>> >
>> > - Daniel
>> >
>>
>>
>

Reply via email to