{"action":"created","issue":{"url":"https://api.github.com/repos/YunoHost-Apps/freshrss_ynh/issues/58","repository_url":"https://api.github.com/repos/YunoHost-Apps/freshrss_ynh","labels_url":"https://api.github.com/repos/YunoHost-Apps/freshrss_ynh/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/YunoHost-Apps/freshrss_ynh/issues/58/comments","events_url":"https://api.github.com/repos/YunoHost-Apps/freshrss_ynh/issues/58/events","html_url":"https://github.com/YunoHost-Apps/freshrss_ynh/issues/58","id":392381505,"node_id":"MDU6SXNzdWUzOTIzODE1MDU=","number":58,"title":"Weird hook on 'post_app_addaccess'","user":{"login":"buzuck","id":8177830,"node_id":"MDQ6VXNlcjgxNzc4MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/8177830?v=4","gravatar_id":"","url":"https://api.github.com/users/buzuck","html_url":"https://github.com/buzuck","followers_url":"https://api.github.com/users/buzuck/followers","following_url":"https://api.github.com/users/buzuck/following{/other_user}","gists_url":"https://api.github.com/users/buzuck/gists{/gist_id}","starred_url":"https://api.github.com/users/buzuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzuck/subscriptions","organizations_url":"https://api.github.com/users/buzuck/orgs","repos_url":"https://api.github.com/users/buzuck/repos","events_url":"https://api.github.com/users/buzuck/events{/privacy}","received_events_url":"https://api.github.com/users/buzuck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-18T23:39:13Z","updated_at":"2019-01-04T17:00:38Z","closed_at":"2019-01-04T17:00:38Z","author_association":"NONE","body":"Hi,\r\n\r\nI got some weird warning from FreshRSS when modifying access rights for another app.\r\n\r\nFrom the debug log ([full log here](https://github.com/YunoHost-Apps/freshrss_ynh/files/2692649/freshrss.log)):\r\n```\r\n358  INFO processing action [31294.1]: yunohost.app.addaccess with args={'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7fde8b1f8550>, 'apps': ['rainloop'], 'users': ['fol']}\r\n368  DEBUG system hook folder not found for action 'post_app_addaccess' in /usr/share/yunohost/hooks/\r\n374  DEBUG Executing command 'sh -c YNH_STDINFO=/tmp/tmpYdD74J/stdinfo YNH_CWD=/etc/yunohost/hooks.d/post_app_addaccess BASH_XTRACEFD=7 /bin/bash -x \"./50-freshrss\" rainloop fol,helboy 7>&1'...\r\n374  DEBUG About to run the command '['sh', '-c', 'YNH_STDINFO=/tmp/tmpYdD74J/stdinfo YNH_CWD=/etc/yunohost/hooks.d/post_app_addaccess BASH_XTRACEFD=7 /bin/bash -x \"./50-freshrss\" rainloop fol,helboy 7>&1']'\r\n491  DEBUG + app=freshrss\r\n492  DEBUG + new_users=fol,helboy\r\n493  DEBUG + app_path=/var/www/freshrss\r\n```\r\nand at the end, the warning:\r\n```\r\n528  DEBUG + /var/www/freshrss/cli/create-user.php --user fol --language en --token token01 --no-default-feeds\r\n628  DEBUG + sudo chown -R www-data: /var/www/freshrss/data/users/fol/\r\n629  WARNING FreshRSS error: username already taken “fol”\r\n629  DEBUG + for myuser in $(echo \"$new_users\" | sed \"s/,/ /g\")\r\n629  DEBUG ++ ynh_string_random\r\n629  DEBUG ++ sed -n 's/\\(.\\{24\\}\\).*/\\1/p'\r\n```\r\n\r\nSorry, I did not had time to investigate further. Just wanted to report it while it is fresh in my head :)"},"comment":{"url":"https://api.github.com/repos/YunoHost-Apps/freshrss_ynh/issues/comments/451503198","html_url":"https://github.com/YunoHost-Apps/freshrss_ynh/issues/58#issuecomment-451503198","issue_url":"https://api.github.com/repos/YunoHost-Apps/freshrss_ynh/issues/58","id":451503198,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTUwMzE5OA==","user":{"login":"plopoyop","id":5174134,"node_id":"MDQ6VXNlcjUxNzQxMzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5174134?v=4","gravatar_id":"","url":"https://api.github.com/users/plopoyop","html_url":"https://github.com/plopoyop","followers_url":"https://api.github.com/users/plopoyop/followers","following_url":"https://api.github.com/users/plopoyop/following{/other_user}","gists_url":"https://api.github.com/users/plopoyop/gists{/gist_id}","starred_url":"https://api.github.com/users/plopoyop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plopoyop/subscriptions","organizations_url":"https://api.github.com/users/plopoyop/orgs","repos_url":"https://api.github.com/users/plopoyop/repos","events_url":"https://api.github.com/users/plopoyop/events{/privacy}","received_events_url":"https://api.github.com/users/plopoyop/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T17:00:38Z","updated_at":"2019-01-04T17:00:38Z","author_association":"MEMBER","body":"Should be fixed into : https://github.com/YunoHost-Apps/freshrss_ynh/commit/c25021195248f9cf0ba875c33cc000fc5a592963"}}
{"actor":{"display_login":"plopoyop"}}