Ticket #1093 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

500 errors on GET to api/rest/licenses

Reported by: dread Owned by: dread
Priority: major Milestone: ckan-v1.4-sprint-6
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

CKAN gets its license list from a license service, which can be a local file, but is often the http://licenses.opendefinition.org/2.0/ckan_original server. This server is currently flakey, but I think we only request the list on start up. The problem is we query it much more often than required. It is queried for every request to api/rest/licenses, and we are returning lots of 500 errors when the license server is timing out.

Change History

comment:1 Changed 3 years ago by dread

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by this API call use the existing license cache. Done in cset:a95888ea39be on release-v1.3.4

Note: See TracTickets for help on using tickets.