Trac 1.4, User login failing

19 views
Skip to first unread message

Mo

unread,
Aug 17, 2020, 4:11:00 AM8/17/20
to Trac Users
Hello everybody,


we have a user that cannot login anymore. I can't reproduce the issue with my own login. We have reset the password of the user, but the issue remains.
Login is failing like this:

2020-08-17 09:28:26,327 Trac[main] ERROR: [10.190.226.172] Internal Server Error: <RequestWithSession "POST '/login'">, referrer 'http://trac/pp/login'
Traceback (most recent call last):
 
File "/mnt/data/trac/.local/lib64/python2.7/site-packages/trac/web/main.py", line 639, in dispatch_request
    dispatcher
.dispatch(req)
 
File "/mnt/data/trac/.local/lib64/python2.7/site-packages/trac/web/main.py", line 250, in dispatch
    resp
= chosen_handler.process_request(req)
 
File "/mnt/data/trac/.local/lib64/python2.7/site-packages/acct_mgr/web_ui.py", line 535, in process_request
   
"(release_time)s", release_time=release_time)
 
File "/mnt/data/trac/.local/lib64/python2.7/site-packages/trac/util/translation.py", line 295, in <lambda>
   
return lambda *args, **kw: _functions[symbol](domain, *args, **kw)
 
File "/mnt/data/trac/.local/lib64/python2.7/site-packages/trac/util/translation.py", line 209, in dgettext
   
return _dgettext()
 
File "/mnt/data/trac/.local/lib64/python2.7/site-packages/trac/util/translation.py", line 206, in _dgettext
   
return safefmt(self.active.dugettext(domain, string), kwargs)
 
File "/mnt/data/trac/.local/lib64/python2.7/site-packages/trac/util/translation.py", line 31, in safefmt
   
return string % kwargs
ValueError: unsupported format character '(' (0x28) at index 41

What can we do?

Best regards.

Markus Rosjat

unread,
Aug 17, 2020, 4:26:12 AM8/17/20
to trac-...@googlegroups.com
Hi ,

Look at the error, unspotted character. He might has a pw that can't be read, so he might like to try one without some strange special chars like ( . All those bad choices anyway since they are part of the programming language syntax and might need to be escaped.

Cheers 

Markus



--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/593ca46c-60ca-4187-a65a-6efe347de8c3o%40googlegroups.com.

RjOllos

unread,
Aug 17, 2020, 1:57:01 PM8/17/20
to Trac Users
The issue occurs in this block of code, which has a syntax error:
                     if release_time is not None:
                        data['login_error'] = \
                            _("Account locked, please try again after "
                              "%(release_time)s", release_time=release_time)

You can probably solve the issue by unlocking the user's account.

The syntax error is fixed in:
Reply all
Reply to author
Forward
0 new messages