[Freeipa-devel] [PATCH] Checking empty AJAX response in ipa_cmd().

Endi Sukma Dewata edewata at redhat.com
Thu Sep 30 00:34:59 UTC 2010


----- "Endi Sukma Dewata" <edewata at redhat.com> wrote:

> Some errors (e.g. server down) are reported as AJAX success with
> empty data and/or HTTP error code != 200. The ipa_cmd() has been
> modified so that it will detect such errors and invoke the error
> handler.

It turns out that pulling local JSON files will result in HTTP error
code 0, so it's not a good indicator for error. I've removed it in
the new patch.

--
Endi S. Dewata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: edewata-freeipa-0012-2-Checking-empty-AJAX-response-in-ipa_cmd.patch
Type: text/x-patch
Size: 2449 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100929/44ad9ca7/attachment.bin>


More information about the Freeipa-devel mailing list