Bug 2158519

Summary: Legacy rex form is missing options for future or recurring execution
Product: Red Hat Satellite Reporter: Peter Ondrejka <pondrejk>
Component: PackagingAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Eric Helms <ehelms>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: aruzicka, egolov, ehelms, magaphon, rmynar, zhunting
Target Milestone: 6.13.0Keywords: Regression, Triaged, WorkAround
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_tasks-7.1.1-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 13:24:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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