rem: "accessingServerFailedError.text", [uri.hostPort], 1 ), 
add: "accessingServerFailedError.text", [sessionUri.hostPort], 1 ), 
context:     login_:    function( sessionUri, user, pw )    {        if (this.m_sessionId != null) {            this.logout();        }        var str;        var icalRootComp = null;        try {            // currently, xml parsing at an early stage during process startup            // does not work reliably, so use libical parsing for now:            str = issueSyncRequest(                sessionUri.spec + "login.wcap?fmt-out=text%2Fcalendar&user=" +                encodeURIComponent(user) +                "&password=" + encodeURIComponent(pw),                null /* receiverFunc */, false /* no logging */ );            if (str.indexOf("BEGIN:VCALENDAR") < 0)                throw new Components.Exception("no ical data returned!");            icalRootComp = getIcsService().parseICS( str );            checkWcapIcalErrno( icalRootComp );        }        catch (exc) {            if (testResultCode(exc, Components.interfaces.                               calIWcapErrors.WCAP_LOGIN_FAILED)) {                this.logError( exc ); // log wrong pw                return false;            }            if (!isNaN(exc) && getErrorModule(exc) == NS_ERROR_MODULE_NETWORK) {                // server seems unavailable:                throw new Components.Exception(                    getWcapBundle().formatStringFromName(                        "accessingServerFailedError.text", [uri.hostPort], 1 ),                    exc );            }            throw exc;        }        var prop = icalRootComp.getFirstProperty("X-NSCP-WCAP-SESSION-ID");        if (!prop) {            throw new Components.Exception(                "missing X-NSCP-WCAP-SESSION-ID in\n" + str );        }        this.m_sessionId = prop.value;                this.m_userId = user;        this.m_sessionUri = sessionUri;        this.log( "WCAP login succeeded, setting sessionUri to " +                  this.sessionUri.spec );        return true;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4646426d760bff0b8247f69f6061f66bf6f8d339/calWcapSession.js/buggy/calendar/providers/wcap/calWcapSession.js