| Summary: | [repositories] Reload remote repos when local cache is corrupt | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Jimmie <btphuc> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | john.arthorne, pascal |
| Version: | unspecified | ||
| Target Milestone: | 3.5 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Jimmie
There are a dead link in the "available software tab". When the update engine touch it, the exception was throw. After remove the dead link. it works well. I find this error rather suspicious because we should not crash like that faced with invalid content. Could you please give the URL of the site, or if it is an internal site any of the content.jar / content.xml / site.xml / digest.zip that was there. Thx. Lowering severity as a result of the last comment. Need to investigated in the light of the robustness theme. *** Bug 248666 has been marked as a duplicate of this bug. *** It's PMD, a well know open source plugin. http://pmd.sourceforge.net/eclipse I have been able to install form the PMD site. However we should review under which circumstances we could create an empty requirement while parsing an legacy update site. Looking through the code we do checks both on writing and parsing to ensure that we have a valid RequiredCapability. I think it is very likely that that the repository was either partially written or corrupted on disk. The most common source of this problem we've seen is when the process is abruptly halted while in the middle of writing. I'm going to alter the description of this bug as I think the most important thing we should do here is be able to recover when a repo is corrupt. e.g. if we detect the local cache of a remote repo is corrupt we should try to reload it. *** This bug has been marked as a duplicate of bug 246803 *** |