{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/flow/issues/3301","repository_url":"https://api.github.com/repos/vaadin/flow","labels_url":"https://api.github.com/repos/vaadin/flow/issues/3301/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/flow/issues/3301/comments","events_url":"https://api.github.com/repos/vaadin/flow/issues/3301/events","html_url":"https://github.com/vaadin/flow/issues/3301","id":287806272,"number":3301,"title":"Resources in frontend folder is not resolved if no servlet is mapped to context root","user":{"login":"haiwan","id":3388675,"avatar_url":"https://avatars2.githubusercontent.com/u/3388675?v=4","gravatar_id":"","url":"https://api.github.com/users/haiwan","html_url":"https://github.com/haiwan","followers_url":"https://api.github.com/users/haiwan/followers","following_url":"https://api.github.com/users/haiwan/following{/other_user}","gists_url":"https://api.github.com/users/haiwan/gists{/gist_id}","starred_url":"https://api.github.com/users/haiwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haiwan/subscriptions","organizations_url":"https://api.github.com/users/haiwan/orgs","repos_url":"https://api.github.com/users/haiwan/repos","events_url":"https://api.github.com/users/haiwan/events{/privacy}","received_events_url":"https://api.github.com/users/haiwan/received_events","type":"User","site_admin":false},"labels":[{"id":205765017,"url":"https://api.github.com/repos/vaadin/flow/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"denis-anisimov","id":11425472,"avatar_url":"https://avatars0.githubusercontent.com/u/11425472?v=4","gravatar_id":"","url":"https://api.github.com/users/denis-anisimov","html_url":"https://github.com/denis-anisimov","followers_url":"https://api.github.com/users/denis-anisimov/followers","following_url":"https://api.github.com/users/denis-anisimov/following{/other_user}","gists_url":"https://api.github.com/users/denis-anisimov/gists{/gist_id}","starred_url":"https://api.github.com/users/denis-anisimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis-anisimov/subscriptions","organizations_url":"https://api.github.com/users/denis-anisimov/orgs","repos_url":"https://api.github.com/users/denis-anisimov/repos","events_url":"https://api.github.com/users/denis-anisimov/events{/privacy}","received_events_url":"https://api.github.com/users/denis-anisimov/received_events","type":"User","site_admin":false},"assignees":[{"login":"denis-anisimov","id":11425472,"avatar_url":"https://avatars0.githubusercontent.com/u/11425472?v=4","gravatar_id":"","url":"https://api.github.com/users/denis-anisimov","html_url":"https://github.com/denis-anisimov","followers_url":"https://api.github.com/users/denis-anisimov/followers","following_url":"https://api.github.com/users/denis-anisimov/following{/other_user}","gists_url":"https://api.github.com/users/denis-anisimov/gists{/gist_id}","starred_url":"https://api.github.com/users/denis-anisimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis-anisimov/subscriptions","organizations_url":"https://api.github.com/users/denis-anisimov/orgs","repos_url":"https://api.github.com/users/denis-anisimov/repos","events_url":"https://api.github.com/users/denis-anisimov/events{/privacy}","received_events_url":"https://api.github.com/users/denis-anisimov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-01-11T14:33:13Z","updated_at":"2018-02-23T13:05:05Z","closed_at":"2018-02-23T13:05:05Z","author_association":"MEMBER","body":"Given: Two servlets are defined in the application, and none of them maps to the context root.\r\n```\r\n@WebServlet(urlPatterns = { \"/app1/*\"}, name = \"MyServlet1\", asyncSupported = true)\r\n@VaadinServletConfiguration(productionMode = false)\r\npublic class MyServlet1 extends VaadinServlet {\r\n}\r\n```\r\n```\r\n@WebServlet(urlPatterns = { \"/app2/*\"}, name = \"MyServlet2\", asyncSupported = true)\r\n@VaadinServletConfiguration(productionMode = false)\r\npublic class MyServlet2 extends VaadinServlet {\r\n}\r\n```\r\nExpected: page can be load without problem\r\n\r\nResult: Got 404 errors that resources from frontend folder cannot be found. But resources from VAADIN and webjars folder are loaded correctly.\r\n\r\nWorkaround: add /frontend/* to either urlPatterns in either MyServlet1 or MyServlet2. But since resources from VAADIN and webjars folders can be loaded, this makes it a bit inconsistent.\r\n"},"comment":{"url":"https://api.github.com/repos/vaadin/flow/issues/comments/368003838","html_url":"https://github.com/vaadin/flow/issues/3301#issuecomment-368003838","issue_url":"https://api.github.com/repos/vaadin/flow/issues/3301","id":368003838,"user":{"login":"denis-anisimov","id":11425472,"avatar_url":"https://avatars0.githubusercontent.com/u/11425472?v=4","gravatar_id":"","url":"https://api.github.com/users/denis-anisimov","html_url":"https://github.com/denis-anisimov","followers_url":"https://api.github.com/users/denis-anisimov/followers","following_url":"https://api.github.com/users/denis-anisimov/following{/other_user}","gists_url":"https://api.github.com/users/denis-anisimov/gists{/gist_id}","starred_url":"https://api.github.com/users/denis-anisimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis-anisimov/subscriptions","organizations_url":"https://api.github.com/users/denis-anisimov/orgs","repos_url":"https://api.github.com/users/denis-anisimov/repos","events_url":"https://api.github.com/users/denis-anisimov/events{/privacy}","received_events_url":"https://api.github.com/users/denis-anisimov/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T13:05:05Z","updated_at":"2018-02-23T13:05:05Z","author_association":"CONTRIBUTOR","body":"The PR for one aspect of this issue is here: #3590. It doesn't fix the issue but allows to make a fix for it.\r\n\r\nI've extracted the main problem of this issue here: #3600.\r\nAnd I close this ticket as a duplicate of #3600."}}
{"actor":{"display_login":"denis-anisimov"}}