Opened 2 years ago

Closed 14 months ago

#133 closed defect (wontfix)

symbols @ and dot in username

Reported by: Vaal Owned by: slav0nic
Priority: trivial Milestone: 1.0
Component: Private messaging Version: devel
Keywords: Cc:
Blocked By: Blocking:

Description

Если в имени пользователя есть символ @, т.е. по сути юзернэйм аналогичен емаилу - то после отправления сообщения в тему, получаем ошибку при попытке просмотра этой темы.
Также реагирует и на символ толчки в юзернейм.

TemplateSyntaxError? at /forum/topic/1/
Caught NoReverseMatch? while rendering: Reverse for 'messages_compose_to' with arguments '(<User: test@test.ru>,)' and keyword arguments '{}' not found.
Request Method: GET
Request URL: http://127.0.0.1:8000/en/forum/topic/1/?page=1
Django Version: 1.2.5
Exception Type: TemplateSyntaxError?
Exception Value:
Caught NoReverseMatch? while rendering: Reverse for 'messages_compose_to' with arguments '(<User: test@test.ru>,)' and keyword arguments '{}' not found.
Exception Location: D:\Python\lib\site-packages\django\template\defaulttags.py in render, line 385
Python Executable: D:\Python\python.exe
Python Version: 2.7.1
Python Path: ['D:
Development
demo_project with djangobb
apps', 'D:
Development
demo_project with djangobb
apps', 'D:
Development
demo_project with djangobb', 'D:
Python
lib
site-packages
pip-0.8.2-py2.7.egg', 'D:
Python
lib
site-packages
python_magic-0.4.0-py2.7.egg', 'D:
Python
lib
site-packages
setuptools-0.6c12dev_r88124-py2.7.egg', 'C:
Windows
system32
python27.zip', 'D:
Python
DLLs', 'D:
Python
lib', 'D:
Python
lib
plat-win', 'D:
Python
lib
lib-tk', 'D:
Python', 'D:
Python
lib
site-packages', 'D:
Python
lib
site-packages
PIL', 'D:
Python
lib
site-packages
win32', 'D:
Python
lib
site-packages
win32
lib', 'D:
Python
lib
site-packages
Pythonwin']
Server time: Thu, 17 Mar 2011 02:52:27 +0300
Template error

In template d:\development\demo_project with djangobb\apps\djangobb_forum\templates\forum\topic.html, error at line 79
Caught NoReverseMatch? while rendering: Reverse for 'messages_compose_to' with arguments '(<User: test@test.ru>,)' and keyword arguments '{}' not found.
69 <dd class="usercontacts"><a href="{% url djangobb:forum_profile post.user %}">{% trans "Profile" %}</a>&nbsp;&nbsp;
70 {% if post.user.forum_profile.privacy_permission == 0 %}
71 <a href="mailto:{{ post.user.email }}">{% trans "E-mail" %}</a>&nbsp;&nbsp;
72 {% else %}
73 {% if post.user.forum_profile.privacy_permission == 1 %}
74 <a href="{% url djangobb:misc %}?mail_to={{ post.user }}">{% trans "Send e-mail" %}</a>&nbsp;&nbsp;
75 {% endif %}
76 {% endif %}
77 {% if forum_settings.PM_SUPPORT %}
78 {% if user.is_authenticated %}
79 <a href="{% url messages_compose_to post.user %}">{% trans "PM" %}</a>&nbsp;&nbsp;</dd>
80 {% endif %}
81 {% endif %}

Change History (8)

comment:1 follow-up: Changed 2 years ago by slav0nic

  • Component changed from Uncategorized to Private messaging
  • Owner changed from somebody to slav0nic
  • Priority changed from minor to trivial
  • Status changed from new to accepted

Это проблема django-messages, но судя по урлу http://code.google.com/p/django-messages/source/browse/trunk/django_messages/urls.py#11 должно работать

Я так понимаю ты бекенд добавлял для авторизации по почте?

comment:2 in reply to: ↑ 1 Changed 2 years ago by Vaal

да добавлял авторизацию по почте
попробую скачать крайнею версию django-messages

comment:3 Changed 2 years ago by slav0nic

+в messages идёт отправка только по username

comment:4 Changed 2 years ago by Vaal

в принципе не страшно
я уже сделал замену в юзернэйм @ и точки на _
но решил отписаться на всякий случай

comment:5 Changed 2 years ago by slav0nic

  • Resolution set to wontfix
  • Status changed from accepted to closed

ок, закрываю

comment:6 Changed 2 years ago by taxilian

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Зачем это закрыли а не решили? Это проблемма, которая мешает мне тоже, а я не могу изменить username так, как я использую authorization backend for Atlassian Crowd.

comment:7 Changed 2 years ago by slav0nic

потому что речь шла о проблеме с django-messages, а не djangobb

comment:8 Changed 14 months ago by slav0nic

  • Resolution set to wontfix
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.