For customers that use only "normal" checkout/in or "cloud" checkout/in, cancel checkout works fine. However, if both are configured (as we have on most of our demo environments), then cancel checkout fails in the following case:
Checkout document normally
Ensure that the Cancel Checkout configuration is set to delete the cloud copy (as it should be for cloud checkout)
Cancel checkout. This fails with the following error:
2021-01-21 14:28:41,258 24869843 ajp-apr-8009-exec-4 ERROR RESTService CheckinFromCloudServiceActionExecuter #getDocIDAndDriveID error getting document because of status code: 404, Not Found. With error:
com.tsgrp.opencontent.core.exception.OCRuntimeException: CheckinFromCloudServiceActionExecuter #getDocIDAndDriveID error getting document because of status code: 404, Not Found. With error:
at com.tsgrp.opencontent.core.action.executer.CancelCheckoutActionExecuter.getDocIDAndDriveID(CancelCheckoutActionExecuter.java:226)
at com.tsgrp.opencontent.core.action.executer.CancelCheckoutActionExecuter.executeImpl(CancelCheckoutActionExecuter.java:126)
Our code should handle the case where cancel checkout cannot find the document to delete on the cloud service. Note that I only tested this while using Microsoft Online. We should also test against Google docs as well.
As a workaround, temporarily change the configuration for Cancel Checkout to NOT delete the cloud copy, execute your cancel checkout, and then switch it back.
For customers that use only "normal" checkout/in or "cloud" checkout/in, cancel checkout works fine. However, if both are configured (as we have on most of our demo environments), then cancel checkout fails in the following case:
Our code should handle the case where cancel checkout cannot find the document to delete on the cloud service. Note that I only tested this while using Microsoft Online. We should also test against Google docs as well.
As a workaround, temporarily change the configuration for Cancel Checkout to NOT delete the cloud copy, execute your cancel checkout, and then switch it back.