rem: catch (exc) { this.log( "server version request failed: " + errorToString(exc) ); return null; 
add: catch (exc) { this.log( exc ); throw new Components.Exception( getWcapBundle().formatStringFromName( "accessingServerFailedError.text", [uri.hostPort], 1 ), isNaN(exc) ? Components.results.NS_ERROR_FAILURE : exc ); 
context:     getServerInfo:    function( uri )    {        var icalRootComp;        try {            // currently, xml parsing at an early stage during process startup            // does not work reliably, so use libical parsing for now:            var str = issueSyncRequest(                uri.spec + "version.wcap?fmt-out=text%2Fcalendar" );            if (str.indexOf("BEGIN:VCALENDAR") < 0)                return null; // no ical data returned            icalRootComp = getIcsService().parseICS( str );            if (icalRootComp == null)                throw new Components.Exception("invalid ical data!");        }        catch (exc) { // soft error; request denied etc.            this.log( "server version request failed: " + errorToString(exc) );            return null;        }                loginTextVars = [uri.hostPort];        var prop = icalRootComp.getFirstProperty( "PRODID" );        loginTextVars.push( prop ? prop.value : "<unknown>" );        prop = icalRootComp.getFirstProperty( "X-NSCP-SERVERVERSION" );        loginTextVars.push( prop ? prop.value : "<unknown>" );        prop = icalRootComp.getFirstProperty( "X-NSCP-WCAPVERSION" );        if (prop == null)            throw new Components.Exception("missing X-NSCP-WCAPVERSION!");        loginTextVars.push( prop.value );        var wcapVersion = parseInt(prop.value);        if (wcapVersion < 3) {            var prompt = getWindowWatcher().getNewPrompter(null);            var bundle = getWcapBundle();            var labelText = bundle.GetStringFromName(                "insufficientWcapVersionConfirmation.label");            if (!prompt.confirm( labelText,                                 bundle.formatStringFromName(                                     "insufficientWcapVersionConfirmation.text",                                     loginTextVars, loginTextVars.length ) )) {                throw new Components.Exception(labelText);            }        }        return getWcapBundle().formatStringFromName(            "loginDialog.text", loginTextVars, loginTextVars.length );    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/06d90331fdeac45f8beca37f42c4aa8e0babed2f/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js