Repository navigation
remove legacy api support - #1629
Merged
Merged
Conversation
chrisd8088
added a commit
that referenced
this pull request
Oct 22, 2026
During the early development of the Git LFS Batch API, we introduced a feature to our "lfstest-gitserver" test utility which allowed us to disable its support for the Batch API so we could check how the Git LFS client behaved under those conditions. When the test server receives a Batch API request whose URL path contains the repository name "batchunsupported", the server always responds with a 404 Not Found status code, unless the request included an X-Check-Object header with the value "1". The Git LFS client never sends an X-Check-Object header, but the refute_server_object() helper function in our shell test library makes use of this header to ensure that its HTTP request to the test server is fully processed. The helper function would otherwise not be able to confirm that the client failed to upload an object to the test server when trying to do so for a repository named "batchunsupported". At present, this feature of the "lfstest-gitserver" utility and the related support for it in the refute_server_object() helper function are unused, ever since commit 7e624dad96116fc66ebfed1f0a25e04cc684576 of PR #1629 when we removed our only shell test that created a repository with the special "batchunsupported" name. However, in a subsequent commit we intend to introduce a new test which again makes use of this feature of our test server utility. As well, we expect to add several new shell tests that will require a similar feature in the test server to disable its support for the Git LFS Locking API. We therefore now update our "lfstest-gitserver" test utility so that when it receives a Locking API request with the special repository name "locksunsupported" in the URL path, the utility immediately sends a 404 Not Found status code, unless the request has an X-Check-Lock header with the value "1". We then add an X-Check-Lock header to the HTTP request made by the refute_server_lock() helper function in our shell test library, which ensures the function will be able to confirm that the Git LFS client was unable to acquire a lock from the test server when trying to do so for a repository named "locksunsupported".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This removes legacy api support. The only wrinkle here is that the api upload and download tests had to be rewritten to exercise the batch api and not the legacy API.