Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2158519 - Legacy rex form is missing options for future or recurring execution
Summary: Legacy rex form is missing options for future or recurring execution
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.13.0
Assignee: Evgeni Golov
QA Contact: Eric Helms
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-05 16:02 UTC by Peter Ondrejka
Modified: 2023-05-03 13:24 UTC (History)
6 users (show)

Fixed In Version: rubygem-foreman_tasks-7.1.1-2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:24:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 35997 0 Normal New Legacy rex form is missing options for future or recurring execution 2023-01-25 14:55:59 UTC
Red Hat Issue Tracker SAT-14825 0 None None None 2023-01-09 14:29:24 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:24:26 UTC

Description Peter Ondrejka 2023-01-05 16:02:36 UTC
Description of problem:
Legacy form doesn't really allow to set future or recurring execution

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

How reproducible:
Always

Steps to Reproduce:
1. I rex wizard, select "Use legacy for"
2. I schedule section, select either "Schedule future execution" or "Set up recurring execution" 

Actual results:
No additional fields appear, browser console shows "Uncaught ReferenceError: trigger_form_selector_binds is not defined"

Expected results:
Fields for setting additional details should appear

Additional info:
workaroundable via the new wizard

Comment 1 Adam Ruzicka 2023-01-25 12:16:40 UTC
When a user visits the legacy form, it tries to load some foreman-tasks assets.

It tries to pull them from $sat_fqdn/assets/foreman_tasks/* , which would correspond to /usr/share/foreman/public/assets/foreman_tasks/* . However /usr/share/foreman/public/assets/foreman_tasks does not exist. To make things more interesting, there is /usr/share/foreman/public/assets/foreman-tasks, which is a symlink to /usr/share/gems/gems/foreman-tasks-$version/public/assets/foreman-tasks. Sadly, not even this directory contains the assets that are requested. The assets live in /usr/share/gems/gems/foreman-tasks-$version/public/assets/foreman_tasks.

I'm not sure neither how the assets get build and placed into their location nor how the symlinks are created, but packaging feels like a good bet.

Comment 2 Evgeni Golov 2023-01-25 14:55:57 UTC
Created redmine issue https://projects.theforeman.org/issues/35997 from this bug

Comment 3 Evgeni Golov 2023-01-25 15:08:23 UTC
needs this PR backported to 6.13: https://github.com/theforeman/foreman-packaging/pull/8974

Comment 4 Bryan Kearney 2023-01-25 16:03:21 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35997 has been resolved.

Comment 5 Eric Helms 2023-02-03 19:11:42 UTC
I followed the reproducer steps, and see the form fields appearing when selecting either Recurring or Future.

Comment 8 errata-xmlrpc 2023-05-03 13:24:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.13 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2097


Note You need to log in before you can comment on or make changes to this bug.