{"action":"opened","issue":{"url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/612","repository_url":"https://api.github.com/repos/micronaut-projects/micronaut-core","labels_url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/612/comments","events_url":"https://api.github.com/repos/micronaut-projects/micronaut-core/issues/612/events","html_url":"https://github.com/micronaut-projects/micronaut-core/issues/612","id":363079836,"node_id":"MDU6SXNzdWUzNjMwNzk4MzY=","number":612,"title":"Uploading file \"Required argument [CompletedFileUpload file] not specified\"","user":{"login":"sdelamo","id":864788,"node_id":"MDQ6VXNlcjg2NDc4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/864788?v=4","gravatar_id":"","url":"https://api.github.com/users/sdelamo","html_url":"https://github.com/sdelamo","followers_url":"https://api.github.com/users/sdelamo/followers","following_url":"https://api.github.com/users/sdelamo/following{/other_user}","gists_url":"https://api.github.com/users/sdelamo/gists{/gist_id}","starred_url":"https://api.github.com/users/sdelamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdelamo/subscriptions","organizations_url":"https://api.github.com/users/sdelamo/orgs","repos_url":"https://api.github.com/users/sdelamo/repos","events_url":"https://api.github.com/users/sdelamo/events{/privacy}","received_events_url":"https://api.github.com/users/sdelamo/received_events","type":"User","site_admin":false},"labels":[{"id":1035956452,"node_id":"MDU6TGFiZWwxMDM1OTU2NDUy","url":"https://api.github.com/repos/micronaut-projects/micronaut-core/labels/relates-to:%20http-server","name":"relates-to: http-server","color":"88cde8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-24T09:58:18Z","updated_at":"2018-09-24T09:58:18Z","closed_at":null,"author_association":"COLLABORATOR","body":"I am writing an app which uploads a file to S3. \r\n\r\nThe Controller has this signature: \r\n\r\nhttps://github.com/micronaut-guides/micronaut-file-upload/blob/master/complete/src/main/java/example/micronaut/HomeController.java#L36\r\n\r\n`public Map<String, Object> upload(CompletedFileUpload file) {`\r\n\r\nThe view has this form: \r\n\r\nhttps://github.com/micronaut-guides/micronaut-file-upload/blob/master/complete/src/main/resources/views/home.vm#L19\r\n\r\n```\r\n  <form method=\"post\" action=\"/upload\" enctype=\"multipart/form-data\">\r\n        <fieldset>\r\n            <ol>\r\n                <li><label for=\"file\">File</label>: <input type=\"file\" name=\"file\" id=\"file\"></li>\r\n                <li><input type=\"submit\" value=\"Upload\"/></li>\r\n            </ol>\r\n        </fieldset>\r\n    </form>\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\nClone repository: https://github.com/micronaut-guides/micronaut-file-upload\r\n$ cd complete\r\ncomplete $ export AWS_S3_REGION=eu-west-3\r\ncomplete $ export AWS_SECRET_KEY=XXXXXX\r\ncomplete $ export AWS_S3_BUCKET=bucketname\r\ncomplete $ export AWS_ACCESS_KEY_ID=XXXXXX\r\ncomplete $ ./gradlew run\r\n\r\nGo to `localhost:8080`. Select a file to upload. E.g.  `src/test/resources/blacklogo.png`. Click upload.  \r\n\r\n### Expected Behaviour\r\n\r\nFile uploads.\r\n\r\n### Actual Behaviour\r\n\r\nThis exception is thrown: \r\n\r\n```\r\n11:52:57.478 [nioEventLoopGroup-1-2] WARN  i.n.channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.\r\nio.micronaut.web.router.exceptions.UnsatisfiedRouteException: Required argument [CompletedFileUpload file] not specified\r\n\tat io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:280)\r\n\tat io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:123)\r\n\tat io.micronaut.http.server.netty.RoutingInBoundHandler.lambda$buildResultEmitter$12(RoutingInBoundHandler.java:1202)\r\n\tat io.reactivex.internal.operators.flowable.FlowableCreate.subscribeActual(FlowableCreate.java:71)\r\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14479)\r\n\tat io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:37)\r\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14479)\r\n\tat io.reactivex.internal.operators.flowable.FlowableSwitchIfEmpty.subscribeActual(FlowableSwitchIfEmpty.java:32)\r\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14479)\r\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14429)\r\n\tat io.micronaut.http.context.ServerRequestTracingPublisher.lambda$subscribe$0(ServerRequestTracingPublisher.java:53)\r\n\tat io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:53)\r\n\tat io.micronaut.http.context.ServerRequestTracingPublisher.subscribe(ServerRequestTracingPublisher.java:53)\r\n\tat io.reactivex.internal.operators.flowable.FlowableFromPublisher.subscribeActual(FlowableFromPublisher.java:29)\r\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14479)\r\n\tat io.reactivex.internal.operators.flowable.FlowableSwitchMap.subscribeActual(FlowableSwitchMap.java:49)\r\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14479)\r\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14426)\r\n\tat io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run(FlowableSubscribeOn.java:82)\r\n\tat io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:260)\r\n\tat io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker.run(ExecutorScheduler.java:225)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n```\r\n\r\n\r\n\r\n### Environment Information\r\n\r\n- **Operating System**: macOS High Sierra\r\n- **Micronaut Version:** 1.0.0.M4\r\n- **JDK Version:** 1.8.0_181\r\n\r\n### Example Application\r\n\r\nhttps://github.com/micronaut-guides/micronaut-file-upload"}}
{"actor":{"display_login":"sdelamo"}}