Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in ietf_filters.py(29): in parse_email_list, re.split() expected string or buffer #182

Closed
ietf-svn-bot opened this issue Jun 30, 2007 · 5 comments

Comments

@ietf-svn-bot
Copy link

owner:[email protected] resolution_fixed type_defect | by [email protected]



-------- Original Message --------
Subject: [Django] Error (EXTERNAL IP): /liaison/337/
Date: Sat, 30 Jun 2007 04:22:02 -0000
From: Django Server <[email protected]>
To: [email protected], [email protected]

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 77, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/lib/python2.4/site-packages/django/views/generic/list_detail.py", line 129, in object_detail
    response = HttpResponse(t.render(c), mimetype=mimetype)

  File "/usr/lib/python2.4/site-packages/django/template/__init__.py", line 168, in render
    return self.nodelist.render(context)

  File "/usr/lib/python2.4/site-packages/django/template/__init__.py", line 705, in render
    bits.append(self.render_node(node, context))

  File "/usr/lib/python2.4/site-packages/django/template/__init__.py", line 718, in render_node
    return(node.render(context))

  File "/usr/lib/python2.4/site-packages/django/template/__init__.py", line 767, in render
    output = self.filter_expression.resolve(context)

  File "/usr/lib/python2.4/site-packages/django/template/__init__.py", line 579, in resolve
    obj = func(obj, *arg_vals)

  File "/var/www/django_ietf/web/ietf/idtracker/templatetags/ietf_filters.py", line 29, in parse_email_list
    addrs = re.split(", ?", value)

  File "/usr/lib/python2.4/sre.py", line 157, in split
    return _compile(pattern, 0).split(string, maxsplit)

TypeError: expected string or buffer


<ModPythonRequest
path:/liaison/337/,
GET:<MultiValueDict: {}>,
POST:<MultiValueDict: {}>,
COOKIES:{},
META:{'AUTH_TYPE': None,
 'CONTENT_LENGTH': 0L,
 'CONTENT_TYPE': None,
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, */*',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'ja-JP',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_HOST': 'datatracker.ietf.org',
 'HTTP_UA_CPU': 'x86',
 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; istb 702; Intelligent MailBook; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)',
 'PATH_INFO': '/337/',
 'PATH_TRANSLATED': None,
 'QUERY_STRING': None,
 'REMOTE_ADDR': '124.86.48.190',
 'REMOTE_HOST': None,
 'REMOTE_IDENT': None,
 'REMOTE_USER': None,
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': None,
 'SERVER_NAME': 'datatracker.ietf.org',
 'SERVER_PORT': 0,
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'mod_python'}>

Issue migrated from trac:182 at 2022-03-04 00:45:36 +0000

@ietf-svn-bot
Copy link
Author

@[email protected] changed status from new to assigned

@ietf-svn-bot
Copy link
Author

@[email protected] commented


Fixed in [].

[] added pass-through of non-string values for parse_email_list() and make_one_per_line().

It is possible that one should handle the cases which are now passed through differently:

  • Render None as "" ?
  • Flatten lists ?
  • Render non-string list elements, and other non-string args using str() ?

Opening ticket #184 to raise these questions generally.

@ietf-svn-bot
Copy link
Author

@[email protected] changed status from assigned to closed

@ietf-svn-bot
Copy link
Author

@[email protected] changed resolution from `` to fixed

@ietf-svn-bot
Copy link
Author

@[email protected] commented


Fixed in d6f2896

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant