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

Bug 353127

Summary: Release fails when non-git map entries encountered
Product: [Technology] EGit Reporter: John Arthorne <john.arthorne>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 0.12   
Target Milestone: 0.12   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-07-26 11:08:26 EDT
Version 0.12

MapContentDocument.java line 60 creates a Status object, but passes an empty string as the plugin id. This is illegal, and results in a runtime exception on this line. The cause of the original error is lost in the process.
Comment 1 John Arthorne CLA 2011-07-26 11:20:26 EDT
Attempting to push a fix to gerrit, but I get an error "[remote rejected] no common ancestry". Not sure what this means because I pulled immediately prior to creating the fix.
Comment 2 John Arthorne CLA 2011-07-26 11:24:12 EDT
Here is the error stack:

java.lang.IllegalArgumentException: 
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:47)
	at org.eclipse.core.runtime.Status.setPlugin(Status.java:237)
	at org.eclipse.core.runtime.Status.<init>(Status.java:129)
	at org.eclipse.egit.internal.relengtools.MapContentDocument.updateTag(MapContentDocument.java:60)
	at org.eclipse.egit.internal.relengtools.MapFileCompareEditorInput.constructDocuments(MapFileCompareEditorInput.java:173)
	at org.eclipse.egit.internal.relengtools.MapFileCompareEditorInput.updateInput(MapFileCompareEditorInput.java:84)
	at org.eclipse.egit.internal.relengtools.MapFileComparePage.setVisible(MapFileComparePage.java:47)
Comment 3 John Arthorne CLA 2011-07-26 11:53:02 EDT
I have pushed a fix to gerrit:

http://egit.eclipse.org/r/#change,3920

All the other changes appear to be formatting and automatic code cleanup settings that were already configured for that project. I didn't explicitly do any other cleanup or formatting of the code. I just made the one line change.
Comment 4 John Arthorne CLA 2011-07-26 12:05:52 EDT
Actually that isn't the right fix. It fixes the error handling but not the underlying problem. Another patch coming...
Comment 5 John Arthorne CLA 2011-07-26 13:08:03 EDT
Try this one:

http://egit.eclipse.org/r/#change,3921
Comment 6 John Arthorne CLA 2011-08-18 11:45:48 EDT
My fix was released. See:

http://egit.eclipse.org/r/#change,3937