-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgumentError: invalid %-encoding #1
Comments
Проблема скорее всего связана с тем как отдаёт строку ActiveDirectory. |
скорее всего связано с длинной строки |
Было бы здорово обработать эту ошибку в плагине |
Поразбирался ещё, проблема в файловом кеше, он неправильно обрезает длинные unicode имена. Возможно стоит поискать способ сокращать имена самостоятельно например хешируя sha256 |
в оригинальном репозитории уже был этот баг и было решение |
Fix name for file name in cache
Hi miramir, Would you like to try to upgrade your rails? |
I use this installation. And can`t upgrade rails. Please apply hot fix. |
Fix #1 ArgumentError: invalid %-encoding. ---fix ActiveSupport::Cache::FileStore#cleanup does not remove expired entries from cache issue which fails on rails version earlier than v5.2.0.
Hi @miramir , |
ArgumentError: invalid %-encoding (%D0%9E%D1%82%D0%B4%D0%B5%D0%BB+%D0%B3%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D1%85+%D0%B8+%D0%BA%D0%BE%D0%BC%D0%BC%D0%B5%D1%80%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D1%85+%D0%B7%D0%B0%D0%BA%D1%83%D/0%BF%D0%BE%D0%BA)
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:144:in
file_path_key' /home/redmine/redmine/plugins/redmine_ldap_sync/lib/ldap_sync/core_ext/file_store.rb:22:in
block in delete_unless'/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:169:in
block in search_dir' /home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
foreach'/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
search_dir' /home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:167:in
block in search_dir'/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
foreach' /home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
search_dir'/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:167:in
block in search_dir' /home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
foreach'/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
search_dir' /home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:167:in
block in search_dir'/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
foreach' /home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb:163:in
search_dir'/home/redmine/redmine/plugins/redmine_ldap_sync/lib/ldap_sync/core_ext/file_store.rb:21:in
delete_unless' /home/redmine/redmine/plugins/redmine_ldap_sync/lib/ldap_sync/infectors/auth_source_ldap.rb:359:in
update_closure_cache!'/home/redmine/redmine/plugins/redmine_ldap_sync/lib/ldap_sync/infectors/auth_source_ldap.rb:101:in
sync_users' /home/redmine/redmine/plugins/redmine_ldap_sync/lib/tasks/ldap_sync.rake:29:in
block (5 levels) in <top (required)>'/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:71:in
each' /home/redmine/data/tmp/bundle/ruby/2.4.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:71:in
each'/home/redmine/redmine/plugins/redmine_ldap_sync/lib/tasks/ldap_sync.rake:27:in
block (4 levels) in <top (required)>' /home/redmine/redmine/vendor/bundle/ruby/2.4.0/gems/rake-12.3.2/exe/rake:27:in
<top (required)>'Tasks: TOP => redmine:plugins:ldap_sync:sync_all => redmine:plugins:ldap_sync:sync_users
The text was updated successfully, but these errors were encountered: