ACVP-Server
ACVP-Server copied to clipboard
deletion of vector set or test session not evident on subsequent 'GET' requests
This issue was experienced on Demo
testSessionId's: 204932, 208833 vsId's: 727622, 754896, 754897
The vectorSet ID displaying the issue: 727622 and 754896
GET /acvp/v1/testSessions/208833/vectorSets/754896 and GET /acvp/v1/testSessions/204932/vectorSets/727622 return 'retry 30' instead of an indication that they were deleted or cancelled
Expected behavior i would expect either an error message indicating the cancellation of the vector set and/or test session, or a 404 not found response.
additional info:
scenario 1: delete test session
view test session 204932: [ { "acvVersion": "1.0" }, { "url": "/acvp/v1/testSessions/204932", "createdOn": "2021-10-12T14:58:17.72", "expiresOn": "2021-11-27T14:38:41.843", "vectorSetUrls": [ "/acvp/v1/testSessions/204932/vectorSets/727622" ], "publishable": "", "passed": "1", "isSample": "1" } ]
delete test session 204932: [ { "acvVersion": "1.0" }, { "url": "/acvp/v1/testSessions/204932", "status": "expired" } ]
view test session 204932 -- no indication of deletion or cancellation:
[ { "acvVersion": "1.0" }, { "url": "/acvp/v1/testSessions/204932", "createdOn": "2021-10-12T14:58:17.72", "expiresOn": "2021-11-27T14:45:48.277", "vectorSetUrls": [ "/acvp/v1/testSessions/204932/vectorSets/727622" ], "publishable": "", "passed": "", "isSample": "1" } ]
attempt to access vectorset 727622: [ { "acvVersion": "1.0" }, { "retry": "30" } ]
========================
scenario 2: delete a single vector set
view testsession 208833: [ { "acvVersion": "1.0" }, { "url": "/acvp/v1/testSessions/208833", "createdOn": "2021-10-28T14:57:51.513", "expiresOn": "2021-11-27T14:57:51.513", "vectorSetUrls": [ "/acvp/v1/testSessions/208833/vectorSets/754896", "/acvp/v1/testSessions/208833/vectorSets/754897" ], "publishable": "", "passed": "", "isSample": "1" } ]
delete vector set 754896:
[ { "acvVersion": "1.0" }, { "url": "/acvp/v1/testSessions/208833/vectorSets/754896", "status": "expired" } ]
view the testsession -- no indication of deletion or cancellation:
[ { "acvVersion": "1.0" }, { "url": "/acvp/v1/testSessions/208833", "createdOn": "2021-10-28T14:57:51.513", "expiresOn": "2021-11-27T15:12:09.273", "vectorSetUrls": [ "/acvp/v1/testSessions/208833/vectorSets/754896", "/acvp/v1/testSessions/208833/vectorSets/754897" ], "publishable": "", "passed": "", "isSample": "1" } ]
view vector set 754896:
[ { "acvVersion": "1.0" }, { "retry": "30" } ]
Thanks @mmccarl. We'll take a look and see what we can do about this. I believe that we only keep track of two states for vectors sets. Either: 1) they've already been created/generated; or 2) they have not yet been created/generated. We need a third state for vector sets that have or have not been generated, but have been removed from the test session.