Server error from /new on non en-US portal

VERIFIED DUPLICATE of bug 605617

Status

support.mozilla.org
Knowledge Base Software
VERIFIED DUPLICATE of bug 605617
7 years ago
7 years ago

People

(Reporter: rbillings, Assigned: paulc)

Tracking

unspecified

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
If a user tries to create an article created in any portal outside of the US- a server error is generated.

1) https://master.support.mozilla.com/k/fr/kb/new
2) add article data > submit


error:
 File "/usr/lib/python2.6/site-packages/jinja2/filters.py", line 374, in do_truncate
    if len(s) <= length:

TypeError: object of type 'long' has no len()


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'SSID': 'AwBcFykAAAgA81WJTFR_CAEMuf1LBAAAAAAAAAAAAAAAAAAPwo9MAAAM_v__AAAAAAA5AAAABAAAAA',
 'SSID_SUMO': 'AwA5FCkIAAAAwEVsTDmwAQFQ8epLIgBq4pdMIpB9TJZwv0xh0r1MBwAyAAAAwgAAAAMzAAAA6attTA',
 'SSRT': 'U8OPTAE',
 'SUMOloggedin': 'true',
 'SUMOv1': 'dininijas4aisqrkaadj72bdj5',
 'WT_FPC': 'id=63.245.220.240-43194256.30077239:lv=1287614725249:ss=1287611227843',
 '__utma': '92405663.269547314.1281999193.1281999193.1282259185.2',
 '__utmz': '92405663.1281999193.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)',
 'csrftoken': '5ab5f120e6d288110e67f092c6b61904',
 's_vi': '',
 'sessionid': 'd8bd186018079df6a0c0a44542bfea0b',
 'wtspl': '720071'},
META:{'CSRF_COOKIE': '5ab5f120e6d288110e67f092c6b61904',
 'DOCUMENT_ROOT': '/data/www/master.support.mozilla.com/webroot',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': 'on',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,fr-FR;q=0.7,fr;q=0.5,en-us;q=0.3,en;q=0.2',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'WT_FPC=id=63.245.220.240-43194256.30077239:lv=1287614725249:ss=1287611227843; s_vi=[CS]v1|25F4D05185010C40-6000010E800008C5[CE]; SSID_SUMO=AwA5FCkIAAAAwEVsTDmwAQFQ8epLIgBq4pdMIpB9TJZwv0xh0r1MBwAyAAAAwgAAAAMzAAAA6attTA; SSID=AwBcFykAAAgA81WJTFR_CAEMuf1LBAAAAAAAAAAAAAAAAAAPwo9MAAAM_v__AAAAAAA5AAAABAAAAA; __utma=92405663.269547314.1281999193.1281999193.1282259185.2; __utmz=92405663.1281999193.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); SSRT=YdK9TAA; SSRT=U8OPTAE; csrftoken=5ab5f120e6d288110e67f092c6b61904; wtspl=720071; SUMOv1=dininijas4aisqrkaadj72bdj5; SUMOloggedin=true; sessionid=d8bd186018079df6a0c0a44542bfea0b',
 'HTTP_HOST': 'master.support.mozilla.com',
 'HTTP_KEEP_ALIVE': '115',
 'HTTP_REFERER': 'https://master.support.mozilla.com/fr/kb/Guide%20de%20style',
 'HTTP_SSLCLIENTCERTSTATUS': 'NoClientCert',
 'HTTP_SSLCLIENTCIPHER': 'SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128',
 'HTTP_SSLSESSIONID': 'BBF172BAF557B9254A9B57CFBAB59D543D59E50BA6239A1503D311D675141E21',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10',
 'HTTP_X_CLUSTER_CLIENT_IP': '63.245.220.240',
 'HTTP_X_FORWARDED_FOR': '63.245.220.240',
 'PATH_INFO': u'/en-US/kb/Style Guide/edit',
 'PATH_TRANSLATED': 'redirect:/k/en-US/kb/Style Guide/edit/kb/Style Guide/edit',
 'QUERY_STRING': '',
 'REDIRECT_HTTPS': 'on',
 'REDIRECT_SCRIPT_URI': 'https://master.support.mozilla.com/en-US/kb/Style Guide/edit',
 'REDIRECT_SCRIPT_URL': '/en-US/kb/Style Guide/edit',
 'REDIRECT_STATUS': '200',
 'REDIRECT_URL': '/en-US/kb/Style Guide/edit',
 'REMOTE_ADDR': '10.2.10.101',
 'REMOTE_PORT': '41360',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/en-US/kb/Style%20Guide/edit',
 'SCRIPT_FILENAME': '/data/www/master.support.mozilla.com/kitsune/wsgi/kitsune.wsgi',
 'SCRIPT_NAME': u'',
 'SCRIPT_URI': 'https://master.support.mozilla.com/en-US/kb/Style Guide/edit',
 'SCRIPT_URL': '/en-US/kb/Style Guide/edit',
 'SERVER_ADDR': '10.2.74.53',
 'SERVER_ADMIN': 'root@localhost',
 'SERVER_NAME': 'master.support.mozilla.com',
 'SERVER_PORT': '443',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.3 (Red Hat) Server at master.support.mozilla.com Port 443</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.3 (Red Hat)',
 'mod_wsgi.application_group': 'master.support.mozilla.com|/k',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '81',
 'mod_wsgi.process_group': 'kitsune-ssl',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 2),
 'platform.name': 'dm-app-sumo01.mozilla.org',
 'wsgi.errors': <mod_wsgi.Log object at 0x2ad8c002cb30>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x2ad8be7bb198>,
 'wsgi.input': <mod_wsgi.Input object at 0x2ad8bff27530>,
 'wsgi.loaded': datetime.datetime(2010, 10, 20, 16, 47, 58, 142142),
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 1)}>
(Assignee)

Comment 1

7 years ago
Fixing this as part of bug 586478.
Assignee: nobody → paulc
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 605617
(Reporter)

Updated

7 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.