{"action":"created","comment":{"url":"https://api.github.com/repos/dmwm/CRABServer/pulls/comments/43733865","id":43733865,"diff_hunk":"@@ -328,7 +328,12 @@ def validate(self, apiobj, method, api, param, safe):\n \n             validate_num(\"publishgroupname\", param, safe, optional=True)\n             ## This line must come after _checkPublishDataName()\n-            validate_str(\"workflow\", param, safe, RX_WORKFLOW, optional=False)\n+            username = cherrypy.request.user['login']\n+            availLen = int(RX_WORKFLOW_LEN - len(username))","path":"src/python/CRABInterface/RESTUserWorkflow.py","position":6,"original_position":6,"commit_id":"338dc840fb2c283e5b184caad37a3da698aeac35","original_commit_id":"338dc840fb2c283e5b184caad37a3da698aeac35","user":{"login":"juztas","id":646582,"avatar_url":"https://avatars.githubusercontent.com/u/646582?v=3","gravatar_id":"","url":"https://api.github.com/users/juztas","html_url":"https://github.com/juztas","followers_url":"https://api.github.com/users/juztas/followers","following_url":"https://api.github.com/users/juztas/following{/other_user}","gists_url":"https://api.github.com/users/juztas/gists{/gist_id}","starred_url":"https://api.github.com/users/juztas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juztas/subscriptions","organizations_url":"https://api.github.com/users/juztas/orgs","repos_url":"https://api.github.com/users/juztas/repos","events_url":"https://api.github.com/users/juztas/events{/privacy}","received_events_url":"https://api.github.com/users/juztas/received_events","type":"User","site_admin":false},"body":"just make a comment why this is needed. Also next line is too long...","created_at":"2015-11-03T10:38:45Z","updated_at":"2015-11-03T10:38:45Z","html_url":"https://github.com/dmwm/CRABServer/pull/5060#discussion_r43733865","pull_request_url":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060","_links":{"self":{"href":"https://api.github.com/repos/dmwm/CRABServer/pulls/comments/43733865"},"html":{"href":"https://github.com/dmwm/CRABServer/pull/5060#discussion_r43733865"},"pull_request":{"href":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060"}}},"pull_request":{"url":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060","id":49531519,"html_url":"https://github.com/dmwm/CRABServer/pull/5060","diff_url":"https://github.com/dmwm/CRABServer/pull/5060.diff","patch_url":"https://github.com/dmwm/CRABServer/pull/5060.patch","issue_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5060","number":5060,"state":"open","locked":false,"title":"fix workflow name for very long tasknames","user":{"login":"jmarra13","id":8515981,"avatar_url":"https://avatars.githubusercontent.com/u/8515981?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarra13","html_url":"https://github.com/jmarra13","followers_url":"https://api.github.com/users/jmarra13/followers","following_url":"https://api.github.com/users/jmarra13/following{/other_user}","gists_url":"https://api.github.com/users/jmarra13/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarra13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarra13/subscriptions","organizations_url":"https://api.github.com/users/jmarra13/orgs","repos_url":"https://api.github.com/users/jmarra13/repos","events_url":"https://api.github.com/users/jmarra13/events{/privacy}","received_events_url":"https://api.github.com/users/jmarra13/received_events","type":"User","site_admin":false},"body":"fix for #5016\r\nHi can one review it please?","created_at":"2015-11-03T09:03:17Z","updated_at":"2015-11-03T10:38:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"188610d6e5f06b0ddaa4d5315220f743d732cafd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060/commits","review_comments_url":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060/comments","review_comment_url":"https://api.github.com/repos/dmwm/CRABServer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmwm/CRABServer/issues/5060/comments","statuses_url":"https://api.github.com/repos/dmwm/CRABServer/statuses/338dc840fb2c283e5b184caad37a3da698aeac35","head":{"label":"jmarra13:fix-long-workflow-name-validation","ref":"fix-long-workflow-name-validation","sha":"338dc840fb2c283e5b184caad37a3da698aeac35","user":{"login":"jmarra13","id":8515981,"avatar_url":"https://avatars.githubusercontent.com/u/8515981?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarra13","html_url":"https://github.com/jmarra13","followers_url":"https://api.github.com/users/jmarra13/followers","following_url":"https://api.github.com/users/jmarra13/following{/other_user}","gists_url":"https://api.github.com/users/jmarra13/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarra13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarra13/subscriptions","organizations_url":"https://api.github.com/users/jmarra13/orgs","repos_url":"https://api.github.com/users/jmarra13/repos","events_url":"https://api.github.com/users/jmarra13/events{/privacy}","received_events_url":"https://api.github.com/users/jmarra13/received_events","type":"User","site_admin":false},"repo":{"id":34252480,"name":"CRABServer","full_name":"jmarra13/CRABServer","owner":{"login":"jmarra13","id":8515981,"avatar_url":"https://avatars.githubusercontent.com/u/8515981?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarra13","html_url":"https://github.com/jmarra13","followers_url":"https://api.github.com/users/jmarra13/followers","following_url":"https://api.github.com/users/jmarra13/following{/other_user}","gists_url":"https://api.github.com/users/jmarra13/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarra13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarra13/subscriptions","organizations_url":"https://api.github.com/users/jmarra13/orgs","repos_url":"https://api.github.com/users/jmarra13/repos","events_url":"https://api.github.com/users/jmarra13/events{/privacy}","received_events_url":"https://api.github.com/users/jmarra13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmarra13/CRABServer","description":"","fork":true,"url":"https://api.github.com/repos/jmarra13/CRABServer","forks_url":"https://api.github.com/repos/jmarra13/CRABServer/forks","keys_url":"https://api.github.com/repos/jmarra13/CRABServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmarra13/CRABServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmarra13/CRABServer/teams","hooks_url":"https://api.github.com/repos/jmarra13/CRABServer/hooks","issue_events_url":"https://api.github.com/repos/jmarra13/CRABServer/issues/events{/number}","events_url":"https://api.github.com/repos/jmarra13/CRABServer/events","assignees_url":"https://api.github.com/repos/jmarra13/CRABServer/assignees{/user}","branches_url":"https://api.github.com/repos/jmarra13/CRABServer/branches{/branch}","tags_url":"https://api.github.com/repos/jmarra13/CRABServer/tags","blobs_url":"https://api.github.com/repos/jmarra13/CRABServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmarra13/CRABServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmarra13/CRABServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmarra13/CRABServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmarra13/CRABServer/statuses/{sha}","languages_url":"https://api.github.com/repos/jmarra13/CRABServer/languages","stargazers_url":"https://api.github.com/repos/jmarra13/CRABServer/stargazers","contributors_url":"https://api.github.com/repos/jmarra13/CRABServer/contributors","subscribers_url":"https://api.github.com/repos/jmarra13/CRABServer/subscribers","subscription_url":"https://api.github.com/repos/jmarra13/CRABServer/subscription","commits_url":"https://api.github.com/repos/jmarra13/CRABServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmarra13/CRABServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmarra13/CRABServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmarra13/CRABServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmarra13/CRABServer/contents/{+path}","compare_url":"https://api.github.com/repos/jmarra13/CRABServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmarra13/CRABServer/merges","archive_url":"https://api.github.com/repos/jmarra13/CRABServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmarra13/CRABServer/downloads","issues_url":"https://api.github.com/repos/jmarra13/CRABServer/issues{/number}","pulls_url":"https://api.github.com/repos/jmarra13/CRABServer/pulls{/number}","milestones_url":"https://api.github.com/repos/jmarra13/CRABServer/milestones{/number}","notifications_url":"https://api.github.com/repos/jmarra13/CRABServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmarra13/CRABServer/labels{/name}","releases_url":"https://api.github.com/repos/jmarra13/CRABServer/releases{/id}","created_at":"2015-04-20T09:52:12Z","updated_at":"2015-09-02T11:44:44Z","pushed_at":"2015-11-03T09:01:33Z","git_url":"git://github.com/jmarra13/CRABServer.git","ssh_url":"git@github.com:jmarra13/CRABServer.git","clone_url":"https://github.com/jmarra13/CRABServer.git","svn_url":"https://github.com/jmarra13/CRABServer","homepage":null,"size":12385,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dmwm:master","ref":"master","sha":"252bd885c247e9590339838f4cfd2fdff2e1417b","user":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"repo":{"id":4423776,"name":"CRABServer","full_name":"dmwm/CRABServer","owner":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmwm/CRABServer","description":"","fork":false,"url":"https://api.github.com/repos/dmwm/CRABServer","forks_url":"https://api.github.com/repos/dmwm/CRABServer/forks","keys_url":"https://api.github.com/repos/dmwm/CRABServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmwm/CRABServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmwm/CRABServer/teams","hooks_url":"https://api.github.com/repos/dmwm/CRABServer/hooks","issue_events_url":"https://api.github.com/repos/dmwm/CRABServer/issues/events{/number}","events_url":"https://api.github.com/repos/dmwm/CRABServer/events","assignees_url":"https://api.github.com/repos/dmwm/CRABServer/assignees{/user}","branches_url":"https://api.github.com/repos/dmwm/CRABServer/branches{/branch}","tags_url":"https://api.github.com/repos/dmwm/CRABServer/tags","blobs_url":"https://api.github.com/repos/dmwm/CRABServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmwm/CRABServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmwm/CRABServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmwm/CRABServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmwm/CRABServer/statuses/{sha}","languages_url":"https://api.github.com/repos/dmwm/CRABServer/languages","stargazers_url":"https://api.github.com/repos/dmwm/CRABServer/stargazers","contributors_url":"https://api.github.com/repos/dmwm/CRABServer/contributors","subscribers_url":"https://api.github.com/repos/dmwm/CRABServer/subscribers","subscription_url":"https://api.github.com/repos/dmwm/CRABServer/subscription","commits_url":"https://api.github.com/repos/dmwm/CRABServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmwm/CRABServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmwm/CRABServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmwm/CRABServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmwm/CRABServer/contents/{+path}","compare_url":"https://api.github.com/repos/dmwm/CRABServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmwm/CRABServer/merges","archive_url":"https://api.github.com/repos/dmwm/CRABServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmwm/CRABServer/downloads","issues_url":"https://api.github.com/repos/dmwm/CRABServer/issues{/number}","pulls_url":"https://api.github.com/repos/dmwm/CRABServer/pulls{/number}","milestones_url":"https://api.github.com/repos/dmwm/CRABServer/milestones{/number}","notifications_url":"https://api.github.com/repos/dmwm/CRABServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmwm/CRABServer/labels{/name}","releases_url":"https://api.github.com/repos/dmwm/CRABServer/releases{/id}","created_at":"2012-05-23T18:31:37Z","updated_at":"2015-08-03T10:17:27Z","pushed_at":"2015-11-03T09:03:17Z","git_url":"git://github.com/dmwm/CRABServer.git","ssh_url":"git@github.com:dmwm/CRABServer.git","clone_url":"https://github.com/dmwm/CRABServer.git","svn_url":"https://github.com/dmwm/CRABServer","homepage":null,"size":17154,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":141,"forks":21,"open_issues":141,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060"},"html":{"href":"https://github.com/dmwm/CRABServer/pull/5060"},"issue":{"href":"https://api.github.com/repos/dmwm/CRABServer/issues/5060"},"comments":{"href":"https://api.github.com/repos/dmwm/CRABServer/issues/5060/comments"},"review_comments":{"href":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060/comments"},"review_comment":{"href":"https://api.github.com/repos/dmwm/CRABServer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmwm/CRABServer/pulls/5060/commits"},"statuses":{"href":"https://api.github.com/repos/dmwm/CRABServer/statuses/338dc840fb2c283e5b184caad37a3da698aeac35"}}}}