gitea/modules
Royce Remer df805d6ed0
Support legacy _links LFS batch responses ()
Support legacy _links LFS batch response.

Fixes .

This is backwards-compatible change to the LFS client so that, upon
mirroring from an upstream which has a batch api, it can download
objects whether the responses contain the `_links` field or its
successor the `actions` field. When Gitea must fallback to the legacy
`_links` field a logline is emitted at INFO level which looks like this:
```
...s/lfs/http_client.go:188:performOperation() [I] <LFSPointer ee95d0a27ccdfc7c12516d4f80dcf144a5eaf10d0461d282a7206390635cdbee:160> is using a deprecated batch schema response!
```

I've only run `test-backend` with this code, but added a new test to
cover this case. Additionally I have a fork with this change deployed
which I've confirmed syncs LFS from Gitea<-Artifactory (which has legacy
`_links`) as well as from Gitea<-Gitea (which has the modern `actions`).

Signed-off-by: Royce Remer <royceremer@gmail.com>
..
actions Resolve lint for unused parameter and unnecessary type arguments ()
activitypub Upgrade to golangci-lint@v1.55.0 ()
analyze Rename code_langauge.go to code_language.go ()
assetfs Use `Set[Type]` instead of `map[Type]bool/struct{}`. ()
auth Enable `unparam` linter ()
avatar Use `crypto/sha256` ()
badge Implement actions badge svgs ()
base Fix natural sort ()
cache Add cache test for admins ()
charset Render embedded code preview by permlink in markdown ()
container Add container.FilterSlice function ()
csv Render embedded code preview by permlink in markdown ()
dump Refactor "dump" sub-command ()
emoji Update emoji set to Unicode 15 ()
eventsource Final round of `db.DefaultContext` refactor ()
generate Refactor JWT secret generating & decoding code ()
git Refactor sha1 and time-limited code ()
gitgraph More `db.DefaultContext` refactor ()
gitrepo Use repo as of renderctx's member rather than a repoPath on metas ()
graceful Remove unused error in graceful manager ()
hcaptcha Consume hcaptcha and pwn deps ()
highlight Add option to disable ambiguous unicode characters detection ()
hostmatcher Support allowed hosts for webhook to work with proxy ()
html Refactor backend SVG package and add tests ()
httpcache Also match weakly validated ETags ()
httplib Fix duplicate sub-path for avatars ()
indexer Fix bug filtering issues which have no project ()
issue/template Support setting the `default` attribute of the issue template dropdown field ()
json Replace `interface{}` with `any` ()
label Make label templates have consistent behavior and priority ()
lfs Support legacy _links LFS batch responses ()
log Add some tests to clarify the "must-change-password" behavior ()
markup bump golang deps ()
mcaptcha Implement FSFE REUSE for golang files ()
metrics Rename project board -> column to make the UI less confusing ()
migration Refactor locale&string&template related code ()
nosql Update tool dependencies, lock govulncheck and actionlint ()
optional Resolve lint for unused parameter and unnecessary type arguments ()
options Use a general approach to access custom/static/builtin assets ()
packages Extract and display readme and comments for Composer packages ()
paginator Use more specific test methods ()
pprof Implement FSFE REUSE for golang files ()
private Move database operations of merging a pull request to post receive hook and add a transaction ()
process Update misspell to 0.5.1 and add `misspellings.csv` ()
proxy Use proxy for pull mirror ()
proxyprotocol Implement FSFE REUSE for golang files ()
public Refactor CORS handler ()
queue Fix queue test ()
recaptcha Implement FSFE REUSE for golang files ()
references Refactor to use UnsafeStringToBytes ()
regexplru Upgrade go dependencies ()
repository Fix adopt repository has empty object name in database ()
secret Use `crypto/sha256` ()
session Improve oauth2 client "preferred username field" logic and the error handling ()
setting Fix duplicate sub-path for avatars ()
sitemap Fix sitemap ()
ssh Remove SSH workaround ()
storage Enable `unparam` linter ()
structs Increase max length of org team names from 30 to 255 characters ()
svg Refactor markdown attention render ()
sync Implement FSFE REUSE for golang files ()
system Refactor to use UnsafeStringToBytes ()
templates Refactor names ()
test Remove sub-path from container registry realm ()
testlogger Replace `interface{}` with `any` ()
timeutil Refactor "dump" sub-command ()
translation Render embedded code preview by permlink in markdown ()
turnstile Add new captcha: cloudflare turnstile ()
typesniffer Detect ogg mime-type as audio or video ()
updatechecker Replace more db.DefaultContext ()
uri Implement FSFE REUSE for golang files ()
user Implement FSFE REUSE for golang files ()
util Refactor to use UnsafeStringToBytes ()
validation Check blocklist for emails when adding them to account ()
web Refactor names ()
webhook Fix schedule tasks bugs ()