[ckan-dev] File Upload Users

Michael Reichart michael.reichart at gmail.com
Wed Oct 10 13:50:31 UTC 2012


Hi,

we're running 1.7.1
We've implemented some kind of single-sign-on with a new repoze.who plugin.

When trying to upload a file as normal user (admin or editor) following
message appears in the log, but the message: Checking upload
permissions ... stays
in the browser

[Wed Oct 10 15:44:25 2012] [error] 2012-10-10 15:44:25,803 DEBUG
[pylons.controllers.util] Aborting request, status: 401, detail: '',
headers: None, comment: None
[Wed Oct 10 15:44:25 2012] [error] 2012-10-10 15:44:25,804 DEBUG
[pylons.controllers.core] 'auth_form' method raised HTTPException:
HTTPUnauthorized (code: 401)
[Wed Oct 10 15:44:25 2012] [error] Traceback (most recent call last):
[Wed Oct 10 15:44:25 2012] [error]   File
"/products/ckan/pyenv/lib/python2.6/site-packages/pylons/controllers/core.py",
line 107, in _inspect_call
[Wed Oct 10 15:44:25 2012] [error]     result = self._perform_call(func,
args)
[Wed Oct 10 15:44:25 2012] [error]   File
"/products/ckan/pyenv/lib/python2.6/site-packages/pylons/controllers/core.py",
line 60, in _perform_call
[Wed Oct 10 15:44:25 2012] [error]     return func(**args)
[Wed Oct 10 15:44:25 2012] [error]   File "<string>", line 2, in auth_form
[Wed Oct 10 15:44:25 2012] [error]   File
"/products/ckan/pyenv/lib/python2.6/site-packages/ckan/lib/jsonp.py", line
26, in jsonpify
[Wed Oct 10 15:44:25 2012] [error]     data = func(*args, **kwargs)
[Wed Oct 10 15:44:25 2012] [error]   File
"/products/ckan/pyenv/lib/python2.6/site-packages/ckan/controllers/storage.py",
line 408, in auth_form
[Wed Oct 10 15:44:25 2012] [error]     authorize(method, bucket, label,
c.userobj, self.ofs)
[Wed Oct 10 15:44:25 2012] [error]   File
"/products/ckan/pyenv/lib/python2.6/site-packages/ckan/controllers/storage.py",
line 99, in authorize
[Wed Oct 10 15:44:25 2012] [error]     abort(401)
[Wed Oct 10 15:44:25 2012] [error]   File
"/products/ckan/pyenv/lib/python2.6/site-packages/ckan/lib/base.py", line
48, in abort
[Wed Oct 10 15:44:25 2012] [error]     comment=comment)
[Wed Oct 10 15:44:25 2012] [error]   File
"/products/ckan/pyenv/lib/python2.6/site-packages/pylons/controllers/util.py",
line 196, in abort
[Wed Oct 10 15:44:25 2012] [error]     raise exc.exception
[Wed Oct 10 15:44:25 2012] [error] HTTPUnauthorized: This server could not
verify that you are authorized to access the document you requested. Either
you supplied the wrong credentials (e.g., bad password), or your browser
does not understand how to supply the credentials required.
[Wed Oct 10 15:44:25 2012] [error] 2012-10-10 15:44:25,804 DEBUG
[pylons.controllers.core] Controller returned a Response object, merging it
with pylons.response

When I try to abort and refresh the page, the user is logged out.

Thanks,
michi


2012/10/10 Sean Hammond <sean.hammond at okfn.org>

> > I've got the fileupload running (fortunately ;-) and everythings works as
> > expected as long as I am logged in as sysadmin.
> >
> > But if I try to upload a file as admin or editor of an organization - it
> > fails with "Failed to get credentials for storage upload. Upload cannot
> > proceed" -
>
> Hey, this is not expected behaviour. All users should be able to upload
> files, whether they are normal users, sysadmins, or organization
> members, as long as they're allowed to edit the dataset the file is
> being uploaded to.
>
> Which version of CKAN are you running? And is there a traceback or other
> error detail in your terminal or log file?
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20121010/ff41edef/attachment-0001.html>


More information about the ckan-dev mailing list