{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12023","labels_url":"https://api.github.com/repos/golang/go/issues/12023/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12023/comments","events_url":"https://api.github.com/repos/golang/go/issues/12023/events","html_url":"https://github.com/golang/go/issues/12023","id":99088510,"number":12023,"title":"net/url: certain url's with mysql schemes no longer parse in 1.5-beta3","user":{"login":"jmhodges","id":598,"avatar_url":"https://avatars.githubusercontent.com/u/598?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhodges","html_url":"https://github.com/jmhodges","followers_url":"https://api.github.com/users/jmhodges/followers","following_url":"https://api.github.com/users/jmhodges/following{/other_user}","gists_url":"https://api.github.com/users/jmhodges/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhodges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhodges/subscriptions","organizations_url":"https://api.github.com/users/jmhodges/orgs","repos_url":"https://api.github.com/users/jmhodges/repos","events_url":"https://api.github.com/users/jmhodges/events{/privacy}","received_events_url":"https://api.github.com/users/jmhodges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-05T00:17:46Z","updated_at":"2015-08-05T00:44:29Z","closed_at":null,"body":"The URL `mysql://boulder@tcp(localhost:3306)/boulder_test?parseTime=true` would parse and re-encode correctly in go 1.4.2.\r\n\r\nHowever, in 1.5.0-beta3, `url.Parse(\"mysql://boulder@tcp(localhost:3306)/boulder_test?parseTime=true\")` now returns the error message:\r\n\r\n    parse mysql://boulder@tcp(localhost:3306)/boulder_test?parseTime=true: invalid port \":3306)\" after host\r\n\r\nThis was found in go-sql-driver/mysql#362."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/127805202","html_url":"https://github.com/golang/go/issues/12023#issuecomment-127805202","issue_url":"https://api.github.com/repos/golang/go/issues/12023","id":127805202,"user":{"login":"liviosoares","id":888951,"avatar_url":"https://avatars.githubusercontent.com/u/888951?v=3","gravatar_id":"","url":"https://api.github.com/users/liviosoares","html_url":"https://github.com/liviosoares","followers_url":"https://api.github.com/users/liviosoares/followers","following_url":"https://api.github.com/users/liviosoares/following{/other_user}","gists_url":"https://api.github.com/users/liviosoares/gists{/gist_id}","starred_url":"https://api.github.com/users/liviosoares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liviosoares/subscriptions","organizations_url":"https://api.github.com/users/liviosoares/orgs","repos_url":"https://api.github.com/users/liviosoares/repos","events_url":"https://api.github.com/users/liviosoares/events{/privacy}","received_events_url":"https://api.github.com/users/liviosoares/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T00:44:29Z","updated_at":"2015-08-05T00:44:29Z","body":"I have a similar issue with MongoDB URIs.\r\n\r\n`mongodb://ip1,ip2,ip3` used to parse and re-encode fine in various Go versions (including 1.4.2)\r\n\r\nNow, when re-encoding into string, I get the `mongodb://ip1%2Cip2%2Cip3`.\r\n\r\nAs far as I understand the code 'encodeHost' was added as part of commit 8e95654ac84d5a5ad2303bedc26065a057b263fc. The decision in the commit was to allow only reserved characters to be unencoded. The sub-delimiters that could be unescaped (including commas and parenthesis) were chosen to be escaped.\r\n\r\nThis choice is what is causing issues for us."}}