-
Notifications
You must be signed in to change notification settings - Fork 204
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
harvest actions NotAuthorized #126
Comments
Also having this issue, but only because I deleted the default user... |
@eradan Was this on a fresh CKAN install? Despite restoring my default user, and despite setting a different 'ckan_site_user' in the config (not even sure that's intended/desired/supported), I'm still having the same problem. |
I seem to have solved my issue, I'm not entirely sure how, but mainly by not trying to create new organizations in my harvester has solved it for now |
This issue is 6 months old and no response from the OP, so closing. |
Can you reopen? Having this problem again - upgrading CKAN to 2.6 and latest ckanext-harvest makes no difference. I'm clueless... |
So the site user exists and is a sysadmin - good. So at what point is it getting rejected inside the check_access method? |
@mattfullerton is this still an issue? |
Very much so, wanted to get back to this and follow up with @davidread |
news ? |
@piersoft are you suffering this too? If so, at what point is it getting rejected inside the check_access method? |
yes.
now it works with:
if not logic_authorization['success']:
msg = logic_authorization.get('msg', '')
* ##raise NotAuthorized(msg)*
*if not context.get('auth_user_obj'): raise NotAuthorized(msg)*
*into */usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py
2017-04-04 10:45 GMT+02:00 David Read <notifications@github.com>:
… @piersoft <https://github.com/piersoft> are you suffering this too? If
so, at what point is it getting rejected inside the check_access method?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFzRuv0tUSuW0FivX451DR03aDO4JkXNks5rsgMbgaJpZM4DcJl4>
.
|
Ok, great, now dig into why it is not authorized - this is occurs a couple of lines before in the call to
|
I found my problem... the "default" user had state "deleted". @piersoft @eradan Did you ever get this problem solved for yourselves? In the CKAN DB you can do this to check on the user: And I fixed it like this: |
@mattfullerton 's answer is correct, but user name might be different if you have changed the site_id in the configuration file. site_id value is your default user name.
|
Hello,
I installed the ckan-harvest plugin, stable branch.
Any command from CLI returns this error:
The error occurs even when I ask for the source list, not only on the "run" command.
I debbuged the code. The user that is being retrievied from the get_site_user method is "default", which is a CKAN sysadm user.
The text was updated successfully, but these errors were encountered: