发布日期: 2024-07-04
版本号: v1.22.1

本次更新主要包含安全增强、API修复及多项功能优化。安全方面替换了mholt/archiver模块。API修复了编辑器预览图片缺失、头像子路径重复、MinIO分块上传内存占用过高、NuGet包过滤功能异常等问题,并新增Nix不可变压缩包链接。界面优化涉及移动端菜单防闪烁、表格列宽调整、Wiki视频相对路径支持、头像圆角显示、通知图标更新、标签页切换逻辑改进等。修复了分支排序、代码预览行号宽度、Markdown数学公式渲染、附件下载权限等多项问题。系统层面优化了内存缓存、数据库迁移、OAuth2自定义URL设置,并更新了依赖库。所有Gitea云端实例将在维护时段自动升级此版本。

更新内容 (中文)

  • 安全
    • mholt/archiver 添加替换模块 (#31267) (#31270)
  • API
    • 修复因错误链接导致的编辑器预览图片缺失 (#31299) (#31393)
    • 修复头像重复子路径问题 (#31365) (#31368)
    • 减少分块构件上传至 MinIO 时的内存占用 (#31325) (#31338)
    • 移除容器镜像库领域的子路径 (#31293) (#31300)
    • 修复 NuGet 包 API 处理 $filter 的 ID 相等性问题 (#31188) (#31242)
    • 为 Nix 归档下载头添加不可变 tarball 链接 (#31139) (#31145)
    • ctx.ServerError 后补充缺失的返回 (#31130) (#31133)
  • 错误修复
    • 修复新建议题页面的头像圆角问题 (#31506) (#31508)
    • 修复移动端溢出菜单闪烁 (#31484) (#31488)
    • 修复因断字导致的表格列宽异常 (#31473) (#31477)
    • 支持 Wiki 页面的视频相对路径 (#31061) (#31453)
    • 修复新建议题/PR 头像 (#31419) (#31424)
    • 将组织团队名称最大长度从 30 增至 255 字符 (#31410) (#31421)
    • 修复代码预览行号宽度 (#31307) (#31316)
    • 优化 Runner 标签布局以提升视觉体验 (#31258) (#31263)
    • 修复推送通知溢出 (#31179) (#31238)
    • 修复通知列表溢出 (#31178) (#31237)
    • 修复议题卡片溢出 (#31203) (#31225)
    • 拆分消毒函数并优化测试用例 (#31192) (#31200)
    • 使用正确的本地化字符串 (#31487) (#31490)
    • 修复附件禁用时的拖放区 JS 错误 (#31486)
    • 修复全部已读后网页通知图标未更新 (#31447) (#31466)
    • 再次编辑评论时自动切换至"编写"标签页 (#31445) (#31461)
    • 修复 .git-blame-ignore-revs 绕过链接 (#31432) (#31442)
    • 修复差异视图页面二次展开后的错误行号 (#31431) (#31440)
    • 修复议题页标签和项目菜单溢出 (#31435) (#31439)
    • 修复账户链接 UpdateMigrationsByType (#31428) (#31434)
    • 修复 Markdown 数学公式括号渲染问题 (#31420) (#31430)
    • 修复渲染后的 Wiki 页面链接 (#31398) (#31407)
    • 修复自然排序 (#31384) (#31394)
    • 允许下载草稿版本的附件 (#31369) (#31380)
    • 修复仓库图谱 JS (#31377)
    • 修复错误的本地化 explorer.go (#31348) (#31350)
    • 修复哈希渲染结尾冒号问题 (#31319) (#31346)
    • 修复行号宽度 (#31341) (#31343)
    • 修复导航栏 + 菜单页面加载时闪烁 (#31281) (#31342)
    • 修复仓库收养时数据库空对象名问题 (#31333) (#31335)
    • 设置新 Cookie 前删除旧 Cookie (#31306) (#31317)
    • 修复部分缺失子路径的 URL (#31289) (#31292)
    • 修复管理员 OAuth2 自定义 URL 设置 (#31246) (#31247)
    • 使粘贴的 “img” 标签与 Markdown 图片行为一致 (#31235) (#31243)
    • 修复 agit checkout 命令行提示及 ShowMergeInstructions 检查 (#31219) (#31222)
    • 修复 PostgreSQL 16 上 286 版本可能的迁移失败 (#31209) (#31218)
    • 修复分支顺序 (#31174) (#31193)
    • 修复标记预览 (#31158) (#31166)
    • 修复多分支推送错误及添加测试 (#31151) (#31153)
    • 修复 API 仓库对象格式缺失 (#31118) (#31132)
    • 修复缺失的 memcache 导入 (#31105) (#31109)
    • 升级 github.com/hashicorp/go-retryablehttp (#31499)
    • 修复系统状态表双边框问题 (#31363) (#31401)
    • 修复无项目议题过滤错误 (#31337) (#31367)
    • 修复 #31185 尝试修复从 Bitbucket 下载 LFS 失败 (#31201) (#31329)
    • 添加开发环境的 Nix flake (#30967) (#31310)
    • 修复并清理 ConfirmModal (#31283) (#31291)
    • 优化仓库列表布局提升视觉体验 (#31272) (#31276)
    • 修复顶部新建按钮下拉菜单向左展开 (#31273) (#31275)
    • 修复活动页贡献者下拉菜单 (#31264) (#31269)
    • 修复 Actions 构件存储迁移完成问题 (#31251) (#31257)
    • 使 blockquote attention 识别更多语法 (#31240) (#31250)
    • 移除 .project-column 中的 .segment (#31204) (#31239)
    • 忽略 FindRecentlyPushedNewBranches 错误 (#31164) (#31171)
    • 为多个代码展开按钮使用垂直布局 (#31122) (#31152)
    • 移除 Apache httpd 文档中的重复 ProxyPreserveHost (#31143) (#31147)
    • 优化移动端评审界面 (#31091) (#31136)
    • 修复仓库列表边距 (#31121) (#31128)
    • 更新 Docker 的 pip 相关命令 (#31106) (#31111)

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

更新内容 (原始)

  • SECURITY
    • Add replacement module for mholt/archiver (#31267) (#31270)
  • API
    • Fix missing images in editor preview due to wrong links (#31299) (#31393)
    • Fix duplicate sub-path for avatars (#31365) (#31368)
    • Reduce memory usage for chunked artifact uploads to MinIO (#31325) (#31338)
    • Remove sub-path from container registry realm (#31293) (#31300)
    • Fix NuGet Package API for $filter with Id equality (#31188) (#31242)
    • Add an immutable tarball link to archive download headers for Nix (#31139) (#31145)
    • Add missed return after ctx.ServerError (#31130) (#31133)
  • BUGFIXES
    • Fix avatar radius problem on the new issue page (#31506) (#31508)
    • Fix overflow menu flickering on mobile (#31484) (#31488)
    • Fix poor table column width due to breaking words (#31473) (#31477)
    • Support relative paths to videos from Wiki pages (#31061) (#31453)
    • Fix new issue/pr avatar (#31419) (#31424)
    • Increase max length of org team names from 30 to 255 characters (#31410) (#31421)
    • Fix line number width in code preview (#31307) (#31316)
    • Optimize runner-tags layout to enhance visual experience (#31258) (#31263)
    • Fix overflow on push notification (#31179) (#31238)
    • Fix overflow on notifications (#31178) (#31237)
    • Fix overflow in issue card (#31203) (#31225)
    • Split sanitizer functions and fine-tune some tests (#31192) (#31200)
    • use correct l10n string (#31487) (#31490)
    • Fix dropzone JS error when attachment is disabled (#31486)
    • Fix web notification icon not updated once you read all notifications (#31447) (#31466)
    • Switch to “Write” tab when edit comment again (#31445) (#31461)
    • Fix the link for .git-blame-ignore-revs bypass (#31432) (#31442)
    • Fix the wrong line number in the diff view page when expanded twice. (#31431) (#31440)
    • Fix labels and projects menu overflow on issue page (#31435) (#31439)
    • Fix Account Linking UpdateMigrationsByType (#31428) (#31434)
    • Fix markdown math brackets render problem (#31420) (#31430)
    • Fix rendered wiki page link (#31398) (#31407)
    • Fix natural sort (#31384) (#31394)
    • Allow downloading attachments of draft releases (#31369) (#31380)
    • Fix repo graph JS (#31377)
    • Fix incorrect localization explorer.go (#31348) (#31350)
    • Fix hash render end with colon (#31319) (#31346)
    • Fix line number widths (#31341) (#31343)
    • Fix navbar + menu flashing on page load (#31281) (#31342)
    • Fix adopt repository has empty object name in database (#31333) (#31335)
    • Delete legacy cookie before setting new cookie (#31306) (#31317)
    • Fix some URLs whose sub-path is missing (#31289) (#31292)
    • Fix admin oauth2 custom URL settings (#31246) (#31247)
    • Make pasted “img” tag has the same behavior as markdown image (#31235) (#31243)
    • Fix agit checkout command line hint & fix ShowMergeInstructions checking (#31219) (#31222)
    • Fix the possible migration failure on 286 with postgres 16 (#31209) (#31218)
    • Fix branch order (#31174) (#31193)
    • Fix markup preview (#31158) (#31166)
    • Fix push multiple branches error with tests (#31151) (#31153)
    • Fix API repository object format missed (#31118) (#31132)
    • Fix missing memcache import (#31105) (#31109)
    • Upgrade github.com/hashicorp/go-retryablehttp (#31499)
    • Fix double border in system status table (#31363) (#31401)
    • Fix bug filtering issues which have no project (#31337) (#31367)
    • Fix #31185 try fix lfs download from bitbucket failed (#31201) (#31329)
    • Add nix flake for dev shell (#30967) (#31310)
    • Fix and clean up ConfirmModal (#31283) (#31291)
    • Optimize repo-list layout to enhance visual experience (#31272) (#31276)
    • fixed the dropdown menu for the top New button to expand to the left (#31273) (#31275)
    • Fix Activity Page Contributors dropdown (#31264) (#31269)
    • fix: allow actions artifacts storage migration to complete succesfully (#31251) (#31257)
    • Make blockquote attention recognize more syntaxes (#31240) (#31250)
    • Remove .segment from .project-column (#31204) (#31239)
    • Ignore FindRecentlyPushedNewBranches err (#31164) (#31171)
    • Use vertical layout for multiple code expander buttons (#31122) (#31152)
    • Remove duplicate ProxyPreserveHost in Apache httpd doc (#31143) (#31147)
    • Improve mobile review ui (#31091) (#31136)
    • Fix DashboardRepoList margin (#31121) (#31128)
    • Update pip related commands for docker (#31106) (#31111)

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

下载链接