Go to file
Jonathan Nieder 373dbf2f6f Disable commit validation in RebaseIfNecessary
When a commit is submitted by someone other than its author who
does not have "forge author" permission and the submit type is
"Rebase If Necessary", gerrit permits the change to be submitted
and then fails to merge it:

| Merge attempt for gwt,refs/heads/master failed
| com.google.gerrit.server.git.MergeException: Cannot rebase 9453549842ae10f24d6299a52897d423bd8e0b7d
| 	at com.google.gerrit.server.git.RebaseIfNecessary._run(RebaseIfNecessary.java:112)
| 	at com.google.gerrit.server.git.SubmitStrategy.run(SubmitStrategy.java:103)
| [...]
| Caused by: com.google.gerrit.server.project.InvalidChangeOperationException: invalid author
| 	at com.google.gerrit.server.change.PatchSetInserter.validate(PatchSetInserter.java:325)
| 	at com.google.gerrit.server.change.PatchSetInserter.insert(PatchSetInserter.java:189)
| 	at com.google.gerrit.server.changedetail.RebaseChange.rebase(RebaseChange.java:303)
| 	at com.google.gerrit.server.git.RebaseIfNecessary._run(RebaseIfNecessary.java:83)
| 	... 19 more

Permissions are already checked at submit time.  The extra commit
validation at merge time (for this submit type only) came about as an
unintended side effect when RebaseChange was tweaked to use
PatchSetInserter in fd23ab518f.  Rely on
the submit-time checks and disable the merge-time check.

Analysis-by: Dave Borowitz <dborowitz@google.com>
Change-Id: Ic7050679aad5e7822e2307f2491ea212db1e1e79
2013-07-24 17:14:57 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-07-22 09:52:36 -07:00
2013-07-05 18:55:30 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-07-15 16:38:21 -07:00
2013-07-20 12:29:01 -07:00
2013-06-22 17:41:35 -07:00
2013-06-14 12:47:51 -07:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB