{"action":"created","issue":{"url":"https://api.github.com/repos/TellinaTool/tellina_task_interface/issues/7","repository_url":"https://api.github.com/repos/TellinaTool/tellina_task_interface","labels_url":"https://api.github.com/repos/TellinaTool/tellina_task_interface/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/TellinaTool/tellina_task_interface/issues/7/comments","events_url":"https://api.github.com/repos/TellinaTool/tellina_task_interface/issues/7/events","html_url":"https://github.com/TellinaTool/tellina_task_interface/issues/7","id":198127107,"number":7,"title":"Cannot run filesystem tasks","user":{"login":"kvu787","id":1964733,"avatar_url":"https://avatars.githubusercontent.com/u/1964733?v=3","gravatar_id":"","url":"https://api.github.com/users/kvu787","html_url":"https://github.com/kvu787","followers_url":"https://api.github.com/users/kvu787/followers","following_url":"https://api.github.com/users/kvu787/following{/other_user}","gists_url":"https://api.github.com/users/kvu787/gists{/gist_id}","starred_url":"https://api.github.com/users/kvu787/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvu787/subscriptions","organizations_url":"https://api.github.com/users/kvu787/orgs","repos_url":"https://api.github.com/users/kvu787/repos","events_url":"https://api.github.com/users/kvu787/events{/privacy}","received_events_url":"https://api.github.com/users/kvu787/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-30T09:57:51Z","updated_at":"2016-12-30T10:31:02Z","closed_at":"2016-12-30T10:31:02Z","body":"When I use the following config.json:\r\n\r\n```\r\n{\r\n  \"access_codes\": [\r\n    \"bob\",\r\n    \"alice\"\r\n  ],\r\n  \"task_duration_in_seconds\": 30,\r\n  \"tasks\": [\r\n    {\r\n      \"task_id\": \"1\",\r\n      \"type\": \"filesystem\",\r\n      \"description\": \"Create a file named `hello.txt` in `~/dir1/dir2`.\",\r\n      \"initial_filesystem\": {\r\n        \"dir1\": {\r\n          \"file.txt\": {\r\n            \"ATTR_name\": \"file.txt\"\r\n          },\r\n          \"dir2\": {}\r\n        }\r\n      },\r\n      \"goal\": {\r\n        \"dir1\": {\r\n          \"file.txt\": {\r\n            \"ATTR_name\": \"file.txt\"\r\n          },\r\n          \"dir2\": {\r\n            \"hello.txt\": {\r\n              \"ATTR_name\": \"hello.txt\"\r\n            }\r\n          }\r\n        }\r\n      }\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nI get the following exception caused by `dict_2_disk`:\r\n\r\n```\r\n[30/Dec/2016 09:56:04] \"GET /user_login?access_code=a-b&check_existing_session=true HTTP/1.1\" 200 78\r\nInternal Server Error: /a-b-study_session-1/task-1\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py\", line 39, in inner\r\n    response = get_response(request)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py\", line 187, in _get_response\r\n    response = self.process_exception_by_middleware(e, request)\r\n  File \"/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py\", line 185, in _get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/home/vagrant/tellina_task_interface/website/views.py\", line 52, in g\r\n    return f(request, *args, task_session=task_session, **kwargs)\r\n  File \"/home/vagrant/tellina_task_interface/website/views.py\", line 162, in get_current_task\r\n    pathlib.Path('/{}/home'.format(container.filesystem_name)))\r\n  File \"/home/vagrant/tellina_task_interface/website/filesystem.py\", line 224, in dict_2_disk\r\n    status = dict_2_disk(subtree, path)\r\n  File \"/home/vagrant/tellina_task_interface/website/filesystem.py\", line 167, in dict_2_disk\r\n    if is_file(subtree):\r\n  File \"/home/vagrant/tellina_task_interface/website/filesystem.py\", line 113, in is_file\r\n    return list(node.keys())[0].startswith(attr_format(\"\"))\r\nIndexError: list index out of range\r\n```"},"comment":{"url":"https://api.github.com/repos/TellinaTool/tellina_task_interface/issues/comments/269756042","html_url":"https://github.com/TellinaTool/tellina_task_interface/issues/7#issuecomment-269756042","issue_url":"https://api.github.com/repos/TellinaTool/tellina_task_interface/issues/7","id":269756042,"user":{"login":"todpole3","id":4227871,"avatar_url":"https://avatars.githubusercontent.com/u/4227871?v=3","gravatar_id":"","url":"https://api.github.com/users/todpole3","html_url":"https://github.com/todpole3","followers_url":"https://api.github.com/users/todpole3/followers","following_url":"https://api.github.com/users/todpole3/following{/other_user}","gists_url":"https://api.github.com/users/todpole3/gists{/gist_id}","starred_url":"https://api.github.com/users/todpole3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todpole3/subscriptions","organizations_url":"https://api.github.com/users/todpole3/orgs","repos_url":"https://api.github.com/users/todpole3/repos","events_url":"https://api.github.com/users/todpole3/events{/privacy}","received_events_url":"https://api.github.com/users/todpole3/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T10:31:02Z","updated_at":"2016-12-30T10:31:02Z","body":"Work around committed."}}
{"actor":{"display_login":"todpole3"}}