reference https://github.com/okfn/ckan/issues/1188