{"action":"created","issue":{"url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/238","repository_url":"https://api.github.com/repos/dmitryd/typo3-realurl","labels_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/238/comments","events_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/238/events","html_url":"https://github.com/dmitryd/typo3-realurl/issues/238","id":175010981,"number":238,"title":"Wrong 404 with existing records","user":{"login":"webian","id":462601,"avatar_url":"https://avatars.githubusercontent.com/u/462601?v=3","gravatar_id":"","url":"https://api.github.com/users/webian","html_url":"https://github.com/webian","followers_url":"https://api.github.com/users/webian/followers","following_url":"https://api.github.com/users/webian/following{/other_user}","gists_url":"https://api.github.com/users/webian/gists{/gist_id}","starred_url":"https://api.github.com/users/webian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webian/subscriptions","organizations_url":"https://api.github.com/users/webian/orgs","repos_url":"https://api.github.com/users/webian/repos","events_url":"https://api.github.com/users/webian/events{/privacy}","received_events_url":"https://api.github.com/users/webian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-05T07:31:27Z","updated_at":"2016-09-05T09:38:56Z","closed_at":null,"body":"Hello @dmitryd, in development branch of Realurl 2 probably there's a problem with array_shift of $pathSegments in method `decodePostVarSets`. I get 404 with [this auto configuration of EXT:cal](http://pastebin.com/jeKWvSyq).\r\n\r\nLong story short: the while condition `count($pathSegments)` should be `count($pathSegments) > 0 && $pathSegments[0] <> ''` because the method `decodeSingleVariable` could change $pathSegments to have only one element = ''.  So the `while` continue and ends up in method `handleNonExistingPostVarSet` and so the 404.\r\n\r\nI can make a PR if needed but I'm not sure if changing the condition is the right solution.\r\n\r\nBest regards,\r\nChristian\r\n"},"comment":{"url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/comments/244703997","html_url":"https://github.com/dmitryd/typo3-realurl/issues/238#issuecomment-244703997","issue_url":"https://api.github.com/repos/dmitryd/typo3-realurl/issues/238","id":244703997,"user":{"login":"dmitryd","id":306133,"avatar_url":"https://avatars.githubusercontent.com/u/306133?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitryd","html_url":"https://github.com/dmitryd","followers_url":"https://api.github.com/users/dmitryd/followers","following_url":"https://api.github.com/users/dmitryd/following{/other_user}","gists_url":"https://api.github.com/users/dmitryd/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryd/subscriptions","organizations_url":"https://api.github.com/users/dmitryd/orgs","repos_url":"https://api.github.com/users/dmitryd/repos","events_url":"https://api.github.com/users/dmitryd/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryd/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T09:38:56Z","updated_at":"2016-09-05T09:38:56Z","body":"`count($pathSegments)` is the same as `count($pathSegments) > 0` but `$pathSegments[0] <> ''` is probably wrong because path segments can be empty in certain cases.\r\n\r\nI will look deeper into it. Can you post some urls that do not work here and also a better description of  a problem (just \"there is a problem\" does not tell me much)."}}
{"actor":{"display_login":"dmitryd"}}