Actions
Defect #43164
closedDeleting role that used by many projects raises CookieOverflow error
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Administration
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Deleting role that used by many projects (in my environment, it is used in 30 projects) raises ActionDispatch::Cookies::CookieOverflow.
The flash message is too long to store session.
# app/controllers/roles_controller.rb def destroy ... flash[:error] += l(:error_can_not_remove_role_reason_members_html, projects: links) ... end
ActionDispatch::Cookies::CookieOverflow (_redmine_session cookie overflowed with size 4206 bytes): actionpack (7.2.2.2) lib/action_dispatch/middleware/cookies.rb:612:in `check_for_overflow!' actionpack (7.2.2.2) lib/action_dispatch/middleware/cookies.rb:694:in `commit' actionpack (7.2.2.2) lib/action_dispatch/middleware/cookies.rb:530:in `[]=' actionpack (7.2.2.2) lib/action_dispatch/middleware/session/cookie_store.rb:117:in `set_cookie' ...
It is better to use flash.now instead of flash.
Files
Related issues
Updated by Go MAEDA about 23 hours ago
- Related to Feature #42441: Improve error message on role deletion by listing projects using the role added
Updated by Go MAEDA about 23 hours ago
- Related to Defect #43174: CookieOverflow error when deleting a tracker used by many projects added
Actions