[ECODP-dev] ODP-295 - user creation issue

Bert Van Nuffelen bert.van.nuffelen at tenforce.com
Thu Oct 3 13:47:48 UTC 2013


Hi John,

can you also investigate the ODP-295?

The problem description is:"

In production 00.09.03, André created the user SJuser, but the login does
not work. After some investigations, we found that the login works with
sjusr.

It seems that the script no longer respects the capital letters in the
username and replaces them automatically by lowercase letters.

André tried to delete the user to recreate it, you can see that the system
answers with "sjusr" (lowercase) while André puts "SJusr" (uppercase):

bash-4.1$ ./ckan_delete_user.sh SJusr
Error: user "SJusr" not found!


bash-4.1$ ./ckan_create_publ_user.sh SJusr sj
bcab93ae-080e-4e2f-8f9b-42cb65145f7b http://opsrv529:8008
User "sjusr" already found
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
112 1014 101 1014 0 107 6609 697 --:--:-- --:--:-- --:--:-- 6006
{"help": "Make an object (e.g. a user, dataset or group) a member of a
group.\n\n If the object is already a member of the group then the capacity
of the\n membership will be updated.\n\n You must be authorized to edit the
group.\n\n :param id: the id or name of the group to add the object to\n
:type id: string\n :param object: the id or name of the object to add\n
:type object: string\n :param object_type: the type of the object being
added, e.g. ``'package'``\n or ``'user'``\n :type object_type: string\n
:param capacity: the capacity of the membership\n :type capacity:
string\n\n :returns: the newly created (or updated) membership\n :rtype:
dictionary\n\n ", "success": true, "result": {"capacity": "editor",
"state": "active", "table_id": "85fd5e25-7e9b-4f01-9ee4-6cfd4fc2720d",
"table_name": "user", "revision_id":
"0f13b56f-a851-40a7-88f2-4aaa2e9ad2d1", "group_id":
"f25dc1f7-f5bc-4347-9056-78ea5933611a", "id":
"71282034-426d-436b-83ea-c1ffde3ca31e"}}


bash-4.1$ ./ckan_delete_user.sh SJusr
Error: user "SJusr" not found!

"

kind regards,


-- 
Bert Van Nuffelen

Semantic Technologies Software Architect at TenForce
www.tenforce.be

Bert.Van.Nuffelen at tenforce.com
Office: +32 (0)16 31 48 60
Mobile:+32 479 06 24 26
skype: bert.van.nuffelen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20131003/389d0c2f/attachment.html>


More information about the ecodp-dev mailing list