rem: var str = issueSyncUtf8Request( 
add: var str = issueSyncRequest( 
context:     login:    function( loginUri, user, pw )    {        if (this.m_sessionId != null) {            this.logout();        }        // currently, xml parsing at an early stage during process startup        // does not work reliably, so use libical parsing for now:        var str = issueSyncUtf8Request(            loginUri.spec + "login.wcap?fmt-out=text%2Fcalendar&user=" +            encodeURIComponent(user) + "&password=" + encodeURIComponent(pw),            null /* receiverFunc */, false /* no logging */ );        if (str == null)            throw new Error("request failed!");        var icalRootComp = getIcsService().parseICS( str );        checkWcapIcalErrno( icalRootComp );        var prop = icalRootComp.getFirstProperty( "X-NSCP-WCAP-SESSION-ID" );        if (prop == null)            throw new Error("missing X-NSCP-WCAP-SESSION-ID!");        this.m_sessionId = prop.value;        //         var xml = issueSyncXMLRequest(//             loginUri.spec + "login.wcap?fmt-out=text%2Fxml&user=" +//             encodeURIComponent(user) + "&password=" + encodeURIComponent(pw) );//         checkWcapXmlErrno( xml );//         this.m_sessionId = xml.getElementsByTagName(//             "X-NSCP-WCAP-SESSION-ID" ).item(0).textContent;        this.m_userId = user;        this.log( "WCAP login succeeded." );    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/318a30b964defb311d9cf0464a3354a583a7e8f0/calWcapSession.js/buggy/calendar/providers/wcap/calWcapSession.js