{"action":"created","issue":{"url":"https://api.github.com/repos/claroline/Distribution/issues/1419","repository_url":"https://api.github.com/repos/claroline/Distribution","labels_url":"https://api.github.com/repos/claroline/Distribution/issues/1419/labels{/name}","comments_url":"https://api.github.com/repos/claroline/Distribution/issues/1419/comments","events_url":"https://api.github.com/repos/claroline/Distribution/issues/1419/events","html_url":"https://github.com/claroline/Distribution/issues/1419","id":183257100,"number":1419,"title":"user management is well broken : csv import deletes users, csv update is bugged, user update  broken","user":{"login":"CPASimUSante","id":14015697,"avatar_url":"https://avatars.githubusercontent.com/u/14015697?v=3","gravatar_id":"","url":"https://api.github.com/users/CPASimUSante","html_url":"https://github.com/CPASimUSante","followers_url":"https://api.github.com/users/CPASimUSante/followers","following_url":"https://api.github.com/users/CPASimUSante/following{/other_user}","gists_url":"https://api.github.com/users/CPASimUSante/gists{/gist_id}","starred_url":"https://api.github.com/users/CPASimUSante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPASimUSante/subscriptions","organizations_url":"https://api.github.com/users/CPASimUSante/orgs","repos_url":"https://api.github.com/users/CPASimUSante/repos","events_url":"https://api.github.com/users/CPASimUSante/events{/privacy}","received_events_url":"https://api.github.com/users/CPASimUSante/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/claroline/Distribution/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/claroline/Distribution/labels/CoreBundle","name":"CoreBundle","color":"fbca04"},{"url":"https://api.github.com/repos/claroline/Distribution/labels/urgent","name":"urgent","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false},"assignees":[{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/claroline/Distribution/milestones/6","html_url":"https://github.com/claroline/Distribution/milestones/16.12","labels_url":"https://api.github.com/repos/claroline/Distribution/milestones/6/labels","id":1859209,"number":6,"title":"16.12","description":"","creator":{"login":"LaurentGruber","id":5804394,"avatar_url":"https://avatars.githubusercontent.com/u/5804394?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGruber","html_url":"https://github.com/LaurentGruber","followers_url":"https://api.github.com/users/LaurentGruber/followers","following_url":"https://api.github.com/users/LaurentGruber/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGruber/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGruber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGruber/subscriptions","organizations_url":"https://api.github.com/users/LaurentGruber/orgs","repos_url":"https://api.github.com/users/LaurentGruber/repos","events_url":"https://api.github.com/users/LaurentGruber/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGruber/received_events","type":"User","site_admin":false},"open_issues":155,"closed_issues":1,"state":"open","created_at":"2016-07-01T08:45:59Z","updated_at":"2016-10-17T14:28:00Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-10-16T09:13:53Z","updated_at":"2016-10-17T14:28:00Z","closed_at":"2016-10-17T14:28:00Z","body":"| Q             | A\r\n| ------------- | ---\r\n| Bug report?   | yes\r\n| Version?      | master\r\n\r\n- [ ]  In a new installation (i tested also on a travis instance), i created a admin user. Then as the admin (/admin/users/import) I import a list of users :\r\n\r\n- i have a list of 5 users, \r\n- i choose \"Creation only\" (no other options checked)\r\n- and click OK\r\n\r\n=> my admin is overwritten with the last user info and all the other user are not created!\r\n\r\nAnd a also tried the \"create and update\" option : i have also a error : \r\n`Notice: Undefined offset: 5`  : \r\n\r\n```\r\nin vendor/claroline/distribution/main/core/Controller/Administration/UsersController.php at line 316   -\r\n                        $datas = str_getcsv($line, ';');\r\n                        $username = $datas[2];\r\n                        $email = $datas[4];\r\n                        $code = $datas[5];\r\n                        $existingUser = $this->userManager->getUserByUsernameOrMailOrCode(\r\n                            $username,\r\n                            $email,\r\n```\r\nit seems the code is mandatory where it shouldn't\r\n\r\n- [ ]  the command seems broken also : \r\n`php app/console claroline:users:load`  and i set the path.\r\nIt seems to do the same `XXX (XXX) being updated`\r\nbut not created\r\n\r\n- [ ] the edit seems also problematic : (profile/profile/edit) i change first name, last name, username, administrative code and i have :\r\n```\r\nCatchable Fatal Error: Argument 1 passed to Claroline\\CoreBundle\\Manager\\RoleManager::renameUserRole() must be an instance of Claroline\\CoreBundle\\Entity\\Role, null given, called in /home/user/www/claro-master/Claroline/vendor/claroline/distribution/main/core/Controller/ProfileController.php on line 281 and defined\r\n500 Internal Server Error - ContextErrorException\r\n```"},"comment":{"url":"https://api.github.com/repos/claroline/Distribution/issues/comments/254223237","html_url":"https://github.com/claroline/Distribution/issues/1419#issuecomment-254223237","issue_url":"https://api.github.com/repos/claroline/Distribution/issues/1419","id":254223237,"user":{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T14:28:00Z","updated_at":"2016-10-17T14:28:00Z","body":"Fixed by #1421 "}}
{"actor":{"display_login":"ngodfraind"}}