{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1394","labels_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1394/comments","events_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1394/events","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1394","id":104527707,"number":1394,"title":"Use mbstring on string ops on UrlAlias","user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-02T16:59:32Z","updated_at":"2015-09-03T08:49:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/1394","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1394","diff_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1394.diff","patch_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1394.patch"},"body":"> Fixes https://jira.ez.no/browse/EZP-24737\r\n> Status: code ready, tests not updated yet\r\n\r\nUses `mb_strtolower()` when hasing UrlAlias parts to md5."},"comment":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/comments/137381210","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1394#issuecomment-137381210","issue_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1394","id":137381210,"user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T08:49:56Z","updated_at":"2015-09-03T08:49:56Z","body":"I was about to ask if you had cleared persistence cache, but since you're publishing a new item, it shouldn't be an issue.\r\n\r\nWhat happens here is:\r\n- UrlAliasService::lookup() is called with the request URI\r\n- The URI is splitted on the separator\r\n- Each item is passed through md5(strtolower()) to get a hash\r\n- Those hashes are used to match items in `ezurlalias_ml`\r\n\r\nWith `mb_strtolower`, the lowercased string doesn't match what is in the database, as multibyte functions were used to put them here."}}