Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8214 closed defect (worksforme)

user registration fails with UnicodeDecodeError

Reported by: squalyl@… Owned by: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: blocker Keywords: login conflict
Cc: Trac Release: 0.11

Description (last modified by rjollos)

Hello,

trying to install account manager on trac 0.11.1.

(installed from instructions on http://trac-hacks.org/wiki/AccountManagerPlugin:
easy_install http://trac-hacks.org/svn/accountmanagerplugin/0.11
)

I enabled the user registration, and when posting the registration form I get:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 339, in send_error
    'text/html')
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 715, in render_template
    return stream.render(method, doctype=doctype)
  File "/var/lib/python-support/python2.5/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/var/lib/python-support/python2.5/genshi/output.py", line 60, in encode
    return _encode(u''.join(list(iterator)))
  File "/var/lib/python-support/python2.5/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.5/genshi/output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.5/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "/var/lib/python-support/python2.5/genshi/output.py", line 707, in __call__
    text = mjoin(textbuf, escape_quotes=False)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 904: ordinal not in range(128)

I also get a stack frame dump when trying to add a new user from the account mgr admin :(

Do you need parts of my config to understand the issue?

Regards
Sebastien

Attachments (0)

Change History (6)

comment:1 Changed 4 years ago by squalyl@…

  • Resolution set to worksforme
  • Status changed from new to closed

well, sorry for the noise :(. That sorta works now... this was a conflict between the original login system and the new one...

comment:2 in reply to: ↑ description Changed 4 years ago by hasienda

Replying to squalyl@gmail.com:

Hello,

trying to install account manager on trac 0.11.1.

(installed from instructions on http://trac-hacks.org/wiki/AccountManagerPlugin:
easy_install http://trac-hacks.org/svn/accountmanagerplugin/0.11
)

![...]
Do you need parts of my config to understand the issue?

No, I would have insisted on installing trunk, since 0.11 branch hasn't been updated for the last nine months or so, and a lot of fixes and improvements went into the development branch meanwhile.

However, glade it's working for you now. But especially if you do use registration, you should give trunk a try for your own peace of mind. Look at the revision log, to see what got in there. Building a proper changelog is still an open task.

comment:3 Changed 4 years ago by hasienda

  • Keywords login conflict added
  • Summary changed from accountMgr user registration fails with an ugly stackTrace to user registration fails with UnicodeDecodeError

Ah, leave sentiment out of description, if possible at all, and better have some keywords in here too. :-)

comment:4 follow-up: Changed 4 years ago by squalyl@…

Okay, are there any upgrade issues?

my personal peace of mind came from the debian 'apt-get install trac' command, but why not have a look at your last work :)

thanks for the keywords and summary.

comment:5 in reply to: ↑ 4 Changed 4 years ago by hasienda

Replying to squalyl@gmail.com:

Okay, are there any upgrade issues?

No, there are no db upgrades and I've designed everything but the email verification code to be backwards-compatible in terms of default behavior. As long as you don't set specific (new) options, you shouldn't be in trouble and would just benefit from revised code. I've put the code in production, so there is certainly nothing serious, breaking Trac db or similar, as far as I used and tested it.

But take this with a grain of salt as always.

my personal peace of mind came from the debian 'apt-get install trac' command, but why not have a look at your last work :)

I'm a Debian fellow too, but have to continue to break the general rule with Trac and Trac plugins as it stands by now. This would need much more packaging assistance, to name just one of the issues, that the Python package maintainers do face these days. I made contact, but since have been overwhelmed by maintenance and support demand of this and some other plugins.

thanks for the keywords and summary.

You're welcome.

comment:6 Changed 4 years ago by rjollos

  • Description modified (diff)

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from hasienda. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.