Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 246416

Summary: IndexOutOfBounds when profile registry directory contains other files
Product: [Eclipse Project] Equinox Reporter: John Arthorne <john.arthorne>
Component: p2Assignee: John Arthorne <john.arthorne>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4   
Target Milestone: 3.5 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John Arthorne CLA 2008-09-05 15:10:09 EDT
If you create other files in the profile registry director on disk, it causes all subsequent installs to fail due to an IndexOutOfBoundsException. The problem is in SimpleProfileRegistry#findLatestProfileFile:

pathname.getName().endsWith(PROFILE_EXT) && !pathname.isDirectory();

We should make this more resilient to the presence of other files (for example someone copying a profile file while debugging).
Comment 1 John Arthorne CLA 2008-09-05 15:15:15 EDT
Sigh, already fixed.

*** This bug has been marked as a duplicate of bug 240128 ***