[
https://jira.codehaus.org/browse/MRM-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=350160#comment-350160
]
Robert David commented on MRM-1853:
-----------------------------------
I've seen this same behaviour as well. When you first hit the site, you get the
perpetual spinner, until you set up the admin account and it goes away.
If you then access the site from a different browser, on say a different
machine, it comes back again until you login.
In the JavaScript console I was seeing some JSON parse errors when the
never-ending spinner was in effect, wihich I traced back to this code in
archiva/main.js
{code:JavaScript}
getUserFromLoginCookie=function(){
var cookieContent=$.cookie('archiva_login');
$.log("archiva_getUserFromLoginCookie cookie content:"+cookieContent);
var user = $.parseJSON(cookieContent);
if(!user){
return null;
}
{code}
The debugger showed that {{cookieContent}} was undefined at this point,
presumably because there was no cookie yet. So I added the following:
{code:JavaScript}
getUserFromLoginCookie=function(){
var cookieContent=$.cookie('archiva_login');
$.log("archiva_getUserFromLoginCookie cookie content:"+cookieContent);
if (!cookieContent) {
return null;
}
var user = $.parseJSON(cookieContent);
if(!user){
return null;
}
{code}
So it doesn't try to parse the cookie content it there isn't any. That seemed
to then fix the spinner problem for me at least.
> On first start up, you get a perpetual loading indicator.
> ---------------------------------------------------------
>
> Key: MRM-1853
> URL: https://jira.codehaus.org/browse/MRM-1853
> Project: Archiva
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: Brett Porter
> Fix For: 2.1.1
>
>
> Unpack a brand new Archiva installation of 2.1.0, and start it up, then
> navigate to the home page.
> You'll see the loading indicator spinning forever, even after creating the
> admin and navigating around behind it.
> If you refresh the page, it no longer comes back.
> Looks like a failed initial request that doesn't reset the Javascript?
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)