Bug 225854 - An Update Site with bad copyright URL breaks writing out IUs
Summary: An Update Site with bad copyright URL breaks writing out IUs
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-04-04 17:23 EDT by Timothy Webb CLA
Modified: 2008-04-07 10:48 EDT (History)
1 user (show)

See Also:


Attachments
patch to catch potential exception (1.18 KB, patch)
2008-04-04 17:23 EDT, Timothy Webb CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Webb CLA 2008-04-04 17:23:43 EDT
Created attachment 94932 [details]
patch to catch potential exception

If an Update Site is parsed via the legacy update site support, when we go to write out the data via the MetadataWriter, an exception can be thrown attempting to create the URL form of the value that had been parsed from the update site.  This patch fixes it to catch the exception and allow the remaining IUs to be written to disk, otherwise, the update site can not be used by p2.
Comment 1 Pascal Rapicault CLA 2008-04-07 10:45:05 EDT
Patch released in HEAD with additional logging.