sipe: improve error handling for contact search
commit6e94745a6eafb4a3ddc193f22c93d2a8b06f1aec
authorStefan Becker <chemobejk@gmail.com>
Thu, 24 Nov 2011 16:34:19 +0000 (24 18:34 +0200)
committerStefan Becker <chemobejk@gmail.com>
Thu, 24 Nov 2011 16:34:19 +0000 (24 18:34 +0200)
treecee77540a1a842fb7ecaca3016d5e8f1740fdf58
parent2197f84614e31b411b56325e142e914e84567e76
sipe: improve error handling for contact search

As reported in the following forum entry:

<https://sourceforge.net/projects/sipe/forums/forum/688534/topic/4720222>

there are some installations that have disabled the old(?) directory
search. It could be that this is the default setting for Lync or at
least Lync/Office365, where I have encountered it.

process_search_contact_response() now shows an error dialog to the user
for the following cases:

  - the response code is not 200 OK
  - the XML content in the body is corrupted
  - no contacts found. IMHO that is a better response than an empty
    result window.

Hopefully some logs from the M$ Lync client will reveal how the contact
search works there.
src/core/sipe.c