Project

General

Profile

Actions

Defect #37814

closed

Plugins that serialize Date or Time objects cause Psych::DisallowedClass exception

Added by Alex Overchenko over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I'm upgrading Redmine 4.2.7 to 4.2.8 (docker images) and cannot view any page after user login was done on website.

Upgraded web UI renders that for me:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back

Docker logs:

redmine_1  | I, [2022-10-22T17:11:52.640849 #1]  INFO -- : Processing by WelcomeController#index as HTML
redmine_1  | I, [2022-10-22T17:11:52.659002 #1]  INFO -- :   Current user: XXX (id=YY)
redmine_1  | I, [2022-10-22T17:11:52.687604 #1]  INFO -- :   Rendering welcome/index.html.erb within layouts/base
redmine_1  | I, [2022-10-22T17:11:52.712666 #1]  INFO -- :   Rendered collection of news/_news.html.erb [5 times] (22.0ms)
redmine_1  | I, [2022-10-22T17:11:52.716957 #1]  INFO -- :   Rendered welcome/index.html.erb within layouts/base (29.2ms)
redmine_1  | I, [2022-10-22T17:11:52.719162 #1]  INFO -- : Completed 500 Internal Server Error in 78ms (ActiveRecord: 21.9ms)
redmine_1  | F, [2022-10-22T17:11:52.719874 #1] FATAL -- :   
redmine_1  | F, [2022-10-22T17:11:52.719920 #1] FATAL -- : ActionView::Template::Error (Tried to load unspecified class: Date):
redmine_1  | F, [2022-10-22T17:11:52.720092 #1] FATAL -- :     11: <%= favicon %>
redmine_1  |     12: <%= stylesheet_link_tag 'jquery/jquery-ui-1.13.2', 'tribute-5.1.3', 'application', 'responsive', :media => 'all' %>
redmine_1  |     13: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
redmine_1  |     14: <%= javascript_heads %>
redmine_1  |     15: <%= heads_for_theme %>
redmine_1  |     16: <%= heads_for_auto_complete(@project) %>
redmine_1  |     17: <%= call_hook :view_layouts_base_html_head %>
redmine_1  | F, [2022-10-22T17:11:52.720259 #1] FATAL -- :   
redmine_1  | F, [2022-10-22T17:11:52.720405 #1] FATAL -- : app/models/user_preference.rb:69:in `[]'
redmine_1  | app/models/user_preference.rb:87:in `warn_on_leaving_unsaved'
redmine_1  | app/helpers/application_helper.rb:1713:in `javascript_heads'
redmine_1  | app/views/layouts/base.html.erb:14:in `_app_views_layouts_base_html_erb__593409969835306285_78780'
redmine_1  | lib/redmine/sudo_mode.rb:61:in `sudo_mode'

I'm using MySQL 5.7 as a database.

I have no installed plugins.

I reproduce that error on default configuration: block mapping my configuration to container.

Migrations were redone manually, as described redmineupgrade (https://www.redmine.org/projects/redmine/wiki/Redmineupgrade), step 4 & 5

Now I rolled back to 4.2.7 version, but it looks like I cannot receive any upgrade. That sounds bad.


Files

Screenshot from 2022-10-22 20-21-17.png (19.2 KB) Screenshot from 2022-10-22 20-21-17.png Web UI error Alex Overchenko, 2022-10-22 19:21
Actions

Also available in: Atom PDF