Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313050 - Helios M7 repo contains checksum errors and should be fixed
Summary: Helios M7 repo contains checksum errors and should be fixed
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Cross-Project (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Williams CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-16 22:15 EDT by David Williams CLA
Modified: 2010-05-18 05:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2010-05-16 22:15:50 EDT
bug 312802 actually describes the bug that led to the repository having checksum errors. 

This bugzilla entry is just to describe the "repair" I did on the helios M7 repository ... just so everyone knows (and I can remember how to do it months from now :)
Comment 1 David Williams CLA 2010-05-16 22:19:25 EDT
I copied the 201005070900 sub-repository to 201005070900a, then ran 

p2.process.artifacts task on that new repository. 

Then I remembered to correct the mirrorsURL in artifacts.jar 

Then, after allowing 201005070900a to mirror for a day, changed the composite repo to point to it, and removed 201005070900. 

I'll physically delete 201005070900 from the file system in the coming week, unless someone tell me they need it (for testing, or comparisons, for example).
Comment 2 David Williams CLA 2010-05-16 22:20:05 EDT
This repair work was completed Sunday evening.
Comment 3 David Williams CLA 2010-05-18 05:28:28 EDT
It has been reported to me that I did this repair incorrectly, The mirrorsURL ended up with an extra & in it, transforming the & I gave it, in a URL, to &amp. 

This came about, because (for the first time) I wrote a small application to use P2 APIs to set the mirrorsURL property on the repository. I read in through a system variable, namely 

-Dp2MirrorsURL=http://www.eclipse.org/downloads/download.php?format=xml∓file=/releases/helios/201005070900a/aggregate/&protocol=http

and apparently should use unescaped values: 

-Dp2MirrorsURL=http://www.eclipse.org/downloads/download.php?format=xml&file=/releases/helios/201005070900a/aggregate/&protocol=http

Not sure if its "p2 code" or some XML code somewhere, that is re-escaping the ampersand ... but it is reasonable (or, at least common) to have to supply unescaped values and let the code escape it. 

Lesson learned.
Comment 4 David Williams CLA 2010-05-18 05:31:34 EDT
Oh, and I should say, I've now fixed it in the M7a repository, 201005070900a.