{"action":"created","issue":{"url":"https://api.github.com/repos/cloudera/hue/issues/181","labels_url":"https://api.github.com/repos/cloudera/hue/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/cloudera/hue/issues/181/comments","events_url":"https://api.github.com/repos/cloudera/hue/issues/181/events","html_url":"https://github.com/cloudera/hue/issues/181","id":71675479,"number":181,"title":"Hue 3.8.0 - Fork in workflow is not working as expected.","user":{"login":"searchwizard","id":6089654,"avatar_url":"https://avatars.githubusercontent.com/u/6089654?v=3","gravatar_id":"","url":"https://api.github.com/users/searchwizard","html_url":"https://github.com/searchwizard","followers_url":"https://api.github.com/users/searchwizard/followers","following_url":"https://api.github.com/users/searchwizard/following{/other_user}","gists_url":"https://api.github.com/users/searchwizard/gists{/gist_id}","starred_url":"https://api.github.com/users/searchwizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/searchwizard/subscriptions","organizations_url":"https://api.github.com/users/searchwizard/orgs","repos_url":"https://api.github.com/users/searchwizard/repos","events_url":"https://api.github.com/users/searchwizard/events{/privacy}","received_events_url":"https://api.github.com/users/searchwizard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"romainr","id":17945,"avatar_url":"https://avatars.githubusercontent.com/u/17945?v=3","gravatar_id":"","url":"https://api.github.com/users/romainr","html_url":"https://github.com/romainr","followers_url":"https://api.github.com/users/romainr/followers","following_url":"https://api.github.com/users/romainr/following{/other_user}","gists_url":"https://api.github.com/users/romainr/gists{/gist_id}","starred_url":"https://api.github.com/users/romainr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainr/subscriptions","organizations_url":"https://api.github.com/users/romainr/orgs","repos_url":"https://api.github.com/users/romainr/repos","events_url":"https://api.github.com/users/romainr/events{/privacy}","received_events_url":"https://api.github.com/users/romainr/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-28T19:10:37Z","updated_at":"2015-04-29T14:26:27Z","closed_at":"2015-04-29T14:26:27Z","body":"When I drag and drop an action next to another action, its adding a fork node in the workflow but the links are not drawn properly. I can manually fix the \"OK\" of the previous action to go to the fork node. But the link from fork can't be adjusted. \r\n\r\n![image](https://cloud.githubusercontent.com/assets/6089654/7378006/58ca3dc2-edb8-11e4-8685-6eba08b15343.png)\r\n\r\nIf I submit with out fixing the workflow, I get the following error\r\n```\r\nFile \"/opt/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py\", line 112, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/transaction.py\", line 371, in inner\r\n    return func(*args, **kwargs)\r\n\r\n  File \"/opt/hue/apps/oozie/src/oozie/decorators.py\", line 60, in decorate\r\n    return view_func(request, *args, **kwargs)\r\n\r\n  File \"/opt/hue/apps/oozie/src/oozie/views/editor2.py\", line 351, in submit_workflow\r\n    job_id = _submit_workflow(request.user, request.fs, request.jt, workflow, mapping)\r\n\r\n  File \"/opt/hue/apps/oozie/src/oozie/views/editor2.py\", line 373, in _submit_workflow\r\n    job_id = submission.run()\r\n\r\n  File \"/opt/hue/desktop/libs/liboozie/src/liboozie/submission2.py\", line 85, in run\r\n    deployment_dir = self.deploy()\r\n\r\n  File \"/opt/hue/desktop/libs/liboozie/src/liboozie/submission2.py\", line 166, in deploy\r\n    oozie_xml = self.job.to_xml(self.properties)\r\n\r\n  File \"/opt/hue/apps/oozie/src/oozie/models2.py\", line 188, in to_xml\r\n    'workflow_mapping': workflow_mapping\r\n\r\n  File \"/opt/hue/desktop/core/src/desktop/lib/django_mako.py\", line 114, in render_to_string_normal\r\n    result = template.render(**data_dict)\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py\", line 443, in render\r\n    return runtime._render(self, self.callable_, args, data)\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py\", line 786, in _render\r\n    **_kwargs_for_callable(callable_, data))\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py\", line 818, in _render_context\r\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py\", line 844, in _exec_template\r\n    callable_(context, *args, **kwargs)\r\n\r\n  File \"/tmp/tmpc8dT86/oozie/editor2/gen/workflow.xml.mako.py\", line 110, in render_body\r\n    __M_writer( node.to_xml(mapping, node_mapping, workflow_mapping) )\r\n\r\n  File \"/opt/hue/apps/oozie/src/oozie/models2.py\", line 317, in to_xml\r\n    return django_mako.render_to_string(self.get_template_name(), data)\r\n\r\n  File \"/opt/hue/desktop/core/src/desktop/lib/django_mako.py\", line 114, in render_to_string_normal\r\n    result = template.render(**data_dict)\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py\", line 443, in render\r\n    return runtime._render(self, self.callable_, args, data)\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py\", line 786, in _render\r\n    **_kwargs_for_callable(callable_, data))\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py\", line 818, in _render_context\r\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\r\n\r\n  File \"/opt/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py\", line 844, in _exec_template\r\n    callable_(context, *args, **kwargs)\r\n\r\n  File \"/tmp/tmpc8dT86/oozie/editor2/gen/workflow-join.xml.mako.py\", line 31, in render_body\r\n    __M_writer(escape(unicode( node_mapping[node['children'][0]['to']].name )))\r\n\r\nIndexError: list index out of range\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudera/hue/issues/comments/97447579","html_url":"https://github.com/cloudera/hue/issues/181#issuecomment-97447579","issue_url":"https://api.github.com/repos/cloudera/hue/issues/181","id":97447579,"user":{"login":"romainr","id":17945,"avatar_url":"https://avatars.githubusercontent.com/u/17945?v=3","gravatar_id":"","url":"https://api.github.com/users/romainr","html_url":"https://github.com/romainr","followers_url":"https://api.github.com/users/romainr/followers","following_url":"https://api.github.com/users/romainr/following{/other_user}","gists_url":"https://api.github.com/users/romainr/gists{/gist_id}","starred_url":"https://api.github.com/users/romainr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainr/subscriptions","organizations_url":"https://api.github.com/users/romainr/orgs","repos_url":"https://api.github.com/users/romainr/repos","events_url":"https://api.github.com/users/romainr/events{/privacy}","received_events_url":"https://api.github.com/users/romainr/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T14:26:27Z","updated_at":"2015-04-29T14:26:27Z","body":"Fixed in 3.8.1 and 3.9"}}