MultipleObjects error when recommending review
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
New
|
Undecided
|
Unassigned | ||
piston-mini-client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
We're seeing numerous oopses each day on reviews.ubuntu.com for posts to (for example) /reviews/
with tracebacks like: https:/
We lose the original trackback because a second exception is recorded while piston-miniclient tries to log the error, but there's enough info to be certain that the issue is in reviewsapp.
{{{
usefulness, created = Usefulness.
}}}
The MultipleObjects
description: | updated |
tags: | added: oops |
The software center spec doesn't provide any reason for multiple recommendations against the same review. In fact, we built the client to keep track of usefulness submitted and hide the yes/no buttons if the user has already submitted usefulness for that review.
But it was implemented in Natty with only a local cache which is updated on submit of usefulness, which means it is not perfect. For Oneiric, I've already re-written it to retrieve the usefulness votes from the server for the currently logged in user so it should be more reliable.
In any event, the server should probably stop multiples from being possible.