Project

General

Profile

Bug #1129

Summary Puppet Report - require_ssl

Added by Craig White over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Embedded links for hosts in Summary Puppet Report were all http and not https - even if Foreman::Settings::require_ssl true

Patch below works for me...

/var/www/foreman/app/views/host_mailer# diff -u _link_to_host.text.html.erb _link_to_host.text.html.erb-new


--- _link_to_host.text.html.erb    2011-08-23 08:55:51.603479377 -0700
+++ _link_to_host.text.html.erb-new    2011-08-23 08:55:39.993358933 -0700
@@ -1,5 +1,5 @@
 <td style="border: 1px solid #FF9933;
   border-collapse: collapse;
   padding: 4px;
-  background-color: #FFFFFF;"><%= link_to host, host_path(:id => host, :host => @url, :only_path => false) %>
+  background-color: #FFFFFF;"><%= link_to host, host_path(:id => host, :host => @url, :only_path => false, :protocol => SETTINGS[:require_ssl] == true ? "https://" : "http://") %>
 </td>

Associated revisions

Revision 7e46bb61 (diff)
Added by Ohad Levy about 11 years ago

fixes #1129 Summary Puppet Report - require_ssl, thanks to

History

#1 Updated by Ohad Levy about 11 years ago

  • Assignee set to Craig White
  • Target version set to 1.0

would you mind sending it as a git patch? this way you would get your credit :)

#2 Updated by Craig White about 11 years ago

I know next to nothing about making a git patch but don't actually care about credit anyway. If you want to clue me in on how to make a git patch file, I'd be happy to do it.

#3 Updated by Jim Bailey about 11 years ago

#4 Updated by Ohad Levy about 11 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF