Skip to content

fix: Multiple bugs - #153

Open
aberter0x3f wants to merge 7 commits into
UniversalOJ:masterfrom
aberter0x3f:bugfix
Open

fix: Multiple bugs#153
aberter0x3f wants to merge 7 commits into
UniversalOJ:masterfrom
aberter0x3f:bugfix

Conversation

@aberter0x3f

@aberter0x3f aberter0x3f commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

修复一大堆 bug:

  • 对于测试点非常多(> 700 个)的题目会产生非常长的 detail,导致无法写入数据库(字段为 BLOB,有 65535 byte 长度限制).
  • use_builtin_judger 的题目无法开启 hack,原因是少传了个 user 参数导致系统认为所有人都不是管理员.
  • 同理,即使修改数据库强制开 hack,hack 成功后自动加数据自动 sync 的时候同样漏了 user 参数导致不能正常重测.
  • judger v2 参数出现错误:会把 real_time_limit(秒)的数值直接填成 stack_limit(MiB).
  • 原本的 upgrade 因为没传 host 参数,导致原有的数据库自动更新逻辑无法自动执行.
  • 引起歧义的单位名称(kb、mb 应为 KiB、MiB)

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