Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 50823] Provide alternate failure modes for http on https

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

May 5, 2012, 1:45 AM

Post #1 of 5 (214 views)
Permalink
[Bug 50823] Provide alternate failure modes for http on https

https://issues.apache.org/bugzilla/show_bug.cgi?id=50823

--- Comment #13 from Stefan Fritsch <sf [at] sfritsch> ---
fix will be in 2.4.3: r1334346

--
You are receiving this mail because:
You are the assignee for the bug.


bugzilla at apache

May 8, 2012, 8:47 PM

Post #2 of 5 (200 views)
Permalink
[Bug 50823] Provide alternate failure modes for http on https [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=50823

--- Comment #14 from Nathan Schulte <nmschulte [at] gmail> ---
(In reply to comment #12)
> But if someone provides the javascript that adds the https link, I would be
> happy to add that.

Here is a (i.e. one of many possibly suitable version) JavaScript function that
will append the removed link, block quote and all.

function fix() {
var p = document.getElementsByTagName('p')[0];
var href = window.location.toString().replace(/^.*:\/\//i, 'https://');
var bq = document.createElement('bq');
bq.innerHTML = '<a href="' + href + '"><b>' + href + '</b></a>';
p.parentNode.insertBefore(bq, p.nextSibling);
}

Just in case, it functions as follows:
1) Find the first paragraph (p) element in the document. This should be the
one added by the block of code modified to remove the link, but as I'm
unfamiliar with Apache, I don't know if it's possible for some user
configuration or other code to add another prior.
2) Case-insensitively Replace the protocol, even if it's not "http", with
"https".
3) Create the blockquote element and stuff the link as it's contents, finally
adding the blockquote element and it's children to the document immediately
after the paragraph element.

To test, I added it inside a script element (<script
language="JavaScript"></script>) in the HTML head element of the saved error
page, and added 'onload="fix();"' to the body element. This requires
modification of the head and body elements which may or may not be an option.
I'll whip up another if my assumptions aren't suitable, just let me know my
constraints.

--
You are receiving this mail because:
You are the assignee for the bug.


bugzilla at apache

May 18, 2012, 12:46 PM

Post #3 of 5 (188 views)
Permalink
[Bug 50823] Provide alternate failure modes for http on https [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=50823

Eric Covener <covener [at] gmail> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |hy93 [at] cornell

--- Comment #15 from Eric Covener <covener [at] gmail> ---
*** Bug 53265 has been marked as a duplicate of this bug. ***

--
You are receiving this mail because:
You are the assignee for the bug.


bugzilla at apache

May 18, 2012, 12:47 PM

Post #4 of 5 (186 views)
Permalink
[Bug 50823] Provide alternate failure modes for http on https [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=50823

--- Comment #16 from Eric Covener <covener [at] gmail> ---
(In reply to comment #15)
> *** Bug 53265 has been marked as a duplicate of this bug. ***

undone, ignore.

--
You are receiving this mail because:
You are the assignee for the bug.


bugzilla at apache

May 18, 2012, 12:49 PM

Post #5 of 5 (185 views)
Permalink
[Bug 50823] Provide alternate failure modes for http on https [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=50823

hy93 [at] cornell changed:

What |Removed |Added
----------------------------------------------------------------------------
CC|hy93 [at] cornell |

--
You are receiving this mail because:
You are the assignee for the bug.

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.