Last modified: 2012-07-06 04:04:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38632, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36632 - Register new email: Cannot format velocity template com/google/gerrit/server/mail/RegisterNewEmail.vm
Register new email: Cannot format velocity template com/google/gerrit/server/...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://code.google.com/p/gerrit/issue...
: upstream
Depends on: 37406
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-08 09:30 UTC by Marcin Cieślak
Modified: 2012-07-06 04:04 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Marcin Cieślak 2012-05-08 09:30:00 UTC
Trying to go to

Settings > Contact Information > Register New Email

Enter some email address

Result: 

Cannot format velocity template com/google/gerrit/server/mail/RegisterNewEmail.vm

Cannot find this bug upstream, maybe our .war got botched (or didn't unpack properly in $HOME/.gerritcodereview?
Comment 1 Chad H. 2012-05-08 11:04:03 UTC
Hrm, we haven't customized any of the templates so this is presumably an upstream bug :(
Comment 2 Chad H. 2012-05-15 14:06:39 UTC
This doesn't seem to be affecting master as far as I can tell. Need to check 2.4. If it's not fixed there, maybe we can ask for a backport to the 2.3 or 2.4 branch.
Comment 3 Dereckson 2012-06-06 09:34:39 UTC
Can't repo on a fresh new Gerrit 2.4 install.

The content of the gerrit logs/error.log file should be checked to get more information.
Comment 4 Dereckson 2012-06-06 09:35:32 UTC
Removing upstream as the bug is unconfirmed in a upstream LDAP installation.
Comment 5 Chad H. 2012-06-08 12:39:54 UTC
Can't be confirmed in 2.4 or 2.5 (master). Presumably this will be solved on upgrade, so adding the dependency.
Comment 6 Liangent 2012-06-08 12:59:09 UTC
Looks like a regression. I successfully added a new Email address before we upgraded to 2.3.
Comment 7 Chad H. 2012-06-08 13:03:07 UTC
(In reply to comment #6)
> Looks like a regression. I successfully added a new Email address before we
> upgraded to 2.3.

Regression in 2.3, perhaps. Since I can't replicate in 2.4 or 2.5, presumably it was fixed.

I don't see any specific mention in the release notes[0], but that doesn't mean it wasn't done.

[0] http://gerrit-documentation.googlecode.com/svn/ReleaseNotes/ReleaseNotes-2.4.html
Comment 8 Marcin Cieślak 2012-06-08 13:24:47 UTC
Not sure if there were any substantial changes in the file in the project history.

Maybe it's an integration problem (wrong velocity library version) or something went wrong when packing JARs together?

$ git log --format="%H (%ci) %s" -- gerrit-server/src/main/resources/com/google/gerrit/server/mail/RegisterNewEmail.vm

d6bd00b5eb834e90b53ad954e32c4a4ba6d77e5e (2012-01-23 11:13:47 -0800) Improve validation of email registration tokens
392ef85e0cad3d2de00d009cb4919d94b984f732 (2011-10-18 12:18:19 -0700) Correct example typo
6ba66e0c9d37ce4b65dce7f47a38f2ac53e255e2 (2011-06-27 09:59:27 -0700) Modernize URLs to be shorter and consistent
679fc379c8d2f397d7e24445968f390d0e2f12b3 (2010-08-12 13:46:53 -0600) Convert 3 email classes to file based templates.
Comment 9 Marcin Cieślak 2012-06-08 13:31:47 UTC
d6bd00b5eb834e90b53ad954e32c4a4ba6d77e5e is present in v2.3, v2.3-rc0 and v2.4-rc0 (as well as master)

6ba66e0c9d37ce4b65dce7f47a38f2ac53e255e2 was the last one in v2.2.2

Would be also good to check if we have something in $site_dir/etc/mail (or if putting a fresh RegisterEmail.vm there solves the problem)
Comment 10 Chad H. 2012-06-08 15:48:02 UTC
(In reply to comment #9)
> Would be also good to check if we have something in $site_dir/etc/mail (or if
> putting a fresh RegisterEmail.vm there solves the problem)

We do not have anything currently in etc/mail, we're relying on the compiled defaults.

I'd rather not put a new template in production just yet--let's downgrade the labs install to 2.3 and attempt to replicate it first.
Comment 11 Liangent 2012-07-06 04:04:22 UTC
Fixed by upgrading Gerrit.

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


Navigation
Links