{"action":"created","issue":{"url":"https://api.github.com/repos/wabson/sample-preview-plugin/issues/2","labels_url":"https://api.github.com/repos/wabson/sample-preview-plugin/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wabson/sample-preview-plugin/issues/2/comments","events_url":"https://api.github.com/repos/wabson/sample-preview-plugin/issues/2/events","html_url":"https://github.com/wabson/sample-preview-plugin/issues/2","id":81781386,"number":2,"title":"A merge request was made as a root extension request. This is not allowed.","user":{"login":"ckctan","id":9333111,"avatar_url":"https://avatars.githubusercontent.com/u/9333111?v=3","gravatar_id":"","url":"https://api.github.com/users/ckctan","html_url":"https://github.com/ckctan","followers_url":"https://api.github.com/users/ckctan/followers","following_url":"https://api.github.com/users/ckctan/following{/other_user}","gists_url":"https://api.github.com/users/ckctan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckctan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckctan/subscriptions","organizations_url":"https://api.github.com/users/ckctan/orgs","repos_url":"https://api.github.com/users/ckctan/repos","events_url":"https://api.github.com/users/ckctan/events{/privacy}","received_events_url":"https://api.github.com/users/ckctan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-28T06:11:45Z","updated_at":"2015-05-28T06:14:19Z","closed_at":"2015-05-28T06:14:19Z","body":"I ran this against 4.2.4 and upon previewing a PDF, I got the following message:\r\n\r\n> ERROR [extensibility.impl.ExtensibilityModelImpl] [http-apr-8080-exec-20] A merge request was made as a root extension request. This is not allowed.\r\n"},"comment":{"url":"https://api.github.com/repos/wabson/sample-preview-plugin/issues/comments/106191178","html_url":"https://github.com/wabson/sample-preview-plugin/issues/2#issuecomment-106191178","issue_url":"https://api.github.com/repos/wabson/sample-preview-plugin/issues/2","id":106191178,"user":{"login":"ckctan","id":9333111,"avatar_url":"https://avatars.githubusercontent.com/u/9333111?v=3","gravatar_id":"","url":"https://api.github.com/users/ckctan","html_url":"https://github.com/ckctan","followers_url":"https://api.github.com/users/ckctan/followers","following_url":"https://api.github.com/users/ckctan/following{/other_user}","gists_url":"https://api.github.com/users/ckctan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckctan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckctan/subscriptions","organizations_url":"https://api.github.com/users/ckctan/orgs","repos_url":"https://api.github.com/users/ckctan/repos","events_url":"https://api.github.com/users/ckctan/events{/privacy}","received_events_url":"https://api.github.com/users/ckctan/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T06:14:19Z","updated_at":"2015-05-28T06:14:19Z","body":"It turned out that I had to add action=\"after\" in web-preview.get.html.ftl. The following has fixed it:\r\n\r\n> <@markup id=\"js-extend\" target=\"js\" action=\"after\">\r\n> <#-- JavaScript Dependencies -->\r\n>    <@script type=\"text/javascript\" src=\"${url.context}/res/someco/components/preview/PDF.js\" group=\"${dependencyGroup}\"></@script>\r\n> </@>\r\n> <@markup id=\"css-extend\" target=\"css\" action=\"after\">\r\n> <#-- CSS Dependencies -->\r\n>    <@link rel=\"stylesheet\" type=\"text/css\" href=\"${url.context}/res/someco/components/preview/PDF.css\" group=\"${dependencyGroup}\" />\r\n> </@>\r\n"}}