stable

Clone or download

Read-only

Do not write more than the initially announced size of an object

Clients trying to save more data than what they announced to the batch API are rejected and the excess of data is no more written to the storage. This is part of story #12322: have git-lfs batch and basic transfer API Change-Id: I150137d3d3512f201fd46c5fd6c6b592935784ca

Modified Files

Name
A plugins/gitlfs/include/Transfer/Basic/BlockToMaxSizeOnReadFilter.php +83 −0 Go to diff View file
A plugins/gitlfs/include/Transfer/Basic/LFSBasicTransferObjectOutOfBoundSizeException.php +29 −0 Go to diff View file
M plugins/gitlfs/include/Transfer/Basic/LFSBasicTransferObjectSaver.php +12 −8 Go to diff View file
A plugins/gitlfs/include/Transfer/Basic/ReadTooMuchDataException.php +29 −0 Go to diff View file
A plugins/gitlfs/phpunit/Transfer/Basic/BlockToMaxSizeOnReadFilterTest.php +59 −0 Go to diff View file
M plugins/gitlfs/phpunit/Transfer/Basic/LFSBasicTransferObjectSaverTest.php +26 −16 Go to diff View file