Bug 110463 - RPM import: TargetInvocationException/"Finish" error
Summary: RPM import: TargetInvocationException/"Finish" error
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Developer Suite
Classification: Retired
Component: eclipse (Show other bugs)
(Show other bugs)
Version: 1.0
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Phil Muldoon
QA Contact: eclipse-bugs
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-19 18:45 UTC by Keith Seitz
Modified: 2007-04-18 16:59 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-11-19 21:31:01 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Error message on console (5.82 KB, text/plain)
2003-11-19 18:48 UTC, Keith Seitz
no flags Details

Description Keith Seitz 2003-11-19 18:45:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2)
Gecko/20030716

Description of problem:
When importing a source RPM, the import wizard appears to select a
default project into which to import the sources. When "finishing",
something throws a TargetInvocationException, and the RPM import
plug-in is toast from there on out.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Create CDT project (File->New->Project...: C; Standard Make C Project)
2.Right-click new project and select Import...
3.Choose Source RPM and click Next
4. Click Browse... and select an SRPM
5. Click Finish
    

Actual Results:  TargetInvocationException printed to terminal. See
stack trace in attachment. Note: The actual problem is a
StringOutOfBoundsException in RPM plugin.

Expected Results:  Import SRPM or do not allow user to select Finish

Additional info:

I suspect one (or both) of the followiong is happening:
1. Even though it appears that a default project has been selected
when opening the wizard, some initialization is not happening OUTSIDE
setting up the actual dialog (unitialized variable?).
2. The user is allowed to press "Finish" before he should be allowed to

Comment 1 Keith Seitz 2003-11-19 18:48:51 UTC
Created attachment 96064 [details]
Error message on console

Comment 2 Keith Seitz 2003-11-19 18:53:20 UTC
Hmm. Well, after reproducing this bug EVERY time about 10 times in a
row, restarting eclipse (and removing workspace), suddenly the bug is
not reproducible. Goofy. I suspect that safe-gaurding against the
StringOutOfBoundsException ought to be easy enough anyway. (And
double-check the whole Finish button logic.)

Comment 3 Keith Seitz 2003-11-19 19:08:49 UTC
Okay, my goof, but still a bug. I was attempting to import
slocate-BLAH.i386.rpm instead fo slocate-BLAH.src.rpm. So try
importing  something that is not an SRPM. 

Comment 4 Phil Muldoon 2003-11-19 21:31:01 UTC
Fixed as part of #110443 fix. Should not allow any files without
src.rpm to pass validation


Note You need to log in before you can comment on or make changes to this bug.