| Summary: | foreman_url to job template gives error message on Preview | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Kavita <kgaikwad> | ||||
| Component: | Remote Execution | Assignee: | Marek Hulan <mhulan> | ||||
| Status: | CLOSED ERRATA | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.2.0 | CC: | adprice, ahumbe, bbuckingham, bkearney, jcallaha, lzap, mburgerh, mhulan, mlele, oshtaier, xdmoon | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1477235 (view as bug list) | Environment: | |||||
| Last Closed: | 2018-02-21 16:49:54 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: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1477235 | ||||||
| Attachments: |
|
||||||
Created redmine issue http://projects.theforeman.org/issues/16806 from this bug Upstream bug assigned to mhulan Upstream bug assigned to mhulan Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16806 has been resolved. Both patches are needed. Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16899 has been resolved. I am fine with 6.2.z for this. Functionality verified by test automation scripts. And it works fine for 6.3 (but not on 6.2.11 -> so cloned BZ to track progress for 6.2) Created attachment 1307630 [details]
Screenshot of fixed issue
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, 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-2018:0336 |
Description of problem: When you add foreman_url to Job Template, save it. On 'Preview' button click, instead of template preview it will give you warning with error undefined method 'url_for'. Version-Release number of selected component (if applicable): 6.2 How reproducible: 100% Steps to Reproduce: 1. Go to Hosts -> Job Templates 2. Create new template 3. Add below code- <%= foreman_url('built') %> 4. Save and click on 'Preview' Actual results: Giving warning - Problem with previewing the template: error during rendering: undefined method `url_for' for #<InputTemplateRenderer:0x007f7562d01d88>. Note that you must save template input changes before you try to preview it. Expected results: It should display the preview of that template. Additional info: