You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Eric Charles (JIRA)" <se...@james.apache.org> on 2011/06/01 17:52:47 UTC

[jira] [Created] (JAMES-1260) Download from mirrors is broken

Download from mirrors is broken
-------------------------------

                 Key: JAMES-1260
                 URL: https://issues.apache.org/jira/browse/JAMES-1260
             Project: JAMES Server
          Issue Type: Bug
            Reporter: Eric Charles


Further to last project website deploy, error [1] arised.
It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
For now, line [4] has been removed.

[1] ------------------------
Problem running mirror.cgi, contact <in...@apache.org> if it persists.
Traceback (most recent call last):
  File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
    return mirrorsapp(environ, start_response)
  File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
    template.generate(output, data)
  File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
    self._execute(self.program, fp, ctx)
  File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
    method(method_args, fp, ctx, filename, line_number)
  File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
    value = _get_value(valref, ctx, filename, line_number)
  File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
    raise UnknownReference(refname, filename, line_number)
UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35

[2]------------------
The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
Added a "0+" in front of each index in square bracket.
https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
	
[3]------------
(function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
      

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Commented] (JAMES-1260) Download from mirrors is broken

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081070#comment-13081070 ] 

Stefano Bagnara commented on JAMES-1260:
----------------------------------------

I just updated site.vm because downloadTracking was broken (it used the old urchin script way to do that and somehow now we moved to the async tracking code).
I also reverted item(X) to [ X ] (using spaces) because my chrome was throwing syntax errors on the item() call for simple arrays (not on the dom elements resultsets).



> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>            Assignee: Felix Knecht
>             Fix For: Trunk
>
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Resolved] (JAMES-1260) Download from mirrors is broken

Posted by "Felix Knecht (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Knecht resolved JAMES-1260.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Trunk
         Assignee: Felix Knecht

Fix workaround and [4]. Access array values via x.item(nr) function instead of using square brackets x[nr].

> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>            Assignee: Felix Knecht
>             Fix For: Trunk
>
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (JAMES-1260) Download from mirrors is broken

Posted by "Felix Knecht (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057248#comment-13057248 ] 

Felix Knecht commented on JAMES-1260:
-------------------------------------

I can't reproduce the error locally using linux/firefox 5/james/maven-skin/1.7-SNAPSHOT/maven-skin-1.7-SNAPSHOT.jar. Opening the created site project/project/target/site/download.html I can't see any errors in Firefox' Error Console. Even with Firebug I can't find any errors. Could it be browser/html specific problem? The attribute 'async' is quite new (HTML5 http://www.w3schools.com/html5/tag_script.asp)  and therefore a problem when used with older browsers?

> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (JAMES-1260) Download from mirrors is broken

Posted by "Felix Knecht (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057696#comment-13057696 ] 

Felix Knecht commented on JAMES-1260:
-------------------------------------

Hi Eric
You can set following proxy in the browser to see the deployed sites on people.apache.org immediately: 140.211.11.10:80


> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>            Assignee: Felix Knecht
>             Fix For: Trunk
>
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Closed] (JAMES-1260) Download from mirrors is broken

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Charles closed JAMES-1260.
-------------------------------


Site deployed with new maven skin and everything fine
http://james.apache.org/download.cgi#Apache_jSPF

Tks for the fix Felix :)
I close issue.


> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>            Assignee: Felix Knecht
>             Fix For: Trunk
>
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (JAMES-1260) Download from mirrors is broken

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057674#comment-13057674 ] 

Eric Charles commented on JAMES-1260:
-------------------------------------

Hi Felix.
Tks for helping.
We could imagine so process to test beforee deploying, but that will be overkill. So let's deploy and let's see the result :)

If you look in https://svn.apache.org/repos/asf/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm
the line that sets the s variable has no bracket:
 var s = document.getElementsByTagName('script').item(0); s.parentNode.insertBefore(ga, s);

Could it be that we don't use the correct skin version?

> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>            Assignee: Felix Knecht
>             Fix For: Trunk
>
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (JAMES-1260) Download from mirrors is broken

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057687#comment-13057687 ] 

Eric Charles commented on JAMES-1260:
-------------------------------------

ah ah, I missed you commit.
This is why I the bracket was not in trunk...
I will try a new deployment.

> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>            Assignee: Felix Knecht
>             Fix For: Trunk
>
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (JAMES-1260) Download from mirrors is broken

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057290#comment-13057290 ] 

Eric Charles commented on JAMES-1260:
-------------------------------------

Hi Felix,
Breakage is not client side but server side.
The CGI script doesn't seem to like the html source, see the comment (I think you made it) :The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript. Added a "0+" in front of each index in square bracket. https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup



> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (JAMES-1260) Download from mirrors is broken

Posted by "Felix Knecht (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057315#comment-13057315 ] 

Felix Knecht commented on JAMES-1260:
-------------------------------------

So the only way to test changes is to put the site live, either have a proxy for direct access or wait until it's updated and then see if it works or not?

> Download from mirrors is broken
> -------------------------------
>
>                 Key: JAMES-1260
>                 URL: https://issues.apache.org/jira/browse/JAMES-1260
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Eric Charles
>
> Further to last project website deploy, error [1] arised.
> It seems that [2] was forseen to avoid the problem, but block [3] rises [2].
> For now, line [4] has been removed.
> [1] ------------------------
> Problem running mirror.cgi, contact <in...@apache.org> if it persists.
> Traceback (most recent call last):
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 124, in mirrorwrap
>     return mirrorsapp(environ, start_response)
>   File "/www/www.apache.org/dyn/mirrors/mirrors.cgi", line 200, in mirrorsapp
>     template.generate(output, data)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 320, in generate
>     self._execute(self.program, fp, ctx)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 480, in _execute
>     method(method_args, fp, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 483, in _cmd_print
>     value = _get_value(valref, ctx, filename, line_number)
>   File "/x1/www/www.apache.org/content/dyn/mirrors/ezt.py", line 665, in _get_value
>     raise UnknownReference(refname, filename, line_number)
> UnknownReference: 0 in file /x1/www/james.apache.org/download.html at line 35
> [2]------------------
> The mirror choosing script replaces any simple word in square bracket and was breaking the new javascript.
> Added a "0+" in front of each index in square bracket.
> https://svn.apache.org/viewvc/james/project/trunk/maven-skin/src/main/resources/META-INF/maven/site.vm?revision=532445&view=markup
> 	
> [3]------------
> (function() {
>  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
>  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
> -----> Issue arises here [4]: var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
> })();
>       

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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