Community
Participate
Working Groups
Changes for bug 275316 can create CU fragments with an incorrect version range for the host requirement. This results in broken metadata.
Note that because the host range for the CU does not have an upper bound, this will only be noticed if the bundle version is less than the product version (which is why it wasn't caught by the existing unit tests)
Created attachment 137217 [details] path + test
When creating a CU should we set the host requirement to the *exact* version of the host IU. We currently set it to: new VersionRange(hostVersion, true, PublisherHelper.versionMax, true); What about [hostVersion,hostVersion]. I'm sure there is a good reason for the current behaviour. I just want to make sure it's intentional.
(In reply to comment #3) > I'm sure there is a good reason for the current behaviour. I just want to make > sure it's intentional. > Actually I assume it's so we can publish a new bundle without publishing a new CU.
Created attachment 137270 [details] Publisher Testcase To ensure that I understood the problem (and solution) I wrote a publisher test case. I also added a case to the metadata analyzer tool to check that for each fragment, the hosts can be resolved.
Looks good. We should release Ian's test too.
Released both patches to HEAD.