EnviDat / ckanext-restricted

CKAN extension for restricting access to resources
GNU Affero General Public License v3.0
7 stars 26 forks source link

Enabling this extension causes an internal server error when updating groups through the UI. #11

Closed jstp959 closed 4 years ago

jstp959 commented 5 years ago

Hello,

I am running CKAN 2.7, and in my .ini file I only specify the following plugins: ckan.plugins = stats text_view image_view recline_view scheming_datasets composite repeating restricted

When I go to edit a group (/group/edit/myGroup), and then click the "Update Group" button, I get an internal server error with the following traceback: Capture

That obj tuple represents a tag named "Opportunities", and the first element in the tuple is its ID. I'm not sure why a tag object would pass through the restricted_package_show function?

This only occurs when I have the restricted extension enabled, and removing it causes the issue to go away.

Any assistance would be greatly appreciated!

espona commented 5 years ago

Unfortunately I cannot reproduce the error. Are you sure the extension is properly installed and configured? Does it work well for the resources and datasets?

jstp959 commented 5 years ago

Thanks for the response, it does work well for the resources and datasets for some reason, and it only happens for some groups. I've also discovered this happens when I view the dashboard

MandanaMoshref commented 4 years ago

@jstp959 I had the same problem/error in loading the start page. It was resolved by rebuilding the Solr index. Try this. I believe it solves your problem