| Summary: | Aggregator should have COPY_BOTH option to copy artifacts, and their metadata | ||
|---|---|---|---|
| Product: | [Technology] CBI | Reporter: | David Williams <david_williams> |
| Component: | CBI p2 Repository Aggregator | Assignee: | CBI Inbox <cbi-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | David Williams <david_williams> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | frederic.gurr, thomas |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
David Williams
Since bug 312802 was moved to b3.aggregator, this one is not required to track that specific problem with incorrect checksums. Instead, I'll transform it into a request to have COPY_BOTH options, instead of "UNPACK_SIBLING_AS_JAR". I think the copy-both is more conceptually correct and could avoid complications when the contributed pack.gz and jar are not perfectly equivalent. Not sure I agree with this. If we copy the packed version, and if we compute the checksum while we unpack it (bug 312976), then everything is OK. So copying both no longer bring any advantages once that bug has been fixed, instead it means that we don't "trust" the packed artifact. If we don't trust it, then we should avoid using it at all. Keep in mind that if we successfully copy and unpack the packed jar, then the packed jar is what p2 will use. Always. We could of course copy both and then unpack too so that we can compare the unpacked versions and trap inconsistencies that are caused by unconditioned jars. But for unsigned and unconditioned jars, those inconsistencies are to be exptected and also OK. Add that for a signed bundle the the aggregator already detects the inconsistency anyway. So singed + not conditioned will never be allowed. (In reply to comment #2) > Not sure I agree with this. If we copy the packed version, and if we compute > the checksum while we unpack it (bug 312976), then everything is OK. So copying > both no longer bring any advantages once that bug has been fixed, instead it > means that we don't "trust" the packed artifact. You mean bug 312802 I think. And, not sure I do trust them, completely, as bug 312802 reveals. They are not always perfectly equivalent ... and while we say they _should_ be, the reality is there is not guarantee all contributions will be ... and I just think the aggregator should limit itself on what it assumes, expects, and enforces. Let it aggregate. Let other things enforce. In this case, even once checksum is correct, the jar in helios central repo will be subtly different than the jar on the original site. Plus, p2 will use jar, not pack200 file, if someone happens to duplicate whole repo and uses locally. [Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.] If this issue is still relevant, please move it to https://github.com/eclipse-cbi/p2repo-aggregator/issues. |