Community
Participate
Working Groups
To reproduce: # open a Gerrit review in the review editor # fill in a new comment in the "New Comment" area # press Alt+Shift+S to submit # observe "Submit failed: unexpected error: null" Using Mylyn Reviews Connector: Gerrit 2.0.0.v20130612-0100 the following exception shows in the error log: java.lang.UnsupportedOperationException at org.eclipse.mylyn.internal.gerrit.core.GerritTaskDataHandler.postTaskData(GerritTaskDataHandler.java:214) at org.eclipse.mylyn.internal.tasks.core.sync.SubmitTaskJob.run(SubmitTaskJob.java:100) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Wow, good one. This only fails when one uses the keyboard combination, not when clicking the submit button. I believe usage wasn't actually anticipated, because until we have support for a more Mylyn like workflow (see bug 370645, bug 384770), you can't actually "Submit" the task in the usual way -- you have to use "Publish Comments" from within a patch set. (Note that there isn't actually a Submit button in the header.) So it seems that what we need to do is disable the keyboard action or something like that. (I'm not sure if we should tackle this one for 2.0.1 or hold for 2.1.)
This looks like a bug in the task editor to me. It should do nothing if the submit button is not enabled.
Actually the framework was working just fine. We just needed to set needsSubmit as well as needsSubmit button. It seems to me that we've discussed this one before so rather than have it come up again, I fixed it. https://git.eclipse.org/r/#/c/13894/
Merged: https://git.eclipse.org/r/#/c/13894/
Assignee?
.