{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/issues/105","repository_url":"https://api.github.com/repos/awslabs/aws-serverless-java-container","labels_url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/issues/105/comments","events_url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/issues/105/events","html_url":"https://github.com/awslabs/aws-serverless-java-container/issues/105","id":290319128,"number":105,"title":"Swagger2/Open API Swagger UI support request","user":{"login":"quantum-fusion","id":10088099,"avatar_url":"https://avatars3.githubusercontent.com/u/10088099?v=4","gravatar_id":"","url":"https://api.github.com/users/quantum-fusion","html_url":"https://github.com/quantum-fusion","followers_url":"https://api.github.com/users/quantum-fusion/followers","following_url":"https://api.github.com/users/quantum-fusion/following{/other_user}","gists_url":"https://api.github.com/users/quantum-fusion/gists{/gist_id}","starred_url":"https://api.github.com/users/quantum-fusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantum-fusion/subscriptions","organizations_url":"https://api.github.com/users/quantum-fusion/orgs","repos_url":"https://api.github.com/users/quantum-fusion/repos","events_url":"https://api.github.com/users/quantum-fusion/events{/privacy}","received_events_url":"https://api.github.com/users/quantum-fusion/received_events","type":"User","site_admin":false},"labels":[{"id":495041084,"url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"SAPessi","id":2996317,"avatar_url":"https://avatars0.githubusercontent.com/u/2996317?v=4","gravatar_id":"","url":"https://api.github.com/users/SAPessi","html_url":"https://github.com/SAPessi","followers_url":"https://api.github.com/users/SAPessi/followers","following_url":"https://api.github.com/users/SAPessi/following{/other_user}","gists_url":"https://api.github.com/users/SAPessi/gists{/gist_id}","starred_url":"https://api.github.com/users/SAPessi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAPessi/subscriptions","organizations_url":"https://api.github.com/users/SAPessi/orgs","repos_url":"https://api.github.com/users/SAPessi/repos","events_url":"https://api.github.com/users/SAPessi/events{/privacy}","received_events_url":"https://api.github.com/users/SAPessi/received_events","type":"User","site_admin":false},"assignees":[{"login":"SAPessi","id":2996317,"avatar_url":"https://avatars0.githubusercontent.com/u/2996317?v=4","gravatar_id":"","url":"https://api.github.com/users/SAPessi","html_url":"https://github.com/SAPessi","followers_url":"https://api.github.com/users/SAPessi/followers","following_url":"https://api.github.com/users/SAPessi/following{/other_user}","gists_url":"https://api.github.com/users/SAPessi/gists{/gist_id}","starred_url":"https://api.github.com/users/SAPessi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAPessi/subscriptions","organizations_url":"https://api.github.com/users/SAPessi/orgs","repos_url":"https://api.github.com/users/SAPessi/repos","events_url":"https://api.github.com/users/SAPessi/events{/privacy}","received_events_url":"https://api.github.com/users/SAPessi/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/milestones/9","html_url":"https://github.com/awslabs/aws-serverless-java-container/milestone/9","labels_url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/milestones/9/labels","id":3081363,"number":9,"title":"Release 1.0","description":"","creator":{"login":"SAPessi","id":2996317,"avatar_url":"https://avatars0.githubusercontent.com/u/2996317?v=4","gravatar_id":"","url":"https://api.github.com/users/SAPessi","html_url":"https://github.com/SAPessi","followers_url":"https://api.github.com/users/SAPessi/followers","following_url":"https://api.github.com/users/SAPessi/following{/other_user}","gists_url":"https://api.github.com/users/SAPessi/gists{/gist_id}","starred_url":"https://api.github.com/users/SAPessi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAPessi/subscriptions","organizations_url":"https://api.github.com/users/SAPessi/orgs","repos_url":"https://api.github.com/users/SAPessi/repos","events_url":"https://api.github.com/users/SAPessi/events{/privacy}","received_events_url":"https://api.github.com/users/SAPessi/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2018-02-01T16:04:30Z","updated_at":"2018-02-02T22:10:32Z","due_on":"2018-03-01T08:00:00Z","closed_at":null},"comments":50,"created_at":"2018-01-22T00:05:17Z","updated_at":"2018-02-02T23:21:26Z","closed_at":null,"author_association":"NONE","body":"**Updated to reflect results of deep dive**\r\n* Framework version: 0.9.1\r\n* Implementations: Spring Boot\r\n\r\n## Scenario\r\n* Servlet request handler cannot work with wrapper responses:\r\n```\r\njavax.servlet.ServletException: java.lang.ClassCastException: org.springframework.boot.web.support.ErrorPageFilter$ErrorWrapperResponse cannot be cast to com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletResponse\r\nat \r\n```\r\n\r\n* Servlet forward fails for spring boot default error pages, response buffer is already flushed\r\n\r\n\r\n\r\n---\r\n### Original issue description\r\nI am interested in having Swagger2 support for Swagger UI with Sam local running Lambda SpringBoot.\r\nhttps://springframework.guru/spring-boot-restful-api-documentation-with-swagger-2/\r\n\r\nI tried to add the Swagger UI, however there is a conflict with SAM local security and the server times out, because of security authentication that fails.\r\n\r\nIt appears that the SAM Local security conflicts with the Swagger2 UI security being disabled, and the SAM Local security proxy wins, therefore disabling Swagger2 UI.  \r\n\r\n## Expected behavior\r\n\r\nThis example shows the Swagger UI being enabled in this Spring Boot project.\r\n\r\n1.)\r\nhttps://github.com/quantum-fusion/springboot_swagger_example-master-cassandra\r\n\r\n## Actual behavior\r\n\r\nThis Lambda example shows that the Swagger UI is disabled, in this SpringBoot project.\r\n2.)\r\nhttps://github.com/quantum-fusion/aws-serverless-java-container/blob/master/samples/springboot/pet-store/README.md\r\n\r\n## Steps to reproduce\r\n\r\nRun both springboot projects both 1.) and 2.)\r\n\r\n## Full log output\r\n"},"comment":{"url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/issues/comments/362738267","html_url":"https://github.com/awslabs/aws-serverless-java-container/issues/105#issuecomment-362738267","issue_url":"https://api.github.com/repos/awslabs/aws-serverless-java-container/issues/105","id":362738267,"user":{"login":"quantum-fusion","id":10088099,"avatar_url":"https://avatars3.githubusercontent.com/u/10088099?v=4","gravatar_id":"","url":"https://api.github.com/users/quantum-fusion","html_url":"https://github.com/quantum-fusion","followers_url":"https://api.github.com/users/quantum-fusion/followers","following_url":"https://api.github.com/users/quantum-fusion/following{/other_user}","gists_url":"https://api.github.com/users/quantum-fusion/gists{/gist_id}","starred_url":"https://api.github.com/users/quantum-fusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantum-fusion/subscriptions","organizations_url":"https://api.github.com/users/quantum-fusion/orgs","repos_url":"https://api.github.com/users/quantum-fusion/repos","events_url":"https://api.github.com/users/quantum-fusion/events{/privacy}","received_events_url":"https://api.github.com/users/quantum-fusion/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T23:21:26Z","updated_at":"2018-02-02T23:21:26Z","author_association":"NONE","body":"What about other scope options, like provided?"}}
{"actor":{"display_login":"quantum-fusion"}}