Closed deining closed 4 months ago
I'm running latest redmine_dmsfplugin (version 3.1.3). My colleague encountered am error while trying to access the DMS. From the logs:
redmine_dmsf
I, [2024-02-15T09:49:52.413063 #59125] INFO -- : [8891d7fd-5f8f-48cb-b873-8957523fc700] Started POST "/projects/dmsf/expand_folder" for 192.168.52.1 at 2024-02-15 09:49:52 +0000 I, [2024-02-15T09:49:52.413801 #59125] INFO -- : [8891d7fd-5f8f-48cb-b873-8957523fc700] Processing by DmsfController#expand_folder as HTML I, [2024-02-15T09:49:52.413844 #59125] INFO -- : [8891d7fd-5f8f-48cb-b873-8957523fc700] Parameters: {"project_id"=>"7", "folder_id"=>"", "row_id"=>"7pspan", "idnt"=>"1", "classes"=>" 23p 7p"} I, [2024-02-15T09:49:52.418940 #59125] INFO -- : [8891d7fd-5f8f-48cb-b873-8957523fc700] Current user: xxxx (id=xx) I, [2024-02-15T09:49:52.454545 #59125] INFO -- : [8891d7fd-5f8f-48cb-b873-8957523fc700] Rendered plugins/redmine_dmsf/app/views/dmsf/query_rows.js.erb (Duration: 31.5ms | Allocations: 12804) I, [2024-02-15T09:49:52.454747 #59125] INFO -- : [8891d7fd-5f8f-48cb-b873-8957523fc700] Completed 500 Internal Server Error in 41ms (ActiveRecord: 11.1ms | Allocations: 15394) F, [2024-02-15T09:49:52.455394 #59125] FATAL -- : [8891d7fd-5f8f-48cb-b873-8957523fc700] [8891d7fd-5f8f-48cb-b873-8957523fc700] ActionView::Template::Error (undefined method `intersect?' for [4, 5]:Array Did you mean? intersection): [8891d7fd-5f8f-48cb-b873-8957523fc700] 23: <% options[:offset] = dmsf_pages.offset %> [8891d7fd-5f8f-48cb-b873-8957523fc700] 24: <% options[:limit] = dmsf_pages.per_page %> [8891d7fd-5f8f-48cb-b873-8957523fc700] 25: <% end %> [8891d7fd-5f8f-48cb-b873-8957523fc700] 26: <% query.dmsf_nodes(options).each do |node| %> [8891d7fd-5f8f-48cb-b873-8957523fc700] 27: <% system = node.title =~ /^\./ %> [8891d7fd-5f8f-48cb-b873-8957523fc700] 28: <% case node.type %> [8891d7fd-5f8f-48cb-b873-8957523fc700] 29: <% when 'project'%> [8891d7fd-5f8f-48cb-b873-8957523fc700] [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/models/dmsf_folder.rb:127:in `permissions?' [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/models/dmsf_query.rb:216:in `block in dmsf_nodes' [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/models/dmsf_query.rb:209:in `delete_if' [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/models/dmsf_query.rb:209:in `dmsf_nodes' [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/views/dmsf/_query_rows.erb:26 [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/views/dmsf/query_rows.js.erb:25 [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:68:in `block (2 levels) in expand_folder' [8891d7fd-5f8f-48cb-b873-8957523fc700] plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:67:in `expand_folder' [8891d7fd-5f8f-48cb-b873-8957523fc700] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
I myself with an admin account can access the resource without problems. Any idea what's going wrong here?
That's my setup:
Environment: Redmine version 5.1.0.stable Rails version 6.1.7.6 Environment production Database adapter PostgreSQL Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme Default SCM: Git 2.43.0 Filesystem Redmine plugins: redmine_dmsf 3.1.3 redmineup_tags 2.0.13
Thanks for your assistance. And thanks for providing redmine_dsmf plugin!
redmine_dsmf
Duplicates #1500.
I'm running latest
redmine_dmsf
plugin (version 3.1.3). My colleague encountered am error while trying to access the DMS. From the logs:I myself with an admin account can access the resource without problems. Any idea what's going wrong here?
That's my setup:
Thanks for your assistance. And thanks for providing
redmine_dsmf
plugin!