Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347374 - Submit failed: unable to retrieve new task id
Summary: Submit failed: unable to retrieve new task id
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 17:01 EDT by Andrew CLA
Modified: 2011-05-27 16:57 EDT (History)
3 users (show)

See Also:


Attachments
mylyn/context/zip (1.47 KB, application/octet-stream)
2011-05-27 15:06 EDT, Frank Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew CLA 2011-05-26 17:01:12 EDT
Build Identifier: 20100917-0705

I am trying to interface to a locally hosted Bugzilla server from within Eclipse.  I am able to validate the repository connection and create queries on the repository.  The issue that I have is whenever I attempt to create a new bug from within Eclipse, the bug is created on the server but I receive the following error: "An internal error has occurred: Unable to retrieve new task id from: request XXX submitted – XXXX".  After the bug has been created, I am able to edit the bug and submit changes successfully from within Eclipse.

Reproducible: Always

Steps to Reproduce:
1.Open "New Task..." form
2.Fill in new bug details
3.Submit the bug
Comment 1 Andrew CLA 2011-05-26 18:39:25 EDT
I think the problem stems from the fact that the Bugzilla server I'm using employs the term "Request" rather than "Bug" or "Issue" in the title of the submitted bug web page.  It appears that the Bugzilla connector is expecting "Bug" or "Issue" and thus prints an error.
Comment 2 Frank Becker CLA 2011-05-27 15:06:30 EDT
Here is how to fix this

1) define an new plugin 
2) add the following extention point to the plugin.xml
<extension  point="org.eclipse.mylyn.bugzilla.core.languages"> 
	<language  name="en private"> 
		<languageAttribute command="error_login" response="Login"/>
		<languageAttribute command="error_login" response="log in"/>
		<languageAttribute command="error_login" response="check e-mail"/>
		<languageAttribute command="error_login" response="Invalid Username Or Password"/>
		<languageAttribute command="error_login" response="account locked"/>
		<languageAttribute command="error_collision" response="Mid-air collision!"/>
		<languageAttribute command="error_comment_required" response="Comment Required"/>
		<languageAttribute command="error_logged_out" response="logged out"/>
		<languageAttribute command="bad_login" response="Login"/>
		<languageAttribute command="bad_login" response="log in"/>
		<languageAttribute command="bad_login" response="check e-mail"/>
		<languageAttribute command="bad_login" response="Invalid Username Or Password"/>
		<languageAttribute command="bad_login" response="account locked"/>
		<languageAttribute command="bad_login"  response="error"/>
		<languageAttribute command="processed" response="processed"/>
		<languageAttribute command="changes_submitted" response="Changes submitted"/>
		<languageAttribute command="changes_submitted" response="added to Bug"/>
		<languageAttribute command="bug" response="Bug"/>
		<languageAttribute command="bug" response="Issue"/>
		<languageAttribute command="bug" response="Request"/>
		<languageAttribute command="submitted" response="Submitted"/>
		<languageAttribute command="submitted" response="posted"/>
		<languageAttribute command="suspicious_action" response="Suspicious action"/>
	</language> 
</extension>
 3) install this new plugin
 4) open the repository setting Dialog and change under "Additional Settings" the language to "en private"

That's it.
Comment 3 Frank Becker CLA 2011-05-27 15:06:43 EDT
Created attachment 196800 [details]
mylyn/context/zip
Comment 4 Andrew CLA 2011-05-27 16:57:56 EDT
That fixed the issue.  Thanks!