crashed when submiting a request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
Fix Released
|
Medium
|
Michael Nelson |
Bug Description
It just crashed for me with the following BT when submitting a review for 7zip:
Piston/0.2.2 (Django 1.1.1) crash report:
Traceback (most recent call last):
File "/usr/lib/
if not form.is_valid():
File "/usr/lib/
return self.is_bound and not bool(self.errors)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
package_
File "/usr/lib/
return self.get_
File "/usr/lib/
% (self.model.
MultipleObjects
Changed in rnr-server: | |
importance: | Undecided → Medium |
tags: | added: trivial |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
Changed in rnr-server: | |
milestone: | none → 10.12 |
status: | Fix Committed → Fix Released |
I just checked via the admin interface and the two software items of 7zip were created at the same time. Looking at the code, AFAICS, this is because of a race condition:
* If software item does not exist locally
1) Check with LP to ensure it is exists in repository (takes time)
2) Create software item
If (1) above is taking a while, and the user resubmits the review via the SC-client, then both requests can end up creating the software item.
If this is the case, we can fix this trivially in the server. The issue is that the Software Center client correctly disables the Publish button for a review while it is talking with the server, so the above reproduction steps would only be possible if that is a recent change since this bug was created.