[Freeipa-devel] [PATCH] 0237-no-redirect-on-unknown-error
Endi Sukma Dewata
edewata at redhat.com
Thu Jun 16 01:23:23 UTC 2011
On 6/15/2011 6:44 PM, Adam Young wrote:
> On 06/15/2011 02:37 PM, Adam Young wrote:
>> Part 2
>>
>> https://fedorahosted.org/freeipa/ticket/1281
> Now iterates through a list of known error types.
If the server is down (service ipa stop) it throws an error with name
'NS_ERROR_NOT_AVAILABLE' which is not in the list, so it still does a
redirection.
There is another problem too, if the error name matches the list it
doesn't call report_error().
Maybe this should be done the other way around. Instead of listing the
errors not to redirect, we should list the errors which require
redirection, i.e. IPA Error 4001 (entry not found).
This is optional, in ipa.js:337 we could add the IPA error code into the
error_thrown object. This way the error can be checked more reliably
using error code rather than error name.
--
Endi S. Dewata
More information about the Freeipa-devel
mailing list