{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21576","labels_url":"https://api.github.com/repos/rails/rails/issues/21576/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21576/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21576/events","html_url":"https://github.com/rails/rails/issues/21576","id":105815245,"number":21576,"title":"file_path_key fails in active_support/cache/file_store.rb for long paths","user":{"login":"madej","id":1527631,"avatar_url":"https://avatars.githubusercontent.com/u/1527631?v=3","gravatar_id":"","url":"https://api.github.com/users/madej","html_url":"https://github.com/madej","followers_url":"https://api.github.com/users/madej/followers","following_url":"https://api.github.com/users/madej/following{/other_user}","gists_url":"https://api.github.com/users/madej/gists{/gist_id}","starred_url":"https://api.github.com/users/madej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madej/subscriptions","organizations_url":"https://api.github.com/users/madej/orgs","repos_url":"https://api.github.com/users/madej/repos","events_url":"https://api.github.com/users/madej/events{/privacy}","received_events_url":"https://api.github.com/users/madej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T14:15:19Z","updated_at":"2015-09-13T14:57:25Z","closed_at":null,"body":"This issue leads to exception in URI.decode_www_form_component if cutting path was in a middle of separator (%2F) or just returns non existing key.\r\n\r\nin def file_path_key(path)\r\nfname = path[cache_path.to_s.size..-1].split(File::SEPARATOR, 4).last\r\n\r\ndoesn't take on account path might be cut into pieces of FILENAME_MAX_SIZE in key_file_path.\r\nchanging it to:\r\nfname = path[cache_path.to_s.size..-1].split(File::SEPARATOR, 4).last.gsub(File::SEPARATOR, '')\r\n\r\nfixes the problem."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/139884988","html_url":"https://github.com/rails/rails/issues/21576#issuecomment-139884988","issue_url":"https://api.github.com/repos/rails/rails/issues/21576","id":139884988,"user":{"login":"agis-","id":827224,"avatar_url":"https://avatars.githubusercontent.com/u/827224?v=3","gravatar_id":"","url":"https://api.github.com/users/agis-","html_url":"https://github.com/agis-","followers_url":"https://api.github.com/users/agis-/followers","following_url":"https://api.github.com/users/agis-/following{/other_user}","gists_url":"https://api.github.com/users/agis-/gists{/gist_id}","starred_url":"https://api.github.com/users/agis-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agis-/subscriptions","organizations_url":"https://api.github.com/users/agis-/orgs","repos_url":"https://api.github.com/users/agis-/repos","events_url":"https://api.github.com/users/agis-/events{/privacy}","received_events_url":"https://api.github.com/users/agis-/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T14:57:25Z","updated_at":"2015-09-13T14:57:25Z","body":"@madej What rails version are you on? Also, can you provide a script that reproduces the issue?"}}