Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3709

Patch to fix invalid XHTML in web-console's 404 and 500 pages

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.6.0
    • Camel
    • This is really N/A for this issue, but we are on Linux (RHEL6) VMs.

    • Patch Available

    Description

      We created a monitor that utilizes calls to the web-console to determine stuck messages. Occasionally, requests come back 404 (because the message disappears between calls) and the monitor dies because the XHTML for that page is invalid. This patch makes the 404 and 500 pages valid in the eyes of the w3c markup validation service.

      Note: I'm placing the patch here because I do not see a place to upload it on this form. If it appears later, I will attached.

      Index: activemq-web-console/src/main/webapp/500.html
      ===================================================================
      — activemq-web-console/src/main/webapp/500.html (revision 1242141)
      +++ activemq-web-console/src/main/webapp/500.html (working copy)
      @@ -22,8 +22,7 @@

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <!DOCTYPE html PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      -<html>
      +<html xmlns='http://www.w3.org/1999/xhtml'>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Apache ActiveMQ</title>
      @@ -67,7 +66,7 @@
      <div class="top_red_bar">
      <div id="site-breadcrumbs">
      </div>

      • <div id="site-quicklinks"><P>
        + <div id="site-quicklinks"><p>
        <a href="http://activemq.apache.org/support.html"
        title="Get help and support using Apache ActiveMQ">Support</a></p>
        </div>
        @@ -93,7 +92,7 @@
        <div class="navigation">
        <div class="navigation_top">
        <div class="navigation_bottom">
      • <H3>Useful Links</H3>
        + <h3>Useful Links</h3>

      <ul class="alternate" type="square">
      <li><a href="http://activemq.apache.org/"
      Index: activemq-web-console/src/main/webapp/404.html
      ===================================================================
      — activemq-web-console/src/main/webapp/404.html (revision 1242141)
      +++ activemq-web-console/src/main/webapp/404.html (working copy)
      @@ -22,8 +22,7 @@

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <!DOCTYPE html PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      -<html>
      +<html xmlns='http://www.w3.org/1999/xhtml'>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Apache ActiveMQ</title>
      @@ -67,7 +66,7 @@
      <div class="top_red_bar">
      <div id="site-breadcrumbs">
      </div>

      • <div id="site-quicklinks"><P>
        + <div id="site-quicklinks"><p>
        <a href="http://activemq.apache.org/support.html"
        title="Get help and support using Apache ActiveMQ">Support</a></p>
        </div>
        @@ -92,7 +91,7 @@
        <div class="navigation">
        <div class="navigation_top">
        <div class="navigation_bottom">
      • <H3>Useful Links</H3>
        + <h3>Useful Links</h3>

      <ul class="alternate" type="square">
      <li><a href="http://activemq.apache.org/"

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            labthug Adrian Michael Nida
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment