am 3b19278a
: Only allow the account mailbox to attempt provisioning
Merge commit '3b19278a24ec6f1062d3c5e38580fe9fb20326cf' into froyo-plus-aosp * commit '3b19278a24ec6f1062d3c5e38580fe9fb20326cf': Only allow the account mailbox to attempt provisioning
This commit is contained in:
commit
605433f78d
@ -1020,6 +1020,9 @@ public class EasSyncService extends AbstractSyncService {
|
||||
String key = mAccount.mSecuritySyncKey;
|
||||
if (key == null || key.length() == 0) {
|
||||
return;
|
||||
}
|
||||
if (Eas.PARSER_LOG) {
|
||||
userLog("Policy key: " , key);
|
||||
}
|
||||
method.setHeader("X-MS-PolicyKey", key);
|
||||
}
|
||||
@ -1385,7 +1388,10 @@ public class EasSyncService extends AbstractSyncService {
|
||||
}
|
||||
} else if (isProvisionError(code)) {
|
||||
// If the sync error is a provisioning failure (perhaps the policies changed),
|
||||
// let's try the provisining procedure
|
||||
// let's try the provisioning procedure
|
||||
// Provisioning must only be attempted for the account mailbox - trying to
|
||||
// provision any other mailbox may result in race conditions and the creation
|
||||
// of multiple policy keys.
|
||||
if (!tryProvision()) {
|
||||
// Set the appropriate failure status
|
||||
mExitStatus = EXIT_SECURITY_FAILURE;
|
||||
@ -1918,10 +1924,7 @@ public class EasSyncService extends AbstractSyncService {
|
||||
} else {
|
||||
userLog("Sync response error: ", code);
|
||||
if (isProvisionError(code)) {
|
||||
if (!tryProvision()) {
|
||||
mExitStatus = EXIT_SECURITY_FAILURE;
|
||||
return;
|
||||
}
|
||||
} else if (isAuthError(code)) {
|
||||
mExitStatus = EXIT_LOGIN_FAILURE;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user