Modify ↓
Opened 13 years ago
Closed 13 years ago
#10040 closed defect (fixed)
Error with interpolation in keys
Reported by: | Étienne BERSAC | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Component: | TracWorkflowAdminPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Hi,
When using WorkflowAdmin with interpolation in some config key, i git the following exception :
File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 511, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.6/dist-packages/trac/admin/web_ui.py", line 116, in process_request path_info) File "/usr/local/lib/python2.6/dist-packages/tracworkflowadmin/web_ui.py", line 127, in render_admin_panel 'text': self._conf_to_str(self.config) File "/usr/local/lib/python2.6/dist-packages/tracworkflowadmin/web_ui.py", line 211, in _conf_to_str tmp.set('ticket-workflow', name.encode('utf-8'), value.encode('utf-8')) File "/usr/lib/python2.6/ConfigParser.py", line 669, in set "position %d" % (value, percent_index)) ValueError: invalid interpolation syntax in 'Le ticket %s \xc3\xa0 \xc3\xa9t\xc3\xa9 marqu\xc3\xa9e comme doublon de ce ticket.' at position 10
plugin version is 0.12.0.2 (from SVN).
The plugin should use raw value when reading workflow configuration.
Regards, Étienne BERSAC
Attachments (0)
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Thanks for your reporting.
Ok. I can reproduce the issue with Python 2.6, but cannot with Python 2.4. I'll work the issue later.