Closed millingw closed 9 months ago
Actually, this is not a bug - please ignore and close. We were incorrectly using the resource_url_upload preset from ckanext-scheming to represent an external url, but what this actually does is generate a file upload form, whereas we just wanted to enter a url as text.
Glad you figured it out @millingw
CKAN version
2.10
Describe the bug
I'm using CKAN 2.10 with a custom schema (attached) defined using the ckanext-scheming extension. Creating datasets and resources via the action api with a REST client works without any issues. However, trying to add new resources via the CKAN GUI, or edit existing resources, results in an error. I'm pretty sure we didn't see this happen with 2.9.
Digging around, I see the following in views.py at line 192 which is where the crash appears to be:
data.update(clean_dict( dict_fns.unflatten(tuplize_dict(parse_params(request.files))) ))
When we create resources, we don't upload any files with the resource. Instead, we have links to external storage systems.
eidf-dcat-ap.json
Steps to reproduce
With custom schema and ckanext-scheming installed, trying to add or edit a resource results in above error
Expected behavior
A clear and concise description of what you expected to happen.
Additional details
If possible, please provide the full stack trace of the error raised, or add screenshots to help explain your problem.