Return-Path: X-Original-To: apmail-archiva-users-archive@www.apache.org Delivered-To: apmail-archiva-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91EC61170E for ; Tue, 29 Jul 2014 00:29:03 +0000 (UTC) Received: (qmail 38193 invoked by uid 500); 29 Jul 2014 00:29:03 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 38137 invoked by uid 500); 29 Jul 2014 00:29:03 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Delivered-To: moderator for users@archiva.apache.org Received: (qmail 80985 invoked by uid 99); 28 Jul 2014 14:29:37 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Message-ID: <53D65E22.8000502@isys-software.de> Date: Mon, 28 Jul 2014 16:28:50 +0200 From: Fabian Trampusch User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: users@archiva.apache.org Subject: No sign in possible due to cookie problem [2.1.0 / workaround] Content-Type: multipart/alternative; boundary="------------000807020503070608050309" X-Virus-Checked: Checked by ClamAV on apache.org --------------000807020503070608050309 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit |Hello, i got the problem that the webinterface is not being completely loaded. The following JavaScript-Error is being thrown and not catched: "SyntaxError: Unexpected token u at Object.parse (native) at Function.m.parseJSON (http://maven/archiva/js/jquery-1.11.1.min.js?_archivaVersion=2.1.0:4:15739) at getUserFromLoginCookie (http://maven/archiva/js/archiva/main.js?_archivaVersion=2.1.0:69:18) at startArchivaApplication (http://maven/archiva/js/archiva/main.js?_archivaVersion=2.1.0:888:16) athttp://maven/archiva/js/archiva/archiva.js:119:19 at Object.i.execCb (http://maven/archiva/js/require.min.2.1.11.js:29:311) at Object.$.check (http://maven/archiva/js/require.min.2.1.11.js:18:423) at Object.$.enable (http://maven/archiva/js/require.min.2.1.11.js:23:238) at Object.$.init (http://maven/archiva/js/require.min.2.1.11.js:17:68) athttp://maven/archiva/js/require.min.2.1.11.js:26:369" Lines in main.js relevant to the stacktrace: || getUserFromLoginCookie=function(){ || var cookieContent=$.cookie('archiva_login'); || $.log("archiva_getUserFromLoginCookie cookie content:"+cookieContent); || var user = $.parseJSON(cookieContent); // <-- throws the error || if(!user){ || return null; || }|| |cookieContent is undefined. It should not be undefined. I did the following hack to get the webinterface of archiva useable again: | getUserFromLoginCookie=function(){ || var cookieContent=$.cookie('archiva_login'); || $.log("archiva_getUserFromLoginCookie cookie content:"+cookieContent); || if(typeof cookieContent === "undefined") { // hack begin || return null; || } // hack end || var user = $.parseJSON(cookieContent); || if(!user){ || return null; || }| Does someone has an idea why this is happening? I updated recently from archiva 2.0.1 to 2.1.0. Thanks, Fabian -- iSYS Software GmbH Fabian Trampusch Abteilung Hama-Webstage Tel: +49 (0) 89 46 23 28-0 | Fax (0) 89 46 23 28-14 email:f.trampusch@isys-software.de Grillparzerstr. 10 | D-81675 Muenchen www.isys-software.de Sitz der Gesellschaft: München | HRB 111760 Geschaeftsfuehrer: Prof. Dr. Peter Mandl und Michael Sailer --------------000807020503070608050309--