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

OSGi Connect CT assumes that a ConnectContent is open/closed only one time. #3006

Closed bjhargrave closed 4 years ago

bjhargrave commented 4 years ago

Original bug ID: BZ#3139 From: Karl Pauls <kpauls@adobe.com> Reported version: R8

bjhargrave commented 4 years ago

Comment author: Karl Pauls <kpauls@adobe.com>

The OSGi Connect related CT tests make assumptions about how many times a ConnectContent is open/closed which seems wrong given that the contract does say:

I think it should be ok to open/close a content an arbitrary amount of times during tests provided it ends up being closed. Granted, we could debate if it has to be a strict ordering of matching open/close calls as well (i.e., whether or not it is ok to e.g. see an open/open/close or e.g. open/close/close) which I would argue should be ok as well as long as the content is open when a resource is accessed and ends up in closed when not used anymore - but I don't feel super strongly about that last bit.

bjhargrave commented 4 years ago

Comment author: @tjwatson

Anjum please take a look at this.

bjhargrave commented 4 years ago

Comment author: @anjumfatima90

Fixed, Thanks.