Ticket #312 (closed defect: invalid)

Opened 4 years ago

Last modified 3 years ago

Race condition creating PackageRating

Reported by: dread Owned by: rgrp
Priority: awaiting triage Milestone:
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

On ckan.net there are a few packages which cause a 403 exception when you try to rate them: http://www.ckan.net/package/rate/coins-data?rating=3

The exception is occuring here: ckan.rating:39 in set_rating rating_obj = rating_query.one() InvalidRequestError?: Multiple rows returned for one()

It looks like this package got rated twice in quick succession, creating two similar PackageRating? objects. This race condition needs to be solved and these particular rating objects repaired.

Change History

comment:1 Changed 3 years ago by thejimmyg

  • Repository set to ckan
  • Status changed from new to closed
  • Theme set to none
  • Resolution set to invalid

This ticket is more than 6 months old so closing in line with our current ticketing policy.

Note: See TracTickets for help on using tickets.