{"action":"created","issue":{"url":"https://api.github.com/repos/wildfly/wildfly/issues/7931","labels_url":"https://api.github.com/repos/wildfly/wildfly/issues/7931/labels{/name}","comments_url":"https://api.github.com/repos/wildfly/wildfly/issues/7931/comments","events_url":"https://api.github.com/repos/wildfly/wildfly/issues/7931/events","html_url":"https://github.com/wildfly/wildfly/pull/7931","id":100945189,"number":7931,"title":"Display warnings and errors on migration","user":{"login":"stuartwdouglas","id":328571,"avatar_url":"https://avatars.githubusercontent.com/u/328571?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartwdouglas","html_url":"https://github.com/stuartwdouglas","followers_url":"https://api.github.com/users/stuartwdouglas/followers","following_url":"https://api.github.com/users/stuartwdouglas/following{/other_user}","gists_url":"https://api.github.com/users/stuartwdouglas/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartwdouglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartwdouglas/subscriptions","organizations_url":"https://api.github.com/users/stuartwdouglas/orgs","repos_url":"https://api.github.com/users/stuartwdouglas/repos","events_url":"https://api.github.com/users/stuartwdouglas/events{/privacy}","received_events_url":"https://api.github.com/users/stuartwdouglas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wildfly/wildfly/labels/mgmt-review","name":"mgmt-review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":40,"created_at":"2015-08-14T06:32:08Z","updated_at":"2015-08-20T07:07:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wildfly/wildfly/pulls/7931","html_url":"https://github.com/wildfly/wildfly/pull/7931","diff_url":"https://github.com/wildfly/wildfly/pull/7931.diff","patch_url":"https://github.com/wildfly/wildfly/pull/7931.patch"},"body":"Output is:\r\n\r\nStandard EAP config (no warnings or errors):\r\n\r\n```\r\n[standalone@localhost:9999 /] /subsystem=web:migrate\r\n{\r\n    \"outcome\" => \"success\",\r\n    \"result\" => {\"migration-warnings\" => []}\r\n}\r\n```\r\n\r\nSuccess with a warning (in this case due to an invalid protocol attribute on a connector):\r\n\r\n```\r\n[standalone@localhost:9999 /] /subsystem=web:migrate\r\n{\r\n    \"outcome\" => \"success\",\r\n    \"result\" => {\"migration-warnings\" => [\"WFLYWEB0002: Could not migrate resource {\r\n    \\\"protocol\\\" => \\\"INVALID\\\",\r\n    \\\"scheme\\\" => \\\"http\\\",\r\n    \\\"socket-binding\\\" => \\\"ajp\\\",\r\n    \\\"enable-lookups\\\" => undefined,\r\n    \\\"proxy-binding\\\" => undefined,\r\n    \\\"proxy-name\\\" => undefined,\r\n    \\\"proxy-port\\\" => undefined,\r\n    \\\"redirect-binding\\\" => undefined,\r\n    \\\"redirect-port\\\" => undefined,\r\n    \\\"secure\\\" => undefined,\r\n    \\\"max-post-size\\\" => undefined,\r\n    \\\"max-save-post-size\\\" => undefined,\r\n    \\\"enabled\\\" => undefined,\r\n    \\\"executor\\\" => undefined,\r\n    \\\"max-connections\\\" => undefined,\r\n    \\\"virtual-server\\\" => undefined,\r\n    \\\"name\\\" => \\\"ajp\\\",\r\n    \\\"operation\\\" => \\\"add\\\",\r\n    \\\"address\\\" => [\r\n        (\\\"subsystem\\\" => \\\"web\\\"),\r\n        (\\\"connector\\\" => \\\"ajp\\\")\r\n    ]\r\n}\"]}\r\n}\r\n```\r\n\r\nFailed OP:\r\n\r\n```\r\n[standalone@localhost:9999 /] /subsystem=web:migrate\r\n{\r\n    \"outcome\" => \"failed\",\r\n    \"result\" => {\r\n        \"migration-warnings\" => [],\r\n        \"migration-error\" => {\r\n            \"operation\" => {\r\n                \"operation\" => \"add\",\r\n                \"address\" => [\r\n                    (\"subsystem\" => \"undertow\"),\r\n                    (\"server\" => \"default-server\"),\r\n                    (\"ajp-listener\" => \"ajp\")\r\n                ],\r\n                \"socket-binding\" => \"ajp\",\r\n                \"secure\" => undefined,\r\n                \"redirect-socket\" => undefined,\r\n                \"enabled\" => undefined,\r\n                \"resolve-peer-address\" => undefined,\r\n                \"max-post-size\" => undefined,\r\n                \"max-connections\" => \"sadfadsfasdgasdfg\",\r\n                \"operation-headers\" => {\r\n                    \"caller-type\" => \"user\",\r\n                    \"access-mechanism\" => \"NATIVE\"\r\n                },\r\n                \"worker\" => undefined,\r\n                \"buffer-pool\" => undefined,\r\n                \"disallowed-methods\" => undefined,\r\n                \"max-header-size\" => undefined,\r\n                \"buffer-pipelined-data\" => undefined,\r\n                \"max-parameters\" => undefined,\r\n                \"max-headers\" => undefined,\r\n                \"max-cookies\" => undefined,\r\n                \"allow-encoded-slash\" => undefined,\r\n                \"decode-url\" => undefined,\r\n                \"url-charset\" => undefined,\r\n                \"always-set-keep-alive\" => undefined,\r\n                \"max-buffered-request-size\" => undefined,\r\n                \"record-request-start-time\" => undefined,\r\n                \"allow-equals-in-cookie-value\" => undefined,\r\n                \"no-request-timeout\" => undefined,\r\n                \"request-parse-timeout\" => undefined,\r\n                \"tcp-backlog\" => undefined,\r\n                \"receive-buffer\" => undefined,\r\n                \"send-buffer\" => undefined,\r\n                \"tcp-keep-alive\" => undefined,\r\n                \"read-timeout\" => undefined,\r\n                \"write-timeout\" => undefined\r\n            },\r\n            \"result\" => {\r\n                \"outcome\" => \"failed\",\r\n                \"failure-description\" => \"WFLYCTL0097: Wrong type for max-connections. Expected [INT] but was STRING\",\r\n                \"rolled-back\" => true\r\n            }\r\n        }\r\n    },\r\n    \"rolled-back\" => true\r\n}\r\n```\r\n\r\nNote that there can only ever be one migration error, as the rest of the operations will not be attempted after the first failure."},"comment":{"url":"https://api.github.com/repos/wildfly/wildfly/issues/comments/132914106","html_url":"https://github.com/wildfly/wildfly/pull/7931#issuecomment-132914106","issue_url":"https://api.github.com/repos/wildfly/wildfly/issues/7931","id":132914106,"user":{"login":"wildfly-ci","id":939955,"avatar_url":"https://avatars.githubusercontent.com/u/939955?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfly-ci","html_url":"https://github.com/wildfly-ci","followers_url":"https://api.github.com/users/wildfly-ci/followers","following_url":"https://api.github.com/users/wildfly-ci/following{/other_user}","gists_url":"https://api.github.com/users/wildfly-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfly-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfly-ci/subscriptions","organizations_url":"https://api.github.com/users/wildfly-ci/orgs","repos_url":"https://api.github.com/users/wildfly-ci/repos","events_url":"https://api.github.com/users/wildfly-ci/events{/privacy}","received_events_url":"https://api.github.com/users/wildfly-ci/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T07:07:51Z","updated_at":"2015-08-20T07:07:51Z","body":"**Linux** [Build 7622](http://brontes.lab.eng.brq.redhat.com/viewLog.html?buildId=66187&buildTypeId=WFPR) outcome was **SUCCESS** using a merge of b3d6701f70619965d589f017342030e898e8bd6a\nSummary: Tests passed: 3117, ignored: 364 Build time: 00:48:15"}}