3.4.5.4.1.3 Processing Details

If the client is suspended from committing a change batch on the server, the server MUST set x-ecs-request-error to ECS_E_USER_SUSPENDED, as specified in section 2.2.2.28, and set the HTTP status code to 503. The server MUST send the response to the client.

For each file metadata entry specified in SerializedSyncBatch, the server MUST perform the following:

  • Commit the file metadata entry in an implementation-specific manner

  • For each FILE_METADATA_ENTRY in SerializedSyncBatch.Files:

    • If an entry for FILE_METADATA_ENTRY.FileId exists in FileMetadataTable, update the entry with the values of FILE_METADATA_ENTRY

    • Otherwise, add an entry in FileMetadataTable where ObjectStoreID is the ID returned by the object store

  • Construct FILE_STATUS_ENTRY structure

  • Set SyncItemId to FileId in the request

  • Set Status to zero if the entry is committed successfully. Otherwise Status is set to an implementation-specific error code

The server MUST insert all structures constructed above into FileStatusList as specified in section 2.2.2.20.

The server MUST set the HTTP status code to 200.

The server MUST send FileStatusList as the response to the client.