{"action":"created","issue":{"url":"https://api.github.com/repos/GENI-NSF/geni-ch/issues/305","labels_url":"https://api.github.com/repos/GENI-NSF/geni-ch/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/GENI-NSF/geni-ch/issues/305/comments","events_url":"https://api.github.com/repos/GENI-NSF/geni-ch/issues/305/events","html_url":"https://github.com/GENI-NSF/geni-ch/issues/305","id":78386851,"number":305,"title":"PGCH accesses array elements that may be missing","user":{"login":"ahelsing","id":12136824,"avatar_url":"https://avatars.githubusercontent.com/u/12136824?v=3","gravatar_id":"","url":"https://api.github.com/users/ahelsing","html_url":"https://github.com/ahelsing","followers_url":"https://api.github.com/users/ahelsing/followers","following_url":"https://api.github.com/users/ahelsing/following{/other_user}","gists_url":"https://api.github.com/users/ahelsing/gists{/gist_id}","starred_url":"https://api.github.com/users/ahelsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahelsing/subscriptions","organizations_url":"https://api.github.com/users/ahelsing/orgs","repos_url":"https://api.github.com/users/ahelsing/repos","events_url":"https://api.github.com/users/ahelsing/events{/privacy}","received_events_url":"https://api.github.com/users/ahelsing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ahelsing","id":12136824,"avatar_url":"https://avatars.githubusercontent.com/u/12136824?v=3","gravatar_id":"","url":"https://api.github.com/users/ahelsing","html_url":"https://github.com/ahelsing","followers_url":"https://api.github.com/users/ahelsing/followers","following_url":"https://api.github.com/users/ahelsing/following{/other_user}","gists_url":"https://api.github.com/users/ahelsing/gists{/gist_id}","starred_url":"https://api.github.com/users/ahelsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahelsing/subscriptions","organizations_url":"https://api.github.com/users/ahelsing/orgs","repos_url":"https://api.github.com/users/ahelsing/repos","events_url":"https://api.github.com/users/ahelsing/events{/privacy}","received_events_url":"https://api.github.com/users/ahelsing/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GENI-NSF/geni-ch/milestones/12","html_url":"https://github.com/GENI-NSF/geni-ch/milestones/1.15","labels_url":"https://api.github.com/repos/GENI-NSF/geni-ch/milestones/12/labels","id":1119882,"number":12,"title":"1.15","description":null,"creator":{"login":"ahelsing","id":12136824,"avatar_url":"https://avatars.githubusercontent.com/u/12136824?v=3","gravatar_id":"","url":"https://api.github.com/users/ahelsing","html_url":"https://github.com/ahelsing","followers_url":"https://api.github.com/users/ahelsing/followers","following_url":"https://api.github.com/users/ahelsing/following{/other_user}","gists_url":"https://api.github.com/users/ahelsing/gists{/gist_id}","starred_url":"https://api.github.com/users/ahelsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahelsing/subscriptions","organizations_url":"https://api.github.com/users/ahelsing/orgs","repos_url":"https://api.github.com/users/ahelsing/repos","events_url":"https://api.github.com/users/ahelsing/events{/privacy}","received_events_url":"https://api.github.com/users/ahelsing/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2015-05-20T05:01:53Z","updated_at":"2015-05-20T05:58:06Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-20T05:58:06Z","updated_at":"2015-05-20T05:58:16Z","closed_at":null,"body":"Logs show:\r\n```\r\n06/05/2014 00:03:00:ERROR   :amsoil:[pgchv1] [SERVER] SERVER_ERROR (('_GENI_MEMBER_SSL_CERTIFICATE',))\r\n06/05/2014 00:03:00:ERROR   :amsoil:[pgchv1]   File \"/usr/share/geni-ch/chapi/AMsoil-gpo-0.3.2/src/plugins/pgch/PGCH.py\", line 71, in Resolve\r\n    args)\r\n\r\n  File \"/usr/share/geni-ch/chapi/AMsoil-gpo-0.3.2/src/plugins/pgch/PGCH.py\", line 361, in Resolve\r\n    member_gid = public_info['_GENI_MEMBER_SSL_CERTIFICATE']\r\n\r\n06/05/2014 00:03:00:INFO    :chapi:PGCH: ababu@semandex.net: Result from Resolve: {'output': \"[SERVER] SERVER_ERROR (('_GENI_MEMBER_SSL_CERTIFICATE',))\", 'code': 101, 'value': None}\r\n```\r\n\r\nThe code calls lookup_identifying_member_info and lookup_public_info, and then assumes that various fields are present in the return. In particular, it assumes it will find _GENI_MEMBER_SSL_CERTIFICATE. Apparently, that is not always true.\r\n\r\n\r\nWhile we're there, it looks like some of the return fields are populated with the wrong information.\r\n * 'uid' is set to 'member_uuid' but should be 'member_name' (the username)\r\n * 'name' is set to 'member_name' (the username) but should be (I think) the user's name (i.e. \"John Smith\")\n\n _Imported from trac ticket [#305](http://trac.gpolab.bbn.com/chapi/ticket/305),  created by ahelsing on 06-05-2014 at 09:30, last modified: 07-22-2014 at 16:55_\n"},"comment":{"url":"https://api.github.com/repos/GENI-NSF/geni-ch/issues/comments/103770692","html_url":"https://github.com/GENI-NSF/geni-ch/issues/305#issuecomment-103770692","issue_url":"https://api.github.com/repos/GENI-NSF/geni-ch/issues/305","id":103770692,"user":{"login":"tcmitchell","id":340136,"avatar_url":"https://avatars.githubusercontent.com/u/340136?v=3","gravatar_id":"","url":"https://api.github.com/users/tcmitchell","html_url":"https://github.com/tcmitchell","followers_url":"https://api.github.com/users/tcmitchell/followers","following_url":"https://api.github.com/users/tcmitchell/following{/other_user}","gists_url":"https://api.github.com/users/tcmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/tcmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcmitchell/subscriptions","organizations_url":"https://api.github.com/users/tcmitchell/orgs","repos_url":"https://api.github.com/users/tcmitchell/repos","events_url":"https://api.github.com/users/tcmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/tcmitchell/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T05:58:16Z","updated_at":"2015-05-20T05:58:16Z","body":"This error showed up twice in the last 6 weeks (4/17 - 6/5) to two different people:\r\n 06/04/2014 14:16:27:ERROR   :amsoil:[pgchv1]   File \"/usr/share/geni-ch/chapi/AMsoil-gpo-0.3.2/src/plugins/pgch/PGCH.py\", line 71, in Resolve\r\n 06/05/2014 00:03:00:ERROR   :amsoil:[pgchv1]   File \"/usr/share/geni-ch/chapi/AMsoil-gpo-0.3.2/src/plugins/pgch/PGCH.py\", line 71, in Resolve\r\n\r\nNot urgent or pressing unless we start seeing it more.\n\n_Trac comment by tmitchel (github user: tcmitchell) on 06-05-2014 at 11:20_\n"}}