osgi / bugzilla-archive

Archive of OSGi Alliance Specification Bugzilla bugs. The Specification Bugzilla system was decommissioned with the move to GitHub. The issues in this repository are imported from the Specification Bugzilla system for archival purposes.
0 stars 1 forks source link

[http whiteboard] HttpServiceRuntimeTestCase.test_140_11_2() expects the contract capability to have exactly one version #2979

Closed bjhargrave closed 5 years ago

bjhargrave commented 5 years ago

Original bug ID: BZ#3111 From: @rotty3000 Reported version: R6

bjhargrave commented 5 years ago

Comment author: @rotty3000

Test Case:

org.osgi.test.cases.http.whiteboard.junit.HttpServiceRuntimeTestCase.test_140_11_2()

uses the following logic:

Version version = (Version) attributes.get(ContractNamespace.CAPABILITY_VERSION_ATTRIBUTE);

However the contract capability also supports:

List

which is not checked and so the CT fails if you used that type.

bjhargrave commented 5 years ago

Comment author: @rotty3000

EEG: agreed on proposed solution

bjhargrave commented 5 years ago

Comment author: @rotty3000

EEG: assert that Version, Version[], Collection are supported

bjhargrave commented 5 years ago

Comment author: @rotty3000

See cee500b3d94dfd42677c2d97b556f3c37b9c0f0c