Skip to content

Project Dashboard accepts only ASCII characters for project name #1314

@nictuku

Description

@nictuku
What steps will reproduce the problem?
1. Go to http://godashboard.appspot.com/project
2. Input a project name containing a non-ascii character, like "Já Vai Tarde"
3. Submit.

What is the expected output?

A 200 response code from the server.

What do you see instead?

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 513, in __call__
    handler.post(*groups)
  File "/base/data/home/apps/godashboard/5.343786756959519146/package.py", line 240, in post
    body=template.render(path, {'project': p}))
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 81, in render
    return t.render(Context(template_dict))
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 121, in wrap_render
    return orig_render(context)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 168, in render
    return self.nodelist.render(context)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 705, in render
    bits.append(self.render_node(node, context))
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 718, in render_node
    return(node.render(context))
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 767, in render
    output = self.filter_expression.resolve(context)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 579, in resolve
    obj = func(obj, *arg_vals)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/defaultfilters.py", line 36, in _dec
    return func(*args, **kwargs)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/defaultfilters.py", line 189, in urlencode
    return urllib.quote(value)
  File "/base/python_runtime/python_dist/lib/python2.5/urllib.py", line 1205, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\xe1'

Which compiler are you using (5g, 6g, 8g, gccgo)?

N/A

Which operating system are you using?

N/A

Which revision are you using?  (hg identify)

N/A

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions