[issue2551406] Templating Error: too many values to unpack (expected 2)
Christof Meerwald <[email protected]> Mon, 02 Jun 2025 11:14:39 +0000
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
New submission from Christof Meerwald:
In cgi/client.py we have:
# determine if view is oktmpl|errortmpl. If so assign the
# right one to the view parameter. If we don't have alternate
# templates, just leave view alone.
if (view and view.find('|') != -1):
# we have alternate templates, parse them apart.
(oktmpl, errortmpl) = view.split("|", 2)
Presumably, the last line should be:
(oktmpl, errortmpl) = view.split("|", 1)
to avoid a ValueError exception when there is more than one "|".
This can be triggered by something like
?%40template=forgotten%7c%7x
as a query parameter.
----------
components: Web interface
keywords: Effort-Low
messages: 8392
nosy: cmeerw
priority: high
severity: major
status: new
title: Templating Error: too many values to unpack (expected 2)
type: crash
versions: 2.5.0
_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551406>
_________________________________________________