| Summary: | StringIndexOutOfBoundsException in BaseAdaptor.listEntryPaths | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Glyn Normington <glyn.normington> | ||||
| Component: | Framework | Assignee: | John Ross <jwross> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | blocker | ||||||
| Priority: | P3 | CC: | eclipse, tjwatson | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M6 | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Glyn Normington
Created attachment 189711 [details]
Proposed patch
This patch checks the length of the path string. If zero, the path simply becomes the filePattern. If greater than zero, the filePattern is appended to the end of the path, adding '/' where necessary.
The spec appears to be silent (javadoc at least) on how implementations should handle a null or an empty path string for Bundle.findEntries. It states '/' represents the bundle root. The original code treated '' as '/' for the bundle root and threw an NPE for a null path string, so this patch follows suit.
The patch also includes a new test in org.eclipse.osgi.tests.
Hi John: so far I haven't managed to build Equinox, so please could you skype me a built JAR for testing? The good news is that the fix in bug337370 should help performance in this case. The bad news is that this bug was introduced. The patch looks good. I modified the test to not use the 1.5 method String.contains. The tests are still able to be run on the 1.4 VM for now. Patch has been released. nfirming that the patched build passes all the Virgo kernel tests, so problem solved. Please would you confirm that the fix is scheduled for the next I build and advise when that will be available in UK time. (In reply to comment #4) > nfirming that the patched build passes all the Virgo kernel tests, so problem > solved. Please would you confirm that the fix is scheduled for the next I build > and advise when that will be available in UK time. Glyn, our I builds are every Tuesday at 8:00 AM EST (I guess 2 PM UK time?). Bottom line, you likely will not see a build UK time until Wednesday morning. The fix will be included in the nightly build tonight if you cannot wait. http://www.eclipse.org/eclipse/platform-releng/buildSchedule.html Thanks for testing. We've put off M02 until next week, so we'll wait for the I build thanks. Just don't put more bugs in. ;-) (In reply to comment #6) > We've put off M02 until next week, so we'll wait for the I build thanks. Just > don't put more bugs in. ;-) Before I saw this note I decided to request an I-Build respin. There should be one scheduled for tomorrow. Just waiting to hear back from Kim, our release engineer. Even though you are delaying M02 until next week, I would like to get you the proper fix so you can do additional testing before you release M02. OK, Kim reacted faster than expected. Looks like the I-Build started immediately. You should have an I-Build ready for you tomorrow morning UK time. Check http://download.eclipse.org/equinox/ under the 3.7 Integration Builds section. Thanks Tom. This will help our scheduling of M02. Please note that all our testing for milestones is automated and mandatory as part of the release process. Essentially we run a script and it does all the testing and performs the release. We only have to expend manual effort if something goes wrong. So the gating factors for picking up an Equinox fix are the availability of an Equinox build and the absence of regressions in Equinox. By spinning an I build early, you have helped both these: the build is available early and the number of possible changes, and therefore regressions, relative to John's build I just tested is small. (In reply to comment #8) > OK, Kim reacted faster than expected. Looks like the I-Build started > immediately. You should have an I-Build ready for you tomorrow morning UK > time. Check http://download.eclipse.org/equinox/ under the 3.7 Integration > Builds section. The latest I build is I20110222-0800 dated Tue, 22 Feb 2011 -- 08:00 (-0500). Please could you tell us the status of Kim's I build. |