Project

General

Profile

Bug #25586

Non-admin user can't generate report if it has any user input

Added by Marek Hulán 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Statistics
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:
Non-admin user can't generate report if it has any user input. Not even if they have all ready-made roles + reporting related rights. Reports without user inputs can be generated.

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

How reproducible:
Deterministic

Steps to Reproduce:
1. Create a user that is not admin, with correct taxonomies and all Roles
2. Log in as that user
3. Monitor -> Report Templates
4. Generate "Host statuses CSV"
5. Submit

Actual results:
1) Pop-up error:
"ERF47-7719 [TemplateInput::ValueNotReady]: Input 'hosts' is not ready for rendering"
2) Traceback (attached)

Expected results:
Report generated

Associated revisions

Revision 05151085 (diff)
Added by Marek Hulán 4 months ago

Fixes #25586 - fix the permission name

History

#1 Updated by The Foreman Bot 4 months ago

  • Assignee set to Marek Hulán
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6292 added

#2 Updated by Timo Goebel 4 months ago

  • Subject changed from Non-admin user can't generate report if it has any user input to Non-admin user can't generate report if it has any user input
  • Fixed in Releases 1.21.0 added

#3 Updated by Marek Hulán 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Marek Hulán 4 months ago

  • Fixed in Releases 1.20.1 added

Tomer, this means that 1.20 new reporting feature works only for admin users. If it's not too late, I'd consider this for 1.20.1 or 1.20.2. I'm setting 1.20.1 for now as well, to raise attention.

Also available in: Atom PDF