{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/skipper/issues/116","repository_url":"https://api.github.com/repos/zalando/skipper","labels_url":"https://api.github.com/repos/zalando/skipper/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/zalando/skipper/issues/116/comments","events_url":"https://api.github.com/repos/zalando/skipper/issues/116/events","html_url":"https://github.com/zalando/skipper/issues/116","id":138213823,"number":116,"title":"Surprising route behaviour with more specific sub-path routes","user":{"login":"mo-gr","id":95577,"avatar_url":"https://avatars.githubusercontent.com/u/95577?v=3","gravatar_id":"","url":"https://api.github.com/users/mo-gr","html_url":"https://github.com/mo-gr","followers_url":"https://api.github.com/users/mo-gr/followers","following_url":"https://api.github.com/users/mo-gr/following{/other_user}","gists_url":"https://api.github.com/users/mo-gr/gists{/gist_id}","starred_url":"https://api.github.com/users/mo-gr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mo-gr/subscriptions","organizations_url":"https://api.github.com/users/mo-gr/orgs","repos_url":"https://api.github.com/users/mo-gr/repos","events_url":"https://api.github.com/users/mo-gr/events{/privacy}","received_events_url":"https://api.github.com/users/mo-gr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zalando/skipper/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-03T15:41:56Z","updated_at":"2016-03-30T16:19:33Z","closed_at":null,"body":"If I have the following three routes:\r\n\r\n`a: Path(\"/foo/*_\") -> \"https://foo.org\"`\r\n`b: Path(\"/foo/bar\") && Traffic(0.5, \"bar\", \"foobar\") -> \"https://bar.org\"`\r\n`z: * -> \"https://catch.all\"`\r\n\r\nI would expect a request with the path `/foo/bar` to hit `foo.org` in half the time and `bar.org` the other half. However, all the requests, that don't hit `bar.org` end up being route to `catch.all`.\r\n\r\nThis is probably due to the way, the path-match tree is constructed, but it is very surprising and dangerous behaviour."},"comment":{"url":"https://api.github.com/repos/zalando/skipper/issues/comments/203510658","html_url":"https://github.com/zalando/skipper/issues/116#issuecomment-203510658","issue_url":"https://api.github.com/repos/zalando/skipper/issues/116","id":203510658,"user":{"login":"ewgRa","id":735804,"avatar_url":"https://avatars.githubusercontent.com/u/735804?v=3","gravatar_id":"","url":"https://api.github.com/users/ewgRa","html_url":"https://github.com/ewgRa","followers_url":"https://api.github.com/users/ewgRa/followers","following_url":"https://api.github.com/users/ewgRa/following{/other_user}","gists_url":"https://api.github.com/users/ewgRa/gists{/gist_id}","starred_url":"https://api.github.com/users/ewgRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewgRa/subscriptions","organizations_url":"https://api.github.com/users/ewgRa/orgs","repos_url":"https://api.github.com/users/ewgRa/repos","events_url":"https://api.github.com/users/ewgRa/events{/privacy}","received_events_url":"https://api.github.com/users/ewgRa/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T16:19:33Z","updated_at":"2016-03-30T16:19:33Z","body":"Kind of \"match callback\" way.\r\n\r\nIs it critical bug for you?\r\n\r\nI will take it, but don't know when I can finish it. Maybe week, maybe even more. So, if it is critical - feel free to work on fix yourself."}}