You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/api/v1
zeripath bf41958c16
Pad GPG Key ID with preceding zeroes (#20878) (#20885)
Backport #20878

The go crypto library does not pad keyIDs to 16 characters with preceding zeroes. This
is a somewhat confusing thing for most users who expect these to have preceding zeroes.

This PR prefixes any sub 16 length KeyID with preceding zeroes and removes preceding
zeroes from KeyIDs inputted on the API.

Fix #20876

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
admin Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
misc Move issues related files into models/issues (#19931) 3 years ago
notify Move issues related files into models/issues (#19931) 3 years ago
org Fix owners cannot create organization repos bug (#20841) (#20854) 3 years ago
packages Hide private repositories in packages (#19584) 3 years ago
repo Dismiss prior pull reviews if done via web in review dismiss (#20197) (#20407) 3 years ago
settings Make mirror feature more configurable (#16957) 4 years ago
swagger Add API to query collaborators permission for a repository (#18761) 3 years ago
user Pad GPG Key ID with preceding zeroes (#20878) (#20885) 3 years ago
utils Use middleware to open gitRepo (#19559) 3 years ago
api.go Add write check for creating Commit status (#20332) (#20333) 3 years ago
auth.go Remove legacy `+build:` constraint (#19582) 3 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 3 years ago