stable

Clone or download

Read-only

Implement lock verify

This change is part of story #12323 This feature is secured by a feature flag in Forge Config: feature_gitlfs_lock_api It can be tested by calling directly the API. /!\ Following discussions, although pagination is described in the Git LFS spec, it has been removed from this commit due to the fact that the same authentication token is used for going through it which is incompatible with our one-shot tokens implementation. It will be implemented later on if ever needed. /!\ Change-Id: Ief3825d198863848d7bbf40b970bc9c4971e271b

Modified Files

Name
M plugins/gitlfs/include/Lock/Controller/LFSLockCreateController.php +2 −2 Go to diff View file
M plugins/gitlfs/include/Lock/Controller/LFSLockListController.php +2 −1 Go to diff View file
A plugins/gitlfs/include/Lock/Controller/LFSLockVerifyController.php +158 −0 Go to diff View file
M plugins/gitlfs/include/Lock/LockDao.php +25 −3 Go to diff View file
M plugins/gitlfs/include/Lock/LockRetriever.php +17 −2 Go to diff View file
R plugins/gitlfs/include/Lock/Request/IncorrectlyFormattedLockCreateRequestException.php Go to diff View file
M plugins/gitlfs/include/Lock/Request/LockCreateRequest.php +6 −6 Go to diff View file
A plugins/gitlfs/include/Lock/Request/LockVerifyRequest.php +79 −0 Go to diff View file
M plugins/gitlfs/include/Lock/Response/LockResponseBuilder.php +10 −3 Go to diff View file
A plugins/gitlfs/include/Lock/Response/LockResponseSuccessfulVerifyRepresentation.php +48 −0 Go to diff View file
M plugins/gitlfs/include/gitlfsPlugin.class.php +20 −0 Go to diff View file
A plugins/gitlfs/phpunit/Lock/Request/LockVerifyRequestTest.php +53 −0 Go to diff View file
M plugins/gitlfs/phpunit/Lock/Response/LockResponseBuilderTest.php +44 −0 Go to diff View file