Browse code

BM-13233 Fix: sends status 12 "hierarchy has changed" on CollectionNotFoundException

David Phan authored on 08/06/2018 12:58:33
Showing 1 changed files
... ...
@@ -307,13 +307,7 @@ public class SyncProtocol implements IEasProtocol<SyncRequest, SyncResponse> {
307 307
 			} catch (CollectionNotFoundException cnf) {
308 308
 				logger.error(cnf.getMessage(), cnf);
309 309
 				csr.syncKey = sc.getSyncKey();
310
-				syncErrors++;
311
-			} catch (ActiveSyncException ase) {
312
-				logger.error(ase.getMessage(), ase);
313
-				csr.syncKey = sc.getSyncKey();
314
-				// FIXME MS-ASCMD p.345, object_not_found is item scoped, not on
315
-				// collection
316
-				csr.status = SyncStatus.OBJECT_NOT_FOUND;
310
+				csr.status = SyncStatus.HIERARCHY_CHANGED;
317 311
 				syncErrors++;
318 312
 			} catch (Exception e) {
319 313
 				logger.error(e.getMessage(), e);