Skip to content

Backup: отклонять null-списки групп серверов и участников - #512

Merged
github-actions[bot] merged 1 commit into
developerfrom
fix/backup-null-server-groups
Nov 22, 2026
Merged

github-actions[bot] merged 1 commit into
developerfrom
fix/backup-null-server-groups

Conversation

@endercodezz

Copy link
Copy Markdown
Owner

Closes #511

Что сделано

  • BackupArchive.Validate отклоняет ServerGroups/Contributors: null, null-элементы и группы без id, имени, списка профилей или адреса проверки. Раньше такой архив проходил проверку и падал в ImportSettings (Merge) либо сохранял null в настройки (Replace).

Как проверено

  • Тесты на отклонение (в том числе при экспорте) и на то, что обычные группы по-прежнему объединяются в Merge.
  • Тесты backup: 92 пройдено. Полный scripts/check.sh — в CI.

Validate checked every routing list but not Settings.ServerGroups or
Settings.Contributors, so a null list passed and Merge import then threw
a NullReferenceException (Replace persisted the null). Reject null lists
and malformed group entries.

Closes #511
@github-actions
github-actions Bot enabled auto-merge November 22, 2026 02:12
@github-actions
github-actions Bot merged commit 1836495 into developer Nov 22, 2026
28 checks passed
@github-actions
github-actions Bot deleted the fix/backup-null-server-groups branch November 22, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant