Hi,
first of all I want to thank you, this app of yours is
great work! Also I very much appreciate the support here.
Now, after the praise, here comes my complaint
I get an "HTTP/1.1 401 Unauthorized" error when I try to connect to my company's Exchange server (Build Number 14.3.158.1, i.e. Update Rollup 2 for Exchange Server 2010 SP3). Login is 100% correct. When I open h ttps://foo.bar/EWS/Exchange.asmx (with foo.bar being replaced by my company's server address, of course) in my browser, the login works.
This is the log associated with the issue (I had to replace http with h ttp because of the forum restrictions):
2013.11.19 13:33:09.235 +0100 UIModeTracker onScreenOff
2013.11.19 13:33:09.236 +0100 UIModeTracker Notifying listeners
2013.11.19 13:33:09.237 +0100 UILock Locking the UI now, lockNow = true
2013.11.19 13:34:58.748 +0100 UIModeTracker onScreenOff
2013.11.19 13:34:58.749 +0100 UIModeTracker Notifying listeners
2013.11.19 13:34:58.750 +0100 UILock Locking the UI now, lockNow = true
2013.11.19 13:35:45.703 +0100 UIModeTracker onStart org.kman.AquaMail.ui.AccountSetupActivity$Light
2013.11.19 13:35:45.705 +0100 UIModeTracker onResume org.kman.AquaMail.ui.AccountSetupActivity$Light
2013.11.19 13:35:48.436 +0100 AquaMail [MDATR.1] UI requested Exchange account check: org.kman.AquaMail.mail.MailAccount@42097eb8: id = 10000, name = John Doe, email = j.doe@foo-bar
2013.11.19 13:35:48.437 +0100 MailStateWatcher Service state change uri: content://org.kman.AquaMail.data/accounts/10000/test/ews, what: 100, aux = 0x0000
2013.11.19 13:35:48.438 +0100 AquaMail [POWER.1] >>>>> Acquiring wake lock for MailTaskExecutor Executor_Network
2013.11.19 13:35:48.439 +0100 AquaMail [POWER.1] Acquired wake lock flag 0x00100000, result 0x00100000
2013.11.19 13:35:48.440 +0100 LockManager Acquiring the Wake lock
2013.11.19 13:35:48.475 +0100 AquaMail [EXEC.1867] Received task [org.kman.AquaMail.mail.ews.EwsTask_CheckAccount@42599d30, content://org.kman.AquaMail.data/accounts/10000/test/ews]
2013.11.19 13:35:48.492 +0100 AquaMail [MDATR.1867] Using WiFi sync policy values
2013.11.19 13:35:48.493 +0100 AquaMail [NETWRK.1867] Request for connection content://org.kman.AquaMail.data/accounts/10000/test/ews to [foo.bar:443, sslStrict]
2013.11.19 13:35:48.524 +0100 AquaMail [POWER.1867] >>>>> Acquiring wake lock for MailConnectionManager
2013.11.19 13:35:48.525 +0100 AquaMail [POWER.1867] Acquired wake lock flag 0x00010000, result 0x00110000
2013.11.19 13:35:48.526 +0100 LockManager ... Wake lock already held
2013.11.19 13:35:48.550 +0100 AquaMail [EWS.1867] Creating HTTP client
2013.11.19 13:35:48.558 +0100 AquaMail [EWS.1867] Executing HTTP request EwsCmd_GetFolderInfo to h ttps://foo.bar/EWS/Exchange.asmx
2013.11.19 13:35:48.559 +0100 AquaMail [EWS_RAW.1867] <soap:Envelope xmlns:xsi="h ttp://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="h ttp://www.w3.org/2001/XMLSchema"
xmlns:soap="h ttp://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="h ttp://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1" />
</soap:Header>
<soap:Body>
<GetFolder xmlns="h ttp://schemas.microsoft.com/exchange/services/2006/messages">
<FolderShape>
<t:BaseShape>Default</t:BaseShape>
</FolderShape>
<FolderIds>
<t:DistinguishedFolderId Id="inbox" />
</FolderIds>
</GetFolder>
</soap:Body>
</soap:Envelope>
2013.11.19 13:35:48.842 +0100 AquaMail [EWS.1867] Error executing request: "HTTP/1.1 401 Unauthorized"
2013.11.19 13:35:48.844 +0100 AquaMail [EWS.1867] Result: -3, traffic: 0 read, 0 write, time: 293ms
2013.11.19 13:35:48.848 +0100 MailStateWatcher Service state change uri: content://org.kman.AquaMail.data/accounts/10000/test/ews, what: 101, aux = 0xfffffffd
2013.11.19 13:35:48.856 +0100 AquaMail [TASKS.1867] Task [org.kman.AquaMail.mail.ews.EwsTask_CheckAccount@42599d30, content://org.kman.AquaMail.data/accounts/10000/test/ews] took 0,36 seconds to process
2013.11.19 13:35:48.858 +0100 AquaMail [NETWRK.1867] Network usage: 0/0 bytes read/written
2013.11.19 13:35:48.860 +0100 AquaMail [NETWRK.1867] Releasing connection [content://org.kman.AquaMail.data/accounts/10000/test/ews, h ttps://foo.bar/EWS/Exchange.asmx]
2013.11.19 13:35:48.866 +0100 AquaMail [NETWRK.1867] Connection manager, can't release wake lock
2013.11.19 13:35:48.871 +0100 AquaMail [NETWRK.1865] Closing the connection [content://org.kman.AquaMail.data/accounts/10000/test/ews, h ttps://foo.bar/EWS/Exchange.asmx]
2013.11.19 13:35:48.873 +0100 AquaMail [NETWRK.1867] In process: 0
2013.11.19 13:35:48.875 +0100 AquaMail [NETWRK.1867] Active : count = 0
2013.11.19 13:35:48.876 +0100 AquaMail [NETWRK.1867] Idle : count = 0
2013.11.19 13:35:48.878 +0100 AquaMail [NETWRK.1867] Lingering : count = 1
2013.11.19 13:35:48.880 +0100 AquaMail [NETWRK.1867] [content://org.kman.AquaMail.data/accounts/1/in, Socket[address=foo.bar/xxx,port=993,localPort=55601]]
2013.11.19 13:35:48.881 +0100 AquaMail [NETWRK.1867] Closing : count = 1
2013.11.19 13:35:48.881 +0100 AquaMail [NETWRK.1867] [content://org.kman.AquaMail.data/accounts/10000/test/ews, not conn]
2013.11.19 13:35:48.882 +0100 AquaMail [POWER.1865] >>>>> Releasing wake lock for MailConnectionManager
2013.11.19 13:35:48.883 +0100 AquaMail [POWER.1865] Released wake lock flag 0x00010000, result 0x00100000
2013.11.19 13:35:48.885 +0100 AquaMail [POWER.1867] >>>>> Releasing wake lock for MailTaskExecutor Executor_Network
2013.11.19 13:35:48.886 +0100 AquaMail [POWER.1867] Released wake lock flag 0x00100000, result 0x00000000
2013.11.19 13:35:48.887 +0100 LockManager Releasing all locks
2013.11.19 13:35:48.890 +0100 LockManager Releasing the Wake lock, time held = 0,45 sec
2013.11.19 13:35:48.893 +0100 LockManager After release: Wake lock isHeld = false
2013.11.19 13:35:48.894 +0100 LockManager WiFi lock is not held
2013.11.19 13:35:48.895 +0100 StartSyncService All locks have been released
2013.11.19 13:35:48.897 +0100 PushConnectivityReceiver Unblocking the events, old state = false