{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/114","repository_url":"https://api.github.com/repos/cloudfoundry/gorouter","labels_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/114/comments","events_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/114/events","html_url":"https://github.com/cloudfoundry/gorouter/issues/114","id":134566666,"number":114,"title":"CF allows you to map routes which are too large","user":{"login":"Rylon","id":438452,"avatar_url":"https://avatars.githubusercontent.com/u/438452?v=3","gravatar_id":"","url":"https://api.github.com/users/Rylon","html_url":"https://github.com/Rylon","followers_url":"https://api.github.com/users/Rylon/followers","following_url":"https://api.github.com/users/Rylon/following{/other_user}","gists_url":"https://api.github.com/users/Rylon/gists{/gist_id}","starred_url":"https://api.github.com/users/Rylon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rylon/subscriptions","organizations_url":"https://api.github.com/users/Rylon/orgs","repos_url":"https://api.github.com/users/Rylon/repos","events_url":"https://api.github.com/users/Rylon/events{/privacy}","received_events_url":"https://api.github.com/users/Rylon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-18T12:21:34Z","updated_at":"2016-05-10T14:37:07Z","closed_at":"2016-04-20T23:20:13Z","body":"Hi,\r\n\r\nWe experienced an issue today wherein a user had created an application with a name longer than the limits described in [RFC 1035](http://www.ietf.org/rfc/rfc1035.txt). The RFC describes the maximum length of a fully qualified hostname to be 255 characters, with a limit of 64 characters per label.\r\n\r\nIf you try to use a route created which exceeds this limit, `curl` and `dig` will be unable to complete the request:\r\n\r\n```\r\n$ curl -vi http://this_is_a_really_really_really_really_really_really_long_hostname.yourdomain.com\r\n* Could not resolve host: this_is_a_really_really_really_really_really_really_long_hostname.yourdomain.com\r\n* Closing connection 0\r\n\r\n$ dig this_is_a_really_really_really_really_really_really_long_hostname.yourdomain.com\r\ndig: 'this_is_a_really_really_really_really_really_really_long_hostname.yourdomain.com' is not a legal name (label too long)\r\n```\r\n\r\nPerhaps the CF CLI should refuse to create and map routes which exceed this limit, instead returning a helpful error message to the user?\r\n\r\nThanks,\r\nRyan\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/comments/218177428","html_url":"https://github.com/cloudfoundry/gorouter/issues/114#issuecomment-218177428","issue_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/114","id":218177428,"user":{"login":"Rylon","id":438452,"avatar_url":"https://avatars.githubusercontent.com/u/438452?v=3","gravatar_id":"","url":"https://api.github.com/users/Rylon","html_url":"https://github.com/Rylon","followers_url":"https://api.github.com/users/Rylon/followers","following_url":"https://api.github.com/users/Rylon/following{/other_user}","gists_url":"https://api.github.com/users/Rylon/gists{/gist_id}","starred_url":"https://api.github.com/users/Rylon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rylon/subscriptions","organizations_url":"https://api.github.com/users/Rylon/orgs","repos_url":"https://api.github.com/users/Rylon/repos","events_url":"https://api.github.com/users/Rylon/events{/privacy}","received_events_url":"https://api.github.com/users/Rylon/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T14:37:07Z","updated_at":"2016-05-10T14:37:07Z","body":"@ishustava Oops, sorry for placing it in the wrong location, thanks for moving it for me 👍 "}}