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.
forgejo/models/fixtures
zeripath 44371b96f5 Ensure valid git author names passed in signatures (#5774)
* Ensure valid git author names passed in signatures

Fix #5772 - Git author names are not allowed to include `\n` `<` or `>` and
must not be empty. Ensure that the name passed in a signature is valid.

* Account for pathologically named external users

LDAP and the like usernames are not checked in the same way that users who signup are.
Therefore just ensure that user names are also git safe and if totally pathological -
Set them to "user-$UID"

* Add Tests and adjust test users

Make our testcases a little more pathological so that we be sure that integration
tests have a chance to spot these cases.

Signed-off-by: Andrew Thornton <art27@cantab.net>
6 years ago
..
access.yml Add search mode option to /api/repo/search (#2756) 7 years ago
access_token.yml Unit tests for token and update models 8 years ago
action.yml User action heatmap (#5131) 6 years ago
attachment.yml MySQL, Postgres integration tests in drone (#1638) 7 years ago
collaboration.yml Unit tests for models/access.go (#606) 8 years ago
comment.yml Hide outdated comments in file view (#5017) 6 years ago
commit_status.yml Status-API (#1332) 7 years ago
deleted_branch.yml Add deleted_branch table fixture (#2832) 7 years ago
deploy_key.yml Writable deploy keys (closes #671) (#3225) 7 years ago
email_address.yml test: Add user mail testing. (#833) 8 years ago
follow.yml Fix and test for delete user (#1713) 7 years ago
gpg_key.yml Add missing fixture to clean gpg_key table (#2494) 7 years ago
hook_task.yml API endpoint for testing webhook (#3550) 6 years ago
issue.yml Multiple assignees (#3705) 6 years ago
issue_assignees.yml Multiple assignees (#3705) 6 years ago
issue_label.yml Bug fixes and unit tests for models/issue_label (#802) 8 years ago
issue_user.yml Multiple assignees (#3705) 6 years ago
issue_watch.yml Hide unactive on explore users and some refactors (#2741) 7 years ago
label.yml Bug fixes and unit tests for models/issue_label (#802) 8 years ago
login_source.yml Add LDAP integration tests (#3897) 6 years ago
milestone.yml Unit tests for issue_milestone (#878) 7 years ago
notice.yml Unit tests for models/admin 8 years ago
notification.yml Add 'mark all read' option to notifications (#3097) 7 years ago
org_user.yml Remove IsOwner, NumTeams from OrgUser (#3269) 7 years ago
protected_branch.yml Don't recreate database in integration tests (#1697) 7 years ago
public_key.yml Fixtures for public_key table (#3140) 7 years ago
pull_request.yml MySQL, Postgres integration tests in drone (#1638) 7 years ago
reaction.yml Add reactions to issues/PR and comments (#2856) 7 years ago
release.yml Fix release display and correct paging (#2080) 7 years ago
repo_indexer_status.yml Code/repo search (#2582) 7 years ago
repo_redirect.yml Unit tests for repo redirects (#961) 7 years ago
repo_topic.yml feat(repo): support search repository by topic name (#4505) 6 years ago
repo_unit.yml Add rebase with merge commit merge style (#3844) (#4052) 6 years ago
repository.yml Refactor repo.isBare to repo.isEmpty #5629 (#5714) 6 years ago
review.yml Show review summary in pull requests (#5132) 6 years ago
star.yml Unit tests for models/star (#752) 8 years ago
stopwatch.yml Feature: Timetracking (#2211) 7 years ago
team.yml Restrict permission check on repositories and fix some problems (#5314) 6 years ago
team_repo.yml Restrict permission check on repositories and fix some problems (#5314) 6 years ago
team_unit.yml Restrict permission check on repositories and fix some problems (#5314) 6 years ago
team_user.yml Restrict permission check on repositories and fix some problems (#5314) 6 years ago
topic.yml feat(repo): support search repository by topic name (#4505) 6 years ago
tracked_time.yml Feature: Timetracking (#2211) 7 years ago
u2f_registration.yml Add support for FIDO U2F (#3971) 6 years ago
user.yml Ensure valid git author names passed in signatures (#5774) 6 years ago
user_open_id.yml Show user OpenID URIs in their profile (#1314) 7 years ago
watch.yml Hide unactive on explore users and some refactors (#2741) 7 years ago
webhook.yml Bug fixes and unit tests for models/webhook (#751) 8 years ago