You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Yoav Shapira <yo...@apache.org> on 2013/09/11 16:29:31 UTC

Download links broken on main web site?

Browsing http://tomcat.apache.org and clicking on the links in the
left-hand menu's Download section, e.g. this one for Tomcat 7.0, leads
to a broken page: http://tomcat.apache.org/download-70.cgi.

Problem running mirror.cgi; if it persists, contact <in...@apache.org>.

In the meantime, try <http://www.apache.org/dyn/closer.cgi>

Traceback (most recent call last):
  File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 143, in mirrorwrap
    return mirrorsapp(environ, start_response)
  File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 251, in mirrorsapp
    template.generate(output, data)
  File "/www/www.apache.org/dyn/mirrors/ezt.py", line 141, in generate
    self._execute(self.program, fp, ctx)
  File "/www/www.apache.org/dyn/mirrors/ezt.py", line 301, in _execute
    method(method_args, fp, ctx, filename, line_number)
  File "/www/www.apache.org/dyn/mirrors/ezt.py", line 321, in _cmd_subst
    fmt = _get_value(valref, ctx, filename, line_number)
  File "/www/www.apache.org/dyn/mirrors/ezt.py", line 486, in _get_value
    raise UnknownReference(refname, filename, line_number)
UnknownReference: if in file
/x1/www/tomcat.apache.org/download-70.html at line 2

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Download links broken on main web site?

Posted by Mark Thomas <ma...@apache.org>.
On 11/09/2013 16:12, Konstantin Preißer wrote:
> Hi Mark,
> 
> (sorry - hit send too early)
> 
>> -----Original Message-----
>> From: Mark Thomas [mailto:markt@apache.org]
>> Sent: Wednesday, September 11, 2013 5:02 PM
>>
>> For now, I just removed the IE fixes from the generated download pages.
>>
>> With the immediate issue fixed, we can figure out a longer term solution.
> 
> OK, thank you.
> 
> Do you know where I can get information about the CGI scripts (e.g. how to prevent them from interpreting conditional comments)?

The source is here:
http://svn.apache.org/repos/asf/infrastructure/site/trunk/content/dyn/

which will lead you to here:
http://code.google.com/p/ezt/wiki/Syntax

You need to output '[[]' wherever you want '[' but only for the download
pages.

Mark


> 
> I have a fix now for the IE8 layout issues without using conditional comments (but it feels not as tidy as using the conditional comments).
> 
> 
> Regards,
> Konstantin Preißer
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


RE: Download links broken on main web site?

Posted by Konstantin Preißer <ve...@t-online.de>.
Hi Mark,

(sorry - hit send too early)

> -----Original Message-----
> From: Mark Thomas [mailto:markt@apache.org]
> Sent: Wednesday, September 11, 2013 5:02 PM
> 
> For now, I just removed the IE fixes from the generated download pages.
> 
> With the immediate issue fixed, we can figure out a longer term solution.

OK, thank you.

Do you know where I can get information about the CGI scripts (e.g. how to prevent them from interpreting conditional comments)?

I have a fix now for the IE8 layout issues without using conditional comments (but it feels not as tidy as using the conditional comments).


Regards,
Konstantin Preißer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


RE: Download links broken on main web site?

Posted by Konstantin Preißer <ve...@t-online.de>.
Hi Mark,

> -----Original Message-----
> From: Mark Thomas [mailto:markt@apache.org]
> Sent: Wednesday, September 11, 2013 5:02 PM
> For now, I just removed the IE fixes from the generated download pages.
> 
> With the immediate issue fixed, we can figure out a longer term solution.
> 
> Mark
> 
> 
> >
> >
> > Index: xdocs/stylesheets/tomcat-site.xsl
> >
> ==========================================================
> =========
> > --- xdocs/stylesheets/tomcat-site.xsl	(revision 1521880)
> > +++ xdocs/stylesheets/tomcat-site.xsl	(working copy)
> > @@ -58,8 +58,6 @@
> >         specified in the XML declaration.
> >    -->
> >    <link href="stylesheets/tomcat.css" rel="stylesheet" type="text/css"/>
> > -  <!-- CSS hack for IEs ? 9. -->
> > -  <xsl:comment><![CDATA[[if IE]><link href="stylesheets/tomcat-ie-
> fix.css" rel="stylesheet" type="text/css"/><![endif]]]></xsl:comment>
> >    <link href="stylesheets/tomcat-printer.css" rel="stylesheet"
> type="text/css" media="print"/>
> >      <xsl:apply-templates select="meta"/>
> >      <title><xsl:value-of select="$project/title"/> - <xsl:value-of
> select="properties/title"/></title>
> > @@ -86,11 +84,7 @@
> >    <body>
> >    <div id="wrapper">
> >    <!-- Header -->
> > -  <!-- Workaround for old IEs: use <div id="..."> instead of <header
> id="...">, otherwise the CSS will not apply.
> > -       IE ? 10 dropped support for conditional comments in Standards Mode,
> so there it will use <header>. -->
> > -  <xsl:comment><![CDATA[[if IE]><div
> id="header"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if
> !IE]>]]></xsl:comment>
> >    <header id="header">
> > -    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
> >      <div>
> >        <div>
> >            <xsl:variable name="src">
> > @@ -119,10 +113,7 @@
> >          <div style="clear: left;"/>
> >        </div>
> >      </div>
> > -	<!-- Workaround for old IEs, see above. -->
> > -    <xsl:comment><![CDATA[[if
> IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if
> !IE]>]]></xsl:comment>
> >    </header>
> > -  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
> >
> >
> >    <div id="middle">
> > @@ -149,17 +140,12 @@
> >    </div>
> >
> >    <!-- Footer -->
> > -  <!-- Workarounds for old IEs, see above. -->
> > -  <xsl:comment><![CDATA[[if IE]><div
> id="footer"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if
> !IE]>]]></xsl:comment>
> >    <footer id="footer">
> > -    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
> >      Copyright © 1999-2013, The Apache Software Foundation
> >      <br/>
> >      Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache
> Tomcat
> >      project logo are trademarks of the Apache Software Foundation.
> > -    <xsl:comment><![CDATA[[if
> IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if
> !IE]>]]></xsl:comment>
> >    </footer>
> > -  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
> >  </div>
> >  </body>
> >  </html>
> >
> >
> >
> > That should restore the download pages, but will revert the IE8 fixes.
> >
> > Regards,
> > Konstantin Preißer
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: dev-help@tomcat.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Download links broken on main web site?

Posted by Mark Thomas <ma...@apache.org>.
On 11/09/2013 15:45, Konstantin Preißer wrote:
> Hi,
> 
>> -----Original Message-----
>> From: Mark Thomas [mailto:markt@apache.org]
>> Sent: Wednesday, September 11, 2013 4:38 PM
>> To: Tomcat Developers List
>> Cc: Yoav Shapira
>> Subject: Re: Download links broken on main web site?
>>
>> On 11/09/2013 15:29, Yoav Shapira wrote:
>>> Browsing http://tomcat.apache.org and clicking on the links in the
>>> left-hand menu's Download section, e.g. this one for Tomcat 7.0, leads
>>> to a broken page: http://tomcat.apache.org/download-70.cgi.
>>
>> Dropping infra@ from the cc list. This looks like our problem at the moment.
>>
>> I'm fairly sure the recent format updates have broken the download pages.
>> Just trying to figure out how that happened.
> 
> My bad - it seems the IE conditional comments which I added to fix the layout in IE 8 now break the CGI script - it seems to treat the conditional comments as CGI commands.

Yep.

> Sorry, I have no experience with the CGI scripts (and why they interpret HTML comments). To restore the download pages, you can revert the IE8 fixes:

For now, I just removed the IE fixes from the generated download pages.

With the immediate issue fixed, we can figure out a longer term solution.

Mark


> 
> 
> Index: xdocs/stylesheets/tomcat-site.xsl
> ===================================================================
> --- xdocs/stylesheets/tomcat-site.xsl	(revision 1521880)
> +++ xdocs/stylesheets/tomcat-site.xsl	(working copy)
> @@ -58,8 +58,6 @@
>         specified in the XML declaration.
>    -->
>    <link href="stylesheets/tomcat.css" rel="stylesheet" type="text/css"/>
> -  <!-- CSS hack for IEs ? 9. -->
> -  <xsl:comment><![CDATA[[if IE]><link href="stylesheets/tomcat-ie-fix.css" rel="stylesheet" type="text/css"/><![endif]]]></xsl:comment>
>    <link href="stylesheets/tomcat-printer.css" rel="stylesheet" type="text/css" media="print"/>
>      <xsl:apply-templates select="meta"/>
>      <title><xsl:value-of select="$project/title"/> - <xsl:value-of select="properties/title"/></title>
> @@ -86,11 +84,7 @@
>    <body>
>    <div id="wrapper">
>    <!-- Header -->
> -  <!-- Workaround for old IEs: use <div id="..."> instead of <header id="...">, otherwise the CSS will not apply.
> -       IE ? 10 dropped support for conditional comments in Standards Mode, so there it will use <header>. -->
> -  <xsl:comment><![CDATA[[if IE]><div id="header"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
>    <header id="header">
> -    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
>      <div>
>        <div>
>            <xsl:variable name="src">
> @@ -119,10 +113,7 @@
>          <div style="clear: left;"/>
>        </div>
>      </div>
> -	<!-- Workaround for old IEs, see above. -->
> -    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
>    </header>
> -  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
>    
>    
>    <div id="middle">
> @@ -149,17 +140,12 @@
>    </div>
>  
>    <!-- Footer -->
> -  <!-- Workarounds for old IEs, see above. -->
> -  <xsl:comment><![CDATA[[if IE]><div id="footer"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
>    <footer id="footer">
> -    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
>      Copyright © 1999-2013, The Apache Software Foundation
>      <br/>
>      Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat
>      project logo are trademarks of the Apache Software Foundation.
> -    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
>    </footer>
> -  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
>  </div>
>  </body>
>  </html>
> 
> 
> 
> That should restore the download pages, but will revert the IE8 fixes.
> 
> Regards,
> Konstantin Preißer
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


RE: Download links broken on main web site?

Posted by Konstantin Preißer <ve...@t-online.de>.
Hi,

> -----Original Message-----
> From: Mark Thomas [mailto:markt@apache.org]
> Sent: Wednesday, September 11, 2013 4:38 PM
> To: Tomcat Developers List
> Cc: Yoav Shapira
> Subject: Re: Download links broken on main web site?
> 
> On 11/09/2013 15:29, Yoav Shapira wrote:
> > Browsing http://tomcat.apache.org and clicking on the links in the
> > left-hand menu's Download section, e.g. this one for Tomcat 7.0, leads
> > to a broken page: http://tomcat.apache.org/download-70.cgi.
> 
> Dropping infra@ from the cc list. This looks like our problem at the moment.
> 
> I'm fairly sure the recent format updates have broken the download pages.
> Just trying to figure out how that happened.

My bad - it seems the IE conditional comments which I added to fix the layout in IE 8 now break the CGI script - it seems to treat the conditional comments as CGI commands.

Sorry, I have no experience with the CGI scripts (and why they interpret HTML comments). To restore the download pages, you can revert the IE8 fixes:


Index: xdocs/stylesheets/tomcat-site.xsl
===================================================================
--- xdocs/stylesheets/tomcat-site.xsl	(revision 1521880)
+++ xdocs/stylesheets/tomcat-site.xsl	(working copy)
@@ -58,8 +58,6 @@
        specified in the XML declaration.
   -->
   <link href="stylesheets/tomcat.css" rel="stylesheet" type="text/css"/>
-  <!-- CSS hack for IEs ? 9. -->
-  <xsl:comment><![CDATA[[if IE]><link href="stylesheets/tomcat-ie-fix.css" rel="stylesheet" type="text/css"/><![endif]]]></xsl:comment>
   <link href="stylesheets/tomcat-printer.css" rel="stylesheet" type="text/css" media="print"/>
     <xsl:apply-templates select="meta"/>
     <title><xsl:value-of select="$project/title"/> - <xsl:value-of select="properties/title"/></title>
@@ -86,11 +84,7 @@
   <body>
   <div id="wrapper">
   <!-- Header -->
-  <!-- Workaround for old IEs: use <div id="..."> instead of <header id="...">, otherwise the CSS will not apply.
-       IE ? 10 dropped support for conditional comments in Standards Mode, so there it will use <header>. -->
-  <xsl:comment><![CDATA[[if IE]><div id="header"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   <header id="header">
-    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
     <div>
       <div>
           <xsl:variable name="src">
@@ -119,10 +113,7 @@
         <div style="clear: left;"/>
       </div>
     </div>
-	<!-- Workaround for old IEs, see above. -->
-    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   </header>
-  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
   
   
   <div id="middle">
@@ -149,17 +140,12 @@
   </div>
 
   <!-- Footer -->
-  <!-- Workarounds for old IEs, see above. -->
-  <xsl:comment><![CDATA[[if IE]><div id="footer"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   <footer id="footer">
-    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
     Copyright © 1999-2013, The Apache Software Foundation
     <br/>
     Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat
     project logo are trademarks of the Apache Software Foundation.
-    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
   </footer>
-  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
 </div>
 </body>
 </html>



That should restore the download pages, but will revert the IE8 fixes.

Regards,
Konstantin Preißer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Download links broken on main web site?

Posted by Mark Thomas <ma...@apache.org>.
On 11/09/2013 15:29, Yoav Shapira wrote:
> Browsing http://tomcat.apache.org and clicking on the links in the
> left-hand menu's Download section, e.g. this one for Tomcat 7.0, leads
> to a broken page: http://tomcat.apache.org/download-70.cgi.

Dropping infra@ from the cc list. This looks like our problem at the moment.

I'm fairly sure the recent format updates have broken the download
pages. Just trying to figure out how that happened.

Mark

> 
> Problem running mirror.cgi; if it persists, contact <in...@apache.org>.
> 
> In the meantime, try <http://www.apache.org/dyn/closer.cgi>
> 
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 143, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 251, in mirrorsapp
>     template.generate(output, data)
>   File "/www/www.apache.org/dyn/mirrors/ezt.py", line 141, in generate
>     self._execute(self.program, fp, ctx)
>   File "/www/www.apache.org/dyn/mirrors/ezt.py", line 301, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/www/www.apache.org/dyn/mirrors/ezt.py", line 321, in _cmd_subst
>     fmt = _get_value(valref, ctx, filename, line_number)
>   File "/www/www.apache.org/dyn/mirrors/ezt.py", line 486, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: if in file
> /x1/www/tomcat.apache.org/download-70.html at line 2
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org