Issue #7212 has been updated by Ben Hughes.

"FIXED" (read: kludged), needs applying to live/etc but I just wanted to work 
out the bug..

<pre>

diff --git i/app/views/devise_mailer/confirmation_instructions.html.erb 
w/app/views/devise_mailer/confirmation_instructions.html.erb
index 88ac3dd..0ff7678 100644
--- i/app/views/devise_mailer/confirmation_instructions.html.erb
+++ w/app/views/devise_mailer/confirmation_instructions.html.erb
@@ -6,7 +6,7 @@
 
 <p>Or by visiting this URL:</p>
 
-<p><%= confirmation_url(@resource, :confirmation_token => 
@resource.confirmation_token) %></p>
+<p><%= confirmation_url(@resource, :confirmation_token => 
@resource.confirmation_token, :protocol => 'https' ) %></p>
 
 <p>Thanks!</p>

</pre>
----------------------------------------
Bug #7212: Confirmation emails include broken link
https://projects.puppetlabs.com/issues/7212

Author: Randall Hansen
Status: Accepted
Priority: Urgent
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 
Affected URL: 


I just registered and received an email with this link:

http://forge.puppetlabs.com:443/users/confirmation?confirmation_token=Zxr6Ek65FEFz0uzvwym8

Clicking on it resulted in this message:

    Bad Request

    Your browser sent a request that this server could not understand.
    Reason: You're speaking plain HTTP to an SSL-enabled server port.
    Instead use the HTTPS scheme to access this URL, please.
      Hint: https://projects.puppetlabs.com/
    Apache/2.2.14 (Ubuntu) Server at projects.puppetlabs.com Port 443

Changing the link to `https` works as expected.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to