зеркало из https://github.com/mozilla/pjs.git
Fix error message display of incorrectly set search filters (bug 79935). r=leif@netscape.com, sr=bienvenu@netscape.com
This commit is contained in:
Родитель
91fdc68357
Коммит
2eb302f1a5
|
@ -120,6 +120,7 @@ interface nsILDAPOperation : nsISupports
|
|||
* @exception NS_ERROR_OUT_OF_MEMORY
|
||||
* @exception NS_ERROR_INVALID_ARG
|
||||
* @exception NS_ERROR_LDAP_NOT_SUPPORTED
|
||||
* @exception NS_ERROR_LDAP_FILTER_ERROR
|
||||
*
|
||||
* XXX doesn't currently handle LDAPControl params
|
||||
*/
|
||||
|
|
|
@ -281,6 +281,9 @@ nsLDAPOperation::SearchExt(const PRUnichar *aBaseDn, PRInt32 aScope,
|
|||
case LDAP_PARAM_ERROR:
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
case LDAP_FILTER_ERROR:
|
||||
return NS_ERROR_LDAP_FILTER_ERROR;
|
||||
|
||||
default:
|
||||
NS_ERROR("nsLDAPOperation::SearchExt(): unexpected return value");
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
|
|
@ -870,6 +870,14 @@ nsLDAPAutoCompleteSession::StartLDAPSearch()
|
|||
BOUND);
|
||||
return NS_OK;
|
||||
|
||||
case NS_ERROR_LDAP_FILTER_ERROR:
|
||||
PR_LOG(sLDAPAutoCompleteLogModule, PR_LOG_DEBUG,
|
||||
("nsLDAPAutoCompleteSession::StartLDAPSearch(): SearchExt "
|
||||
"returned NS_ERROR_LDAP_FILTER_ERROR"));
|
||||
FinishAutoCompleteLookup(nsIAutoCompleteStatus::failureItems, rv,
|
||||
BOUND);
|
||||
return NS_OK;
|
||||
|
||||
case NS_ERROR_LDAP_SERVER_DOWN:
|
||||
// XXXdmose discuss with leif how to handle this in general in the
|
||||
// LDAP XPCOM SDK.
|
||||
|
@ -895,7 +903,7 @@ nsLDAPAutoCompleteSession::StartLDAPSearch()
|
|||
//
|
||||
NS_ERROR("nsLDAPAutoCompleteSession::StartLDAPSearch(): SearchExt "
|
||||
"returned unexpected value");
|
||||
FinishAutoCompleteLookup(nsIAutoCompleteStatus::failureItems, 0,
|
||||
FinishAutoCompleteLookup(nsIAutoCompleteStatus::failureItems, rv,
|
||||
BOUND);
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче