Modify ↓
#12738 closed defect (fixed)
TypeError: %d format: a number is required, not Undefined
Reported by: | user1 | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.3.2 |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Fixed |
Description
How to Reproduce
While doing a GET operation on /wiki/NewPage
, Trac issued an internal error.
Error when deleting a page with more than one version.
Request parameters:
{u'action': u'delete', 'page': u'NewPage', u'version': u'2'}
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Firefox/52.0
System Information
Trac | 1.3.2.dev0
|
Babel | 2.3.4 (translations unavailable)
|
Docutils | 0.13.1
|
Genshi | 0.7 (with speedups)
|
GIT | 2.12.0
|
Jinja2 | 2.9.5
|
Pygments | 2.2.0
|
pysqlite | 2.6.0
|
Python | 2.7.13 (default, Dec 18 2016, 07:03:39) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]
|
pytz | 2016.10
|
setuptools | 34.3.2
|
SQLite | 3.17.0
|
Subversion | 1.9.5 (r1770682)
|
Textile | 2.3.7
|
jQuery | 1.11.3
|
jQuery UI | 1.11.4
|
jQuery Timepicker | 1.5.5
|
Enabled Plugins
milestone-to-version | N/A
|
NewTicketSubscriber | N/A
|
RaiseErrorPlugin | N/A
|
TicketFieldsEmailDecorator | N/A
|
upcomingmilestoneschartmacro | N/A
|
Interface Customization
Python Traceback
Traceback (most recent call last): File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/web/main.py", line 636, in _dispatch_request dispatcher.dispatch(req) File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/web/main.py", line 259, in dispatch method=method) File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/web/chrome.py", line 1376, in render_template fragment, iterable, method) File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/web/chrome.py", line 1468, in _render_jinja_template iterable) File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/web/chrome.py", line 1582, in generate_template_stream bytes = template.render(data).encode('utf-8') File "/Users/rjollos/Documents/Workspace/trac-dev/pve/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/Users/rjollos/Documents/Workspace/trac-dev/pve/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/wiki/templates/wiki_delete.html", line 12, in top-level template code # extends 'layout.html' File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/templates/layout.html", line 12, in top-level template code # import "macros.html" as jmacros with context File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/templates/theme.html", line 22, in top-level template code # block body File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/templates/theme.html", line 157, in block "body" # block content File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/wiki/templates/wiki_delete.html", line 133, in block "content" ngettext("%(num)d version", "all %(num)d versions", num=versions) File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/util/translation.py", line 219, in ngettext return _ngettext() File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/util/translation.py", line 216, in _ngettext return safefmt(trans, kwargs) File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/util/translation.py", line 31, in safefmt return string % kwargs TypeError: %d format: a number is required, not Undefined
Attachments (0)
Change History (3)
comment:1 by , 8 years ago
Owner: | set to |
---|---|
Release Notes: | modified (diff) |
Status: | new → assigned |
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 5 years ago
Moving to Internal Changes since this regression didn't appear in a stable release.
Note:
See TracTickets
for help on using tickets.
Fixed in r15677.