[master] "APIError: 500" when submitting review on utf8 appnames

Bug #711297 reported by Michael Terry
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
High
Michael Vogt
Natty
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: software-center

I tried to submit a review for deja-dup and I got this the following traceback in the console. This appears to be very similar to bug 709024, but I don't get the encoding error. Nonetheless, perhaps this is still due to encoding errors somewhere in the pipeline for the phrase "Déjà Dup"?

ERROR:root:submit_review
Traceback (most recent call last):
  File "/usr/share/software-center/submit_review.py", line 246, in _submit_reviews_if_pending
    res = self.rnrclient.submit_review(review=piston_review)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/validators.py", line 47, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 16, in wrapper
    body = func(*args, **kwargs)
  File "/usr/share/software-center/softwarecenter/backend/rnrclient_pristine.py", line 72, in submit_review
    content_type='application/json')
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 180, in _post
    headers=headers, scheme=scheme)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/__init__.py", line 205, in _request
    body = handler.handle(response, body)
  File "/usr/lib/python2.7/dist-packages/piston_mini_client/failhandlers.py", line 54, in handle
    raise APIError('%s: %s' % (response['status'], response), body)
APIError: 500: {'status': '500', 'via': '1.1 reviews.staging.ubuntu.com', 'transfer-encoding': 'chunked', 'vary': 'Authorization,Accept-Encoding', 'server': 'Apache/2.2.14 (Ubuntu)', 'connection': 'close', 'date': 'Tue, 01 Feb 2011 15:08:50 GMT', 'content-type': 'text/html; charset=utf-8'}

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: software-center 3.1.15 [modified: usr/share/software-center/softwarecenter/backend/rnrclient_pristine.py usr/share/software-center/softwarecenter/db/reviews.py]
ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2
Uname: Linux 2.6.38-1-generic x86_64
Architecture: amd64
Date: Tue Feb 1 10:12:36 2011
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_GB.utf8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: software-center

Revision history for this message
Michael Terry (mterry) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

This is most likely bug #714582 in the rnr-server. Actually submiting a review should work with the current server rollout but getting it back does not (but should with the next rollout).

Changed in software-center (Ubuntu):
status: New → Confirmed
importance: Undecided → High
summary: - "APIError: 500" when submitting review
+ [master] "APIError: 500" when submitting review
summary: - [master] "APIError: 500" when submitting review
+ [master] "APIError: 500" when submitting review on utf8 appnames
Martin Pitt (pitti)
Changed in software-center (Ubuntu Natty):
assignee: nobody → Michael Vogt (mvo)
Michael Vogt (mvo)
Changed in software-center (Ubuntu Natty):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.