[
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 <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]