{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/1413","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/1413/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/1413/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/1413/events","html_url":"https://github.com/mholt/caddy/issues/1413","id":206158312,"number":1413,"title":"QUIC Error with PUT Request (ARMv6)","user":{"login":"ubergesundheit","id":1494211,"avatar_url":"https://avatars.githubusercontent.com/u/1494211?v=3","gravatar_id":"","url":"https://api.github.com/users/ubergesundheit","html_url":"https://github.com/ubergesundheit","followers_url":"https://api.github.com/users/ubergesundheit/followers","following_url":"https://api.github.com/users/ubergesundheit/following{/other_user}","gists_url":"https://api.github.com/users/ubergesundheit/gists{/gist_id}","starred_url":"https://api.github.com/users/ubergesundheit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubergesundheit/subscriptions","organizations_url":"https://api.github.com/users/ubergesundheit/orgs","repos_url":"https://api.github.com/users/ubergesundheit/repos","events_url":"https://api.github.com/users/ubergesundheit/events{/privacy}","received_events_url":"https://api.github.com/users/ubergesundheit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-08T10:39:50Z","updated_at":"2017-02-08T11:49:17Z","closed_at":null,"body":"### 1. What version of Caddy are you running (`caddy -version`)?\r\n`Caddy 0.9.5` on Raspberry Pi v1 ARMv6 downloaded using `?os=linux&arch=arm&features=&arm=6` parameters.\r\nPlugins are: filemanager and cors\r\n\r\n### 2. What are you trying to do?\r\nBuild a webdav server for keeweb.info\r\n\r\n### 3. What is your entire Caddyfile?\r\n```text\r\n<my-host-redacted>/pwdav {\r\n  tls <my-address-redacted>\r\n  root /srv/keepass\r\n\r\n  #cors / { \r\n  #  origin https://app.keeweb.info\r\n  #  allow_credentials true\r\n  #  methods POST,GET,OPTIONS,PUT,DELETE,HEAD,OPTIONS,PROPFIND\r\n  #}\r\n\r\n  header / {\r\n    Access-Control-Allow-Origin \"https://app.keeweb.info\"\r\n    Access-Control-Allow-Methods \"POST,GET,OPTIONS,PUT,DELETE,HEAD,OPTIONS,PROPFIND\"\r\n    Access-Control-Allow-Headers \"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization\"\r\n  }\r\n\r\n  status 200 /ok\r\n\r\n  rewrite / {\r\n    if {method} is OPTIONS\r\n    r \\.kdbx\r\n    to /ok\r\n  }\r\n\r\n  rewrite / {\r\n    if {method} is PUT\r\n    r \\.kdbx\r\n    to _fm/{uri}\r\n  }\r\n\r\n\r\n  basicauth /privat.kdbx <my-user-redacted> <my-pass-redacted>\r\n\r\n  filemanager /_fm {\r\n    show /srv/keepass\r\n    webdav /srv/keepass\r\n  }\r\n}\r\n```\r\n\r\n### 4. How did you run Caddy (give the full command and describe the execution environment)?\r\nProvided systemd unit file. I only added the `-quic` flag\r\n\r\n\r\n### 5. What did you expect to see?\r\nJust wanted to report this issue. I simply can deactivate quic and it works.\r\n\r\n### 6. What did you see instead (give full error messages and/or log)?\r\nFrom `journalctl -f -u caddy`\r\n```\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: panic: interface conversion: io.ReadCloser is struct { io.Reader; io.Closer }, not *h2quic.requestBody\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: goroutine 43 [running]:\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: panic(0x785ed0, 0x114e4e60)\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: /usr/local/go/src/runtime/panic.go:500 +0x33c\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: github.com/lucas-clemente/quic-go/h2quic.(*Server).handleRequest.func1(0x111654c0, 0x114b1530, 0x114de280, 0x114e4a00, 0xaaf978, 0x11047960)\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: /home/caddy/go/src/github.com/lucas-clemente/quic-go/h2quic/server.go:193 +0x1a0\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: created by github.com/lucas-clemente/quic-go/h2quic.(*Server).handleRequest\r\nFeb 08 10:33:16 <my-host-redacted> caddy[14719]: /home/caddy/go/src/github.com/lucas-clemente/quic-go/h2quic/server.go:202 +0x83c\r\n```\r\n\r\n### 7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?\r\nDownload caddy on a raspberry pi v1, use my caddyfile and put a kdbx file in /srv/keepass and try to save in https://app.keeweb.info"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/278306864","html_url":"https://github.com/mholt/caddy/issues/1413#issuecomment-278306864","issue_url":"https://api.github.com/repos/mholt/caddy/issues/1413","id":278306864,"user":{"login":"Henrocker","id":15855905,"avatar_url":"https://avatars.githubusercontent.com/u/15855905?v=3","gravatar_id":"","url":"https://api.github.com/users/Henrocker","html_url":"https://github.com/Henrocker","followers_url":"https://api.github.com/users/Henrocker/followers","following_url":"https://api.github.com/users/Henrocker/following{/other_user}","gists_url":"https://api.github.com/users/Henrocker/gists{/gist_id}","starred_url":"https://api.github.com/users/Henrocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henrocker/subscriptions","organizations_url":"https://api.github.com/users/Henrocker/orgs","repos_url":"https://api.github.com/users/Henrocker/repos","events_url":"https://api.github.com/users/Henrocker/events{/privacy}","received_events_url":"https://api.github.com/users/Henrocker/received_events","type":"User","site_admin":false},"created_at":"2017-02-08T11:49:17Z","updated_at":"2017-02-08T11:49:17Z","body":"You can simply recompile caddy from here by:\r\n\r\n`go get -u github.com/mholt/caddy/caddy`\r\n\r\n`cd $GOPATH/src/github.com/mholt/caddy/caddy`\r\n\r\n`./build.bash {newBinaryName}`\r\n\r\nNow copy the binary from `cd $GOPATH/bin/{newBinaryName}`\r\nto your running directory and start caddy again with the usual service file and the quic flag."}}
{"actor":{"display_login":"Henrocker"}}