{"action":"created","comment":{"url":"https://api.github.com/repos/dotCMS/core/pulls/comments/171730018","pull_request_review_id":100636181,"id":171730018,"diff_hunk":"@@ -696,8 +699,76 @@ public final Response reorderStep(@Context final HttpServletRequest request,\n         }\n         return response;\n     } // reorderStep\n-    \n-    \n+\n+    @PUT\n+    @Path(\"/fire/actions/{actionId}\")\n+    @JSONP\n+    @NoCache\n+    @Produces({MediaType.APPLICATION_JSON, \"application/javascript\"})\n+    public final Response fire(@Context final HttpServletRequest request,\n+                               @QueryParam(\"inode\")            final String inode,\n+                               @NotNull @PathParam(\"actionId\") final String actionId,\n+                               final FireActionForm fireActionForm) {\n+\n+        final InitDataObject initDataObject = this.webResource.init\n+                (null, true, request, true, null);\n+        Response response;\n+\n+        try {\n+\n+            Logger.debug(this, \"Firing workflow action: \" + actionId +\n+                            \", inode: \" + inode);\n+\n+            final Contentlet contentlet = (UtilMethods.isSet(inode))?\n+                        this.contentletAPI.find(inode, initDataObject.getUser(), false):\n+                        this.contentHelper.populateContentletFromMap(new Contentlet(), fireActionForm.getContentletFormData());\n+\n+            if (null != contentlet && null != fireActionForm) {\n+                contentlet.setStringProperty(\"wfPublishDate\", fireActionForm.getPublishDate());\n+                contentlet.setStringProperty(\"wfPublishTime\", fireActionForm.getPublishTime());\n+                contentlet.setStringProperty(\"wfExpireDate\", fireActionForm.getExpireDate());\n+                contentlet.setStringProperty(\"wfExpireTime\", fireActionForm.getExpireTime());\n+                contentlet.setStringProperty(\"wfNeverExpire\", fireActionForm.getNeverExpire());\n+                contentlet.setStringProperty(\"whereToSend\", fireActionForm.getWhereToSend());\n+                contentlet.setStringProperty(\"forcePush\", fireActionForm.getForcePush());\n+            }\n+\n+            response = (null == contentlet || contentlet.getMap().isEmpty())?\n+                        ExceptionMapperUtil.createResponse\n+                                (null, LanguageUtil.get(\"contentlet-was-not-found\"), Response.Status.NOT_FOUND):\n+\n+                        Response.ok(new ResponseEntityView(\n+                                this.workflowAPI.fireContentWorkflow(contentlet,\n+                                    new ContentletDependencies.Builder()\n+                                        .respectAnonymousPermissions(PageMode.get(request).respectAnonPerms)","path":"dotCMS/src/main/java/com/dotcms/rest/api/v1/workflow/WorkflowResource.java","position":163,"original_position":163,"commit_id":"878d11c69ed61f135b04c96dddd0b7cae06bc883","original_commit_id":"878d11c69ed61f135b04c96dddd0b7cae06bc883","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Assigning an Object to null is a code smell.  Consider refactoring.](https://app.codacy.com/app/dotCMS/core/pullRequest?prid=1388179)","created_at":"2018-03-01T23:47:28Z","updated_at":"2018-03-01T23:47:28Z","html_url":"https://github.com/dotCMS/core/pull/13775#discussion_r171730018","pull_request_url":"https://api.github.com/repos/dotCMS/core/pulls/13775","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core/pulls/comments/171730018"},"html":{"href":"https://github.com/dotCMS/core/pull/13775#discussion_r171730018"},"pull_request":{"href":"https://api.github.com/repos/dotCMS/core/pulls/13775"}}},"pull_request":{"url":"https://api.github.com/repos/dotCMS/core/pulls/13775","id":172376801,"html_url":"https://github.com/dotCMS/core/pull/13775","diff_url":"https://github.com/dotCMS/core/pull/13775.diff","patch_url":"https://github.com/dotCMS/core/pull/13775.patch","issue_url":"https://api.github.com/repos/dotCMS/core/issues/13775","number":13775,"state":"open","locked":false,"title":"Issue 13287 remove required checkout fromcode","user":{"login":"jdotcms","id":19578350,"avatar_url":"https://avatars0.githubusercontent.com/u/19578350?v=4","gravatar_id":"","url":"https://api.github.com/users/jdotcms","html_url":"https://github.com/jdotcms","followers_url":"https://api.github.com/users/jdotcms/followers","following_url":"https://api.github.com/users/jdotcms/following{/other_user}","gists_url":"https://api.github.com/users/jdotcms/gists{/gist_id}","starred_url":"https://api.github.com/users/jdotcms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdotcms/subscriptions","organizations_url":"https://api.github.com/users/jdotcms/orgs","repos_url":"https://api.github.com/users/jdotcms/repos","events_url":"https://api.github.com/users/jdotcms/events{/privacy}","received_events_url":"https://api.github.com/users/jdotcms/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T22:51:05Z","updated_at":"2018-03-01T23:47:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86b94b874e3bf4bb7eab6a3e0fbafc9dbaeb33df","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotCMS/core/pulls/13775/commits","review_comments_url":"https://api.github.com/repos/dotCMS/core/pulls/13775/comments","review_comment_url":"https://api.github.com/repos/dotCMS/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/13775/comments","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/878d11c69ed61f135b04c96dddd0b7cae06bc883","head":{"label":"dotCMS:issue-13287-remove-required-checkout-fromcode","ref":"issue-13287-remove-required-checkout-fromcode","sha":"878d11c69ed61f135b04c96dddd0b7cae06bc883","user":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":3729629,"name":"core","full_name":"dotCMS/core","owner":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotCMS/core","description":"Source Code for dotCMS Java Enterprise Content Management System","fork":false,"url":"https://api.github.com/repos/dotCMS/core","forks_url":"https://api.github.com/repos/dotCMS/core/forks","keys_url":"https://api.github.com/repos/dotCMS/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core/teams","hooks_url":"https://api.github.com/repos/dotCMS/core/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core/events","assignees_url":"https://api.github.com/repos/dotCMS/core/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core/tags","blobs_url":"https://api.github.com/repos/dotCMS/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core/subscription","commits_url":"https://api.github.com/repos/dotCMS/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core/merges","archive_url":"https://api.github.com/repos/dotCMS/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core/downloads","issues_url":"https://api.github.com/repos/dotCMS/core/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core/deployments","created_at":"2012-03-15T15:24:14Z","updated_at":"2018-02-27T10:17:54Z","pushed_at":"2018-03-01T23:21:07Z","git_url":"git://github.com/dotCMS/core.git","ssh_url":"git@github.com:dotCMS/core.git","clone_url":"https://github.com/dotCMS/core.git","svn_url":"https://github.com/dotCMS/core","homepage":"http://dotcms.com","size":299242,"stargazers_count":357,"watchers_count":357,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":311,"mirror_url":null,"archived":false,"open_issues_count":1848,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":311,"open_issues":1848,"watchers":357,"default_branch":"master"}},"base":{"label":"dotCMS:master","ref":"master","sha":"17c95face70276b774ca582242f9931e05e989b3","user":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":3729629,"name":"core","full_name":"dotCMS/core","owner":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotCMS/core","description":"Source Code for dotCMS Java Enterprise Content Management System","fork":false,"url":"https://api.github.com/repos/dotCMS/core","forks_url":"https://api.github.com/repos/dotCMS/core/forks","keys_url":"https://api.github.com/repos/dotCMS/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core/teams","hooks_url":"https://api.github.com/repos/dotCMS/core/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core/events","assignees_url":"https://api.github.com/repos/dotCMS/core/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core/tags","blobs_url":"https://api.github.com/repos/dotCMS/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core/subscription","commits_url":"https://api.github.com/repos/dotCMS/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core/merges","archive_url":"https://api.github.com/repos/dotCMS/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core/downloads","issues_url":"https://api.github.com/repos/dotCMS/core/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core/deployments","created_at":"2012-03-15T15:24:14Z","updated_at":"2018-02-27T10:17:54Z","pushed_at":"2018-03-01T23:21:07Z","git_url":"git://github.com/dotCMS/core.git","ssh_url":"git@github.com:dotCMS/core.git","clone_url":"https://github.com/dotCMS/core.git","svn_url":"https://github.com/dotCMS/core","homepage":"http://dotcms.com","size":299242,"stargazers_count":357,"watchers_count":357,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":311,"mirror_url":null,"archived":false,"open_issues_count":1848,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":311,"open_issues":1848,"watchers":357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core/pulls/13775"},"html":{"href":"https://github.com/dotCMS/core/pull/13775"},"issue":{"href":"https://api.github.com/repos/dotCMS/core/issues/13775"},"comments":{"href":"https://api.github.com/repos/dotCMS/core/issues/13775/comments"},"review_comments":{"href":"https://api.github.com/repos/dotCMS/core/pulls/13775/comments"},"review_comment":{"href":"https://api.github.com/repos/dotCMS/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotCMS/core/pulls/13775/commits"},"statuses":{"href":"https://api.github.com/repos/dotCMS/core/statuses/878d11c69ed61f135b04c96dddd0b7cae06bc883"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}