发布日期: 2024-01-17
版本号: v1.21.4

本次更新包含安全修复、错误修正、功能优化及文档改进。安全方面升级了第三方依赖库并加强订阅端点的访问令牌验证。错误修复涉及界面显示问题、空指针异常、权限校验、数据库同步、工作流运行等30余项,解决了标签同步、议题链接、命令行工具崩溃、仓库设置显示异常等问题。功能优化包括合并请求交互改进、仪表盘加载加速、项目分配流程优化及内存泄漏诊断工具增强。文档更新了系统服务配置建议和制品保留说明。杂项改进包含提交搜索优化、版本附件下载属性添加等。部署在Gitea云平台的实例将在维护窗口自动升级至此版本。

更新内容 (中文)

  • 安全
    • 更新 github.com/cloudflare/circl (#28789) (#28790)
    • 要求 GET subscription 接口提供令牌 (#28765) (#28768)
  • 错误修复
    • 同步标签时使用 refname:strip-2 替代 refname:short (#28797) (#28811)
    • 修复问题卡片中的链接 (#28806) (#28807)
    • 修复执行某些 Gitea CLI 命令时的 nil 指针 panic (#28791) (#28795)
    • 要求 GET subscription 接口提供令牌 (#28765) (#28778)
    • 修复"附加右侧标题"中的按钮尺寸 (#28770) (#28774)
    • 修复空输入时的 convert.ToTeams 转换 (#28426) (#28767)
    • 当代码单元禁用时隐藏仓库中的代码相关设置选项 (#28631) (#28749)
    • 修复"在新议题中引用"的错误 URL (#28716) (#28723)
    • 修复解析空 pgsql 主机时的 panic (#28708) (#28709)
    • 升级 xorm 到支持所有数据库 update join 的新版本 (#28590) (#28668)
    • 修复 Alpine 软件包文件未重建的问题 (#28638) (#28665)
    • 避免用户/登录页面的循环重定向 (#28636) (#28658)
    • 修复定时工作流运行的空引用问题 (#28640) (#28647)
    • 移除不必要的 syncbranchToDB 并添加测试 (#28624) (#28629)
    • 迁移 GitLab 时使用已知问题 IID 生成新的 PR 索引号 (#28616) (#28618)
    • 修复弹性容器宽度问题 (#28603) (#28605)
    • 修复表情符号/提及列表的滚动行为 (#28597) (#28601)
    • 修复议题列表页面中的截止日期渲染错误 (#28588) (#28591)
    • 修复 status_check_contexts 匹配错误 (#28582) (#28589)
    • 修复提交搜索的 500 错误 (#28576) (#28579)
    • 使用之前 blame 部分的信息 (#28572) (#28577)
    • 更新 mermaid 至 1.21 版本 (#28571)
    • 修复 CORS/OIDC 的 405 方法不允许错误 (#28583) (#28586) (#28587) (#28611)
    • 修复 GetCommitStatuses (#28787) (#28804)
    • 禁止移除最后的管理员用户 (#28337) (#28793)
    • 修复定时任务问题 (#28691) (#28780)
    • 修复议题依赖关系 (#27736) (#28776)
    • 修复系统 Webhooks API 错误 (#28531) (#28666)
    • 修复当私有用户关注用户时,私有用户在自己视图中不被计数的问题 (#28037) (#28792)
    • 在活动标签页渲染代码块 (#28816) (#28818)
  • 功能改进
    • 重构标记链接渲染 (#26745) (#28803)
    • 现代化合并按钮 (#28140) (#28786)
    • 加速 MySQL/MariaDB 的仪表盘加载 (#28546) (#28784)
    • 在创建时分配 Pull Request 到项目 (#28227) (#28775)
    • 将标签描述显示为工具提示而非标题 (#28754) (#28766)
    • 使模板 DateTime 显示正确的工具提示 (#28677) (#28683)
    • 切换 apt 签名密钥的目标目录 (#28639) (#28642)
    • 在诊断报告中包含堆内存分析以帮助调试内存泄漏 (#28596) (#28599)
  • 文档
    • 建议对 systemd 服务使用 Type=simple (#28717) (#28722)
    • 扩展 ARTIFACT_RETENTION_DAYS 的描述 (#28626) (#28630)
  • 其他
    • 在提交搜索中添加 -F 参数以将关键词视为字符串 (#28744) (#28748)
    • 为发布附件添加 download 属性 (#28739) (#28740)
    • checkIfPRContentChanged 中拼接错误信息 (#28731) (#28737)
    • 改进 1.21 版的数据库准备文档 (#28643) (#28644)

Gitea 云 上的实例将在指定维护窗口期间自动升级至此版本。

更新内容 (原始)

  • SECURITY
    • Update github.com/cloudflare/circl (#28789) (#28790)
    • Require token for GET subscription endpoint (#28765) (#28768)
  • BUGFIXES
    • Use refname:strip-2 instead of refname:short when syncing tags (#28797) (#28811)
    • Fix links in issue card (#28806) (#28807)
    • Fix nil pointer panic when exec some gitea cli command (#28791) (#28795)
    • Require token for GET subscription endpoint (#28765) (#28778)
    • Fix button size in “attached header right” (#28770) (#28774)
    • Fix convert.ToTeams on empty input (#28426) (#28767)
    • Hide code related setting options in repository when code unit is disabled (#28631) (#28749)
    • Fix incorrect URL for “Reference in New Issue” (#28716) (#28723)
    • Fix panic when parsing empty pgsql host (#28708) (#28709)
    • Upgrade xorm to new version which supported update join for all supported databases (#28590) (#28668)
    • Fix alpine package files are not rebuilt (#28638) (#28665)
    • Avoid cycle-redirecting user/login page (#28636) (#28658)
    • Fix empty ref for cron workflow runs (#28640) (#28647)
    • Remove unnecessary syncbranchToDB with tests (#28624) (#28629)
    • Use known issue IID to generate new PR index number when migrating from GitLab (#28616) (#28618)
    • Fix flex container width (#28603) (#28605)
    • Fix the scroll behavior for emoji/mention list (#28597) (#28601)
    • Fix wrong due date rendering in issue list page (#28588) (#28591)
    • Fix status_check_contexts matching bug (#28582) (#28589)
    • Fix 500 error of searching commits (#28576) (#28579)
    • Use information from previous blame parts (#28572) (#28577)
    • Update mermaid for 1.21 (#28571)
    • Fix 405 method not allowed CORS / OIDC (#28583) (#28586) (#28587) (#28611)
    • Fix GetCommitStatuses (#28787) (#28804)
    • Forbid removing the last admin user (#28337) (#28793)
    • Fix schedule tasks bugs (#28691) (#28780)
    • Fix issue dependencies (#27736) (#28776)
    • Fix system webhooks API bug (#28531) (#28666)
    • Fix when private user following user, private user will not be counted in his own view (#28037) (#28792)
    • Render code block in activity tab (#28816) (#28818)
  • ENHANCEMENTS
    • Rework markup link rendering (#26745) (#28803)
    • Modernize merge button (#28140) (#28786)
    • Speed up loading the dashboard on mysql/mariadb (#28546) (#28784)
    • Assign pull request to project during creation (#28227) (#28775)
    • Show description as tooltip instead of title for labels (#28754) (#28766)
    • Make template DateTime show proper tooltip (#28677) (#28683)
    • Switch destination directory for apt signing keys (#28639) (#28642)
    • Include heap pprof in diagnosis report to help debugging memory leaks (#28596) (#28599)
  • DOCS
    • Suggest to use Type=simple for systemd service (#28717) (#28722)
    • Extend description for ARTIFACT_RETENTION_DAYS (#28626) (#28630)
  • MISC
    • Add -F to commit search to treat keywords as strings (#28744) (#28748)
    • Add download attribute to release attachments (#28739) (#28740)
    • Concatenate error in checkIfPRContentChanged (#28731) (#28737)
    • Improve 1.21 document for Database Preparation (#28643) (#28644)

Instances on Gitea Cloud will be automatically upgraded to this version during the specified maintenance window.

下载链接