Project

General

Profile

Bug #32850

Reports malformed format string

Added by Xavier DELYS 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Reporting
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Hello,

After upgrading Foreman to 2.2.3 I get this error when I try to generate my reports.

malformed format string - %"

When I do a preview in the report editor, it shows me the expected data.
It only happens when I click on generated from the portal.

I have the error on all reports whether they are custom or default as in the trace below

Server trace :

Warning: Logging layout is not multiline_request_pattern.
This output of this command can be incomplete.
2021-06-22T16:33:40 [I|app|18b67c19] Started GET "/templates/report_templates/107-Host%20-%20Statuses/generate" for xxx.xxx.xxx.xxx at 2021-06-22 16:33:40 +0200
2021-06-22T16:33:40 [I|app|18b67c19] Processing by ReportTemplatesController#generate as HTML
2021-06-22T16:33:40 [I|app|18b67c19] Parameters: {"id"=>"107-Host - Statuses"}
2021-06-22T16:33:40 [I|app|18b67c19] Rendering report_templates/generate.html.erb within layouts/application
2021-06-22T16:33:40 [I|app|18b67c19] Rendered report_templates/generate.html.erb within layouts/application (Duration: 6.2ms | Allocations: 6661)
2021-06-22T16:33:40 [W|app|18b67c19] malformed format string - %"
2021-06-22T16:33:40 [I|app|18b67c19] Backtrace for 'malformed format string - %"' error (ActionView::Template::Error): malformed format string - %"
2021-06-22T16:33:40 [I|app|18b67c19] Rendering common/500.html.erb within layouts/application
2021-06-22T16:33:40 [I|app|18b67c19] Rendered common/500.html.erb within layouts/application (Duration: 3.5ms | Allocations: 5851)
2021-06-22T16:33:40 [I|app|18b67c19] Rendered layouts/_application_content.html.erb (Duration: 2.8ms | Allocations: 5614)
2021-06-22T16:33:40 [I|app|18b67c19] Rendering layouts/base.html.erb
2021-06-22T16:33:40 [I|app|18b67c19] Rendered layouts/base.html.erb (Duration: 5.2ms | Allocations: 7007)
2021-06-22T16:33:40 [I|app|18b67c19] Completed 500 Internal Server Error in 35ms (Views: 15.3ms | ActiveRecord: 2.1ms | Allocations: 35069)

Foreman version: 2.4.0
Plugins:
- foreman-tasks 4.0.1
- foreman_ansible 6.2.0
- foreman_memcache 0.1.1
- foreman_remote_execution 4.3.0

Regards

History

#1 Updated by Xavier DELYS 2 months ago

  • Status changed from New to Resolved
  • Fixed in Releases 2.5.3 added

Also available in: Atom PDF