Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview fails on private datastore resources #1221

Merged
merged 1 commit into from Oct 14, 2013

Conversation

kindly
Copy link
Contributor

@kindly kindly commented Sep 30, 2013

When trying to preview a resource that belongs to a private dataset, the loading animation goes on forever. The request to datastore_search confusingly returns a 409. After some digging, it seems to be raised here:

https://github.com/okfn/ckan/blob/master/ckanext/datastore/db.py#L1126

Basically the user has no permission over the table. If that's the case, a better exception should be shown in the frontend.

(I would expect that logged in users could access the datastore resource but that's another matter)

@ghost ghost assigned amercader Oct 1, 2013
@amercader amercader merged commit c8a483a into master Oct 14, 2013
@smotornyuk smotornyuk deleted the 1221-preview-fails-private-datasets branch December 19, 2018 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants