-
Notifications
You must be signed in to change notification settings - Fork 38
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
Cannot view or edit private datasets as authorised user #84
Comments
@SaintlyVi this looks similar to ckan/ckan#3176 - if your CKAN instance is older than this bug fix (end Aug 2016 - I suspect 2.5 would be affected and 2.6 might be fine), it could be a CKAN problem, rather than a ckanr one. |
Thanks for the comment @florianm. I upgraded to 2.6 at the beginning of the month specifically because I wanted to view private datasets. I've also tested with the python API, in which I can access private datasets without a problem. So I suspect that the problem lies with ckanr, unless there's a specific convention/setting in R that I haven't observed. |
@SaintlyVi thanks for the clarification - bummer, this needs some investigating, paging @sckott - we're in the middle of upgrading our datacats/Docker based CKAN instances (including data-demo.dpaw.wa.gov.au which is used as a test server for ckanR), so not sure how much available time and servers not on fire I've got on my end. |
@SaintlyVi thanks for raising this issue, and offering to chip in if you haven't already, fork and pull down the repo, make a feature branch. Then look into internals of |
@SaintlyVi any thoughts? |
Not familiar (yet) with the git pull/push system... but I guess this should work... I added the ´key´ argument to the function. So when calling the function it should be: ´package_show(id = 'xxxxxxxxxxxxxxxxxxxx', key = get_default_key())´
|
good idea @juusotam - thanks |
@juusotam opened new issue for your |
Thanks for a great ckanr package. I love it. I'm running ckan 2.6.0 and have run into the following issue:
ckanr_setup('my-site', key = 'apikey')
: works fine; correct details displayed withckanr_settings()
package_create(id='my_package')
: works finepackage_show('my_package')
: works finepackage_patch(list(private='true'), 'my_package')
: works fine and changes the dataset to privatepackage_show('my_package')
now returns Error: 403, access denied.Similarly, if I use
user_show('admin', include_datasets=T)
as admin user, I only see public datasets even though the documentation states that I ought to be able to view private ones too if I'm the authorised user. When running the same queries with the python API, I don't have a problem.Happy to fork and suggest a fix if you tell me where to look. Otherwise would appreciate hearing where I'm going wrong.
Thanks! Wiebke
The text was updated successfully, but these errors were encountered: