I am not sure I understand the problem. Can you clarify a few points:
Is bioblend letting users associate roles with data libraries that
they shouldn't be able to and the operation is succeeding -or- are you
trying to add roles and the operation is failing?
If the API is producing an error message can you share that: in
particular this code is probably resulting in an error or some kind?
# Check to see if the user selected roles to associate
with the DATASET_ACCESS permission
# on the dataset that would cause accessibility issues.
vars = dict( DATASET_ACCESS_in=roles )
permissions, in_roles, error, message = \
trans, library.id, cntrller, library=True, **vars )
if cntrller == 'api':
return 400, message
Has your institute made modifications Galaxy to enforce this
constraint - ("it can't be possible that any user may upload any other
user's data in their Galaxy Data library")? Also is the thing you are
trying to do something that is working through the web ui but not
through the API, or have you only tried through the API?
On Fri, Jan 3, 2014 at 5:36 AM, Olivia Doppelt
> Hello to all,
> I'm trying to use the function "upload_file_from_server" from the galaxy
> libraries api of Bioblend.
> It's working correctly when i don't associate any role to the arguments.
> However, in our architecture (Institut Pasteur, Paris) it can't be possible
> that any user may upload any other user's data in their Galaxy Data library.
> Thus, it is how ""upload_file_from_server" is working at the moment.
> As I understand the problem, it doesn't come from Bioblend itself, as all
> arguments (as well as roles) are well transmitted on the server side.
> could somebody help me with that ?
> Happy new Year !!! and Have a nice day,
> Olivia Doppelt-Azeroual, PhD
> Tel: 92 15
> CIB - Institut Pasteur
> Please keep all replies on the list by using "reply all"
> in your mail client. To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
> To search Galaxy mailing lists use the unified search at:
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
To search Galaxy mailing lists use the unified search at: