{"action":"created","issue":{"url":"https://api.github.com/repos/Ericsson/exchangecalendar/issues/103","labels_url":"https://api.github.com/repos/Ericsson/exchangecalendar/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/Ericsson/exchangecalendar/issues/103/comments","events_url":"https://api.github.com/repos/Ericsson/exchangecalendar/issues/103/events","html_url":"https://github.com/Ericsson/exchangecalendar/issues/103","id":57306744,"number":103,"title":"exchangecalendar fails to connect to server after Thunderbird restart when password is stored in password manager","user":{"login":"maciejjo","id":3521861,"avatar_url":"https://avatars.githubusercontent.com/u/3521861?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejjo","html_url":"https://github.com/maciejjo","followers_url":"https://api.github.com/users/maciejjo/followers","following_url":"https://api.github.com/users/maciejjo/following{/other_user}","gists_url":"https://api.github.com/users/maciejjo/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejjo/subscriptions","organizations_url":"https://api.github.com/users/maciejjo/orgs","repos_url":"https://api.github.com/users/maciejjo/repos","events_url":"https://api.github.com/users/maciejjo/events{/privacy}","received_events_url":"https://api.github.com/users/maciejjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-11T11:54:48Z","updated_at":"2015-02-25T03:55:31Z","closed_at":null,"body":"Hi,\r\n\r\nI have a strange issue with exchangecalendar, when I set up calendar it works fine, when I close Thunderbird and start it again, no items from calendar show up (this doesn't happen always, but if I restart after more than 5 minutes it is almost certain). From log I see that I got 401 Unauthorized:\r\n\r\n\t1st-setup:2015-1-3 12:34:13.23:mivExchangeAuthPrompt2: passwordManagerGet found password for: username=intra\\msobkows, aURL=https://webmail.intra.net/EWS/Exchange.asmx, aRealm=Exchange Web Service (_passwordManagerGet in mivExchangeAuthPrompt2.js:622)\r\n\t1st-setup:2015-1-3 12:34:13.23:mivExchangeAuthPrompt2: getPassword: There is a password stored in the passwordManager. (_getPassword in mivExchangeAuthPrompt2.js:153)\r\n\t1st-setup:2015-1-3 12:34:13.23:mivExchangeAuthPrompt2: getPassword: password(2)=******** (_getPassword in mivExchangeAuthPrompt2.js:164)\r\n\t1st-setup:2015-1-3 12:34:13.23:mivExchangeAuthPrompt2: asyncPromptAuthNotifyCallback: getPassword exception. err:URIError: malformed URI sequence (_asyncPromptAuthNotifyCallback in mivExchangeAuthPrompt2.js:338)\r\n\t1st-setup:2015-1-3 12:34:13.24:0d958714-5ebc-432d-b440-9fe6f668729d: : ExchangeRequest.onLoad :load, readyState:4, status:401\r\n\t1st-setup:2015-1-3 12:34:13.24:0d958714-5ebc-432d-b440-9fe6f668729d: : ExchangeRequest.onLoad :Server: Microsoft-IIS/7.5\r\n\tWWW-Authenticate: Negotiate\r\n\tNTLM\r\n\tX-Powered-By: ASP.NET\r\n\tDate: Wed, 11 Feb 2015 11:36:32 GMT\r\n\tContent-Length: 0\r\n\r\n\t1st-setup:2015-1-3 12:34:13.24:0d958714-5ebc-432d-b440-9fe6f668729d: : ExchangeRequest.onLoad :\r\n\t1st-setup:2015-1-3 12:34:13.24:0d958714-5ebc-432d-b440-9fe6f668729d: exchangeRequest.isHTTPRedirect.xmlReq. xmlReq.readyState:4, xmlReq.status:401\r\n\t1st-setup:2015-1-3 12:34:13.24:0d958714-5ebc-432d-b440-9fe6f668729d: : isConnError req.status=401: Unauthorized\r\n\tURL:https://webmail.intra.net/EWS/Exchange.asmx\r\n\r\n\t1st-setup:2015-1-3 12:34:13.24:0d958714-5ebc-432d-b440-9fe6f668729d: ecExchangeRequest.fail: aCode:-19, aMsg:HTTP Client error 401: Unauthorized\r\n\tURL:https://webmail.intra.net/EWS/Exchange.asmx\r\n\r\n\r\n\r\n\t1st-setup:2015-1-3 12:34:13.25:[exchangeLoadBalancer] fb47d353-1a53-43be-9eed-e72500598cdb:https://webmail.intra.net/EWS/Exchange.asmx:jobObject:onRequestError. arg2:-19, arg3:HTTP Client error 401: Unauthorized\r\n\tURL:https://webmail.intra.net/EWS/Exchange.asmx\r\n\r\n\r\n\t (_onRequestError in mivExchangeLoadBalancer.js:86)\r\n\t1st-setup:2015-1-3 12:34:13.25:[My calendar] checkFolderPathError: Code:-19, Msg:HTTP Client error 401: Unauthorized\r\n\tURL:https://webmail.intra.net/EWS/Exchange.asmx\r\n\r\nThen when I delete this calendar and re-add it, sometimes it succeeds, sometimes I get error as well. We have two servers, sometimes changing server helps. In general, everything is pretty much random. Recently I did a clean OS install, and in previous install I had the same setup, I don't remember anything like that. (This was about two months ago). \r\n\r\nEDIT:\r\nIt looks like it helps to delete the password from manager and set up the calendar again. When I enter the password manually, it seems to work. But when I enable plaintext password login, it prints it and it matches.\r\n\r\nOk, now I am certain - this only happens with password stored in password manager. Adding calendar didn't work randomly, but only when I cleared saved passwords first. The same goes for restarting - when I add calendar, it accepted password and synchronized, but when I restarted it took password from manager and failed. But, as I said, when logging password was enabled, it printed correct password to log.\r\n\r\nVersions:\r\nThunderbird 31.4.0\r\nExchange EWS Provider 3.3.0 (I tried newest release as well, same issues)\r\nLightning 3.3.3\r\n"},"comment":{"url":"https://api.github.com/repos/Ericsson/exchangecalendar/issues/comments/75901489","html_url":"https://github.com/Ericsson/exchangecalendar/issues/103#issuecomment-75901489","issue_url":"https://api.github.com/repos/Ericsson/exchangecalendar/issues/103","id":75901489,"user":{"login":"bavincen","id":8401561,"avatar_url":"https://avatars.githubusercontent.com/u/8401561?v=3","gravatar_id":"","url":"https://api.github.com/users/bavincen","html_url":"https://github.com/bavincen","followers_url":"https://api.github.com/users/bavincen/followers","following_url":"https://api.github.com/users/bavincen/following{/other_user}","gists_url":"https://api.github.com/users/bavincen/gists{/gist_id}","starred_url":"https://api.github.com/users/bavincen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bavincen/subscriptions","organizations_url":"https://api.github.com/users/bavincen/orgs","repos_url":"https://api.github.com/users/bavincen/repos","events_url":"https://api.github.com/users/bavincen/events{/privacy}","received_events_url":"https://api.github.com/users/bavincen/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T03:55:31Z","updated_at":"2015-02-25T03:55:31Z","body":"Hi\rI think this issue is not very clear.\rWhat I see is server is negotiating  your login.\rNegotiating simply means your username or password is not correct"}}