Project

General

Profile

Bug #28167

Report Template execution via hammer fails with "unknown parent permission"

Added by Marek Hulán 5 months ago. Updated 24 days ago.

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

Description

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

Description of problem:

When attempting to execute a report template permission via the CLI, it fails with an error if you attempt to use "--name" of the report template: "ERF42-5227 [Foreman::Exception]: unknown parent permission for api/v2/report_templates#generate"

Version-Release number of selected component (if applicable):

Red Hat Satellite 6.5.2

How reproducible:

Always.

Steps to Reproduce:
1. # hammer report-template generate --name "Applicable errata" --organization myorg

Actual results: Returns error: ERF42-5227 [Foreman::Exception]: unknown parent permission for api/v2/report_templates#generate

Expected results: Report is executed and out is displayed.

Additional info:

Workaround: Specifying the ID number of the report template (from "hammer report-template list" does work).

  1. hammer report-template list
    ----|------------------
    ID | NAME
    ----|------------------
    197 | Applicable errata
    198 | Host statuses CSV
    199 | Registered hosts
    200 | Subscriptions
    ----|------------------
  1. hammer report-template generate --id 197
    (Resulting successful data omitted)

Associated revisions

Revision 84fa72f5 (diff)
Added by Marek Hulán 5 months ago

Fixes #28167 - fix parent permission for reports

When report is generate in scope of some taxonomy, the parent permission
can't be derived for customer action name - 'generate'. We need to
provide a definition for all non-standard action names.

History

#1 Updated by The Foreman Bot 5 months ago

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

#2 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.0.0 added

#3 Updated by Tomer Brisker 5 months ago

  • Subject changed from Report Template execution via hammer fails with "unknown parent permission" to Report Template execution via hammer fails with "unknown parent permission"
  • Fixed in Releases 1.24.0 added
  • Fixed in Releases deleted (2.0.0)

#4 Updated by Marek Hulán 5 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker 24 days ago

  • Category changed from Statistics to Reporting

Also available in: Atom PDF