Status code different in duplicate document creation in AS 10.5 vs AC 20.2

Hi,

Our client currently have Archive Server v10.5 running in our production system. We are upgrading it to 20.2 and have set up a parallel Archive Center 20.2 instance.

The old setup is http whereas new setup is https only enabled.

Client has a custom SAP test program which they use for their testing. One of the test is a document is created in Archive Server with a specific docID and then it is deleted and test program monitor the http response status (200) to validate the test.

It again performs the same test with same docID and since this document ID is already been used, it returns an error.

Now, in the old system (AS 10.5) the repeated test, returns the http status response 403 which is expected by the test program and is considered as passed.

However in the new system (AC 20.2), the repeated test, returns the http status 500 which is not an expected status code by the test program and is considered as failed.

I checked the as.log and the difference in old and new system is the exception

In AS 10.5, I see "com.opentext.ecm.asm.exception.DuplicateException" whereas in AC20.2 I see "com.opentext.ecm.asm.exception.PersistenceException"

both exceptions logically looks correct but why the status code returned is different and is it possible to get status 403 in AC 20.2?

Tagged: