mozsquib/jsas — pull request #5 by asutherland (2012-10-08 03:55:24+00:00)
Title: Do not treat 404's as success, detect XML parse errors and don't die.

Autodiscover on yahoo.com fails for me (or at least gets very unhappy) because we are trying to interpret the 404 HTML page as XML. This suggests there are 2 problems here:
- We should really only be trying to parse 200 results. We may need to support other weird things like 451 of course, but we don't want to handle random errors.
- We need to handle XML parse failures cleanly by catching the exception. (I have a similar change for gelam).

I am seeing this for unit tests for gelam where we don't have the explicit local mapping for yahoo.com. I expect this is breaking us on other account types too.