Project

General

Profile

Feature #25732

Generated report file has MIME type text/plain

Added by Marek Hulán almost 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Reporting
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1658566

Description of problem:
Generated report file has MIME type text/plain rather than text/csv (as opposed to e.g. exported host list [Hosts -> All Hosts -> Export] which is correctly text/csv).

Version-Release number of selected component (if applicable):
Tried on Sat 6.5 snap 7

How reproducible:
Deterministic

Steps to Reproduce:
1. Monitor -> Report Templates
2. Click Generate for some template
3. Submit

Actual results:
Download starts, type is shown as text/plain

Expected results:
Download starts, type is shown as text/csv


Related issues

Related to Foreman - Feature #26641: Ability to set the file extension for generated reportsClosed

Associated revisions

Revision e278f236 (diff)
Added by Marek Hulán about 1 year ago

Fixes #25732, #26641 - report mimetypes and format (#6875)

Detect whether a template supports selection of format by using
report_render macro. If it does, allow a user to chose one of the
supported format. If not use plain text.

History

#1 Updated by The Foreman Bot almost 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6423 added

#2 Updated by Amit Karsale almost 2 years ago

  • Assignee set to Amit Karsale
  • Subject changed from Generated report file has MIME type text/plain to Generated report file has MIME type text/plain

#3 Updated by Marek Hulán over 1 year ago

  • Related to Feature #26641: Ability to set the file extension for generated reports added

#4 Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/theforeman/foreman/pull/6875 added

#5 Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases 1.24.0 added

#6 Updated by Marek Hulán about 1 year ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Tomer Brisker 8 months ago

  • Category changed from Statistics to Reporting

Also available in: Atom PDF