{"action":"closed","issue":{"url":"https://api.github.com/repos/tomakehurst/wiremock/issues/766","repository_url":"https://api.github.com/repos/tomakehurst/wiremock","labels_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/766/comments","events_url":"https://api.github.com/repos/tomakehurst/wiremock/issues/766/events","html_url":"https://github.com/tomakehurst/wiremock/issues/766","id":261249032,"number":766,"title":"Multiple entries in a cookie causes 500 on wiremock server","user":{"login":"hunzai","id":208305,"avatar_url":"https://avatars2.githubusercontent.com/u/208305?v=4","gravatar_id":"","url":"https://api.github.com/users/hunzai","html_url":"https://github.com/hunzai","followers_url":"https://api.github.com/users/hunzai/followers","following_url":"https://api.github.com/users/hunzai/following{/other_user}","gists_url":"https://api.github.com/users/hunzai/gists{/gist_id}","starred_url":"https://api.github.com/users/hunzai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hunzai/subscriptions","organizations_url":"https://api.github.com/users/hunzai/orgs","repos_url":"https://api.github.com/users/hunzai/repos","events_url":"https://api.github.com/users/hunzai/events{/privacy}","received_events_url":"https://api.github.com/users/hunzai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-28T09:20:19Z","updated_at":"2017-10-19T12:58:16Z","closed_at":"2017-10-19T12:58:16Z","author_association":"NONE","body":"I am not sure it is a feature or an issue but wanted to report here. Usually we will not send a duplicated entry in the cookie but if we do then it should try to match the request and return e.g. a 404. \r\n\r\nExample request\r\n`curl --cookie \"s=1234; s=1234\" '<wiremock_url>' -v`\r\n\r\nResponse\r\n`> Host: wiremock1-uat.snc1:8083\r\n> User-Agent: curl/7.52.1\r\n> Accept: */*\r\n> Cookie: s=1234; s=1234\r\n> \r\n< HTTP/1.1 500 Server Error\r\n< Cache-Control: must-revalidate,no-cache,no-store\r\n< Content-Type: text/html; charset=ISO-8859-1\r\n< Content-Length: 419\r\n< Connection: close\r\n< Server: Jetty(9.2.z-SNAPSHOT)\r\n< \r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=ISO-8859-1\"/>\r\n<title>Error 500 </title>\r\n</head>\r\n<body>\r\n<h2>HTTP ERROR: 500</h2>\r\n<p>Problem accessing /<PATH>. Reason:\r\n<pre>    java.lang.IllegalArgumentException: Multiple entries with same key: s=1234 and s=1234</pre></p>\r\n<hr /><i><small>Powered by Jetty://</small></i>\r\n</body>\r\n</html>`"}}
{"actor":{"display_login":"tomakehurst"}}