发布日期: 2024-09-05
版本号: v1.22.2

本次更新包含安全修复、性能优化及多个问题修复。安全方面,搜索输入框将v-html替换为v-text以避免潜在风险,并修复了NuGet/Conan/容器包上传的漏洞。性能方面改进了批量catfile处理逻辑。错误修复涉及多项功能,包括:修复操作日志内容溢出、项目问题图片独立滚动、按钮焦点样式、已删除项目的类型显示、仓库密钥API端点异常、拉取请求权限校验、特殊字符导致的镜像URL错误、Agit自动合并问题、验证码模板配置、SSH公钥删除后页面崩溃、分支重命名同步至拉取请求、Wiki分页及链接异常等。此外,优化了界面元素显示(如LFS锁定者信息)、修复了多仓库迁移时的权限问题,并升级了部分依赖库(如Bleve、Webpack)。Gitea Cloud实例将在维护窗口自动升级至此版本。

更新内容 (中文)

  • 安全性
    • 在搜索输入框中将 v-html 替换为 v-text (#31966) (#31973)
    • 修复 nuget/conan/container 包上传错误 (#31967) (#31982)
  • 性能
    • 重构批量 catfile 的使用方式 (#31754) (#31889)
  • 错误修复
    • 修复操作运行日志中内容溢出的问题 (#31842) (#31853)
    • 使项目议题中的图片可独立于其他内容滚动 (#31683) (#31823)
    • 为按钮添加 :focus-visible 样式 (#31799) (#31819)
    • 修复已删除项目的项目类型显示 (#31732) (#31734)
    • 修复创建仓库机密时API所有者ID应设为零 (#31715) (#31811)
    • 获取仓库注册令牌时设置所有者ID为零 (#31725) (#31729)
    • 修复注册令牌API端点 (#31722) (#31728)
    • 创建PR时添加权限检查 (#31033) (#31720)
    • 当镜像URL包含特殊字符时不返回500错误 (#31859) (#31895)
    • 修复agit自动合并 (#31207) (#31881)
    • 向所有验证码模板添加CfTurnstileSitekey上下文数据 (#31874) (#31876)
    • 避免提交PR时未写入上下文就返回 (#31843) (#31848)
    • 修复原始Wiki链接 (#31825) (#31845)
    • 修复认证源删除后SSH公钥页面崩溃问题 (#31829) (#31836)
    • 修复组织转移仓库后项目议题不可达的问题 (#31770) (#31828)
    • 在LFS设置页面显示锁定者而非仓库所有者 (#31788) (#31817)
    • 使用gogit修复IsObjectExist (#31790) (#31806)
    • 修复pre_receive钩子中的受保护分支文件检测 (#31778) (#31796)
    • TAGS添加到TEST_TAGS并修复gogit发现的问题 (#31791) (#31795)
    • 重命名分支时同步更新PR头分支名称 (#31759) (#31774)
    • 修复Wiki版本分页 (#31760) (#31772)
    • 升级vue-bar-graph (#31705) (#31753)
    • 区分LFS对象错误以忽略迁移期间缺失对象 (#31702) (#31745)
    • 使GetRepositoryByName更安全 (#31712) (#31718)
    • 修复分支差异缓存错误 (#31659) (#31661)
    • 允许组织团队名称在创建表单中使用255长度 (#31564) (#31603)
    • 对telegram webhook使用旧版行为 (#31588)
    • 修复俄语翻译错误 (#31892)
    • 修复Actions通知错误 (#31866) (#31875)
    • 修复访问令牌列表组件未挂载的问题 (#31824) (#31868)
    • 向分页添加缺失的仓库类型过滤参数 (#31832) (#31837)
    • 修复接近月末时日期显示异常的问题 (#31750)
    • 修复"按提交过滤"下拉框 (#31695) (#31696)
    • 无分配者过滤时正确筛选议题列表 (#31522) (#31685)
    • 防止手动更新PR引用并避免影响其他引用更新 (#31931) (#31955)
    • 修复组织和用户主页的排序问题 (#31921) (#31922)
    • 修复团队搜索 (#31923) (#31942)
    • 修复通过API编辑议题/PR时设置state参数导致的500错误 (#31880) (#31952)
    • 修复索引过多文件名的错误 (#31903) (#31953)
    • 为并行Maven上传添加锁机制 (#31851) (#31954)
  • 其他
    • 从测试用例中移除"dsa-1024" (#31905) (#31914)
    • 升级bleve至2.4.2 (#31894)
    • 移除不必要的word-break: break-all使用 (#31637) (#31652)
    • 仓库无头像时API返回空字符串 (#31187) (#31567)
    • 升级micromatch至4.0.8 (#31944)
    • 更新webpack至5.94.0 (#31941)

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

更新内容 (原始)

  • Security
    • Replace v-html with v-text in search inputbox (#31966) (#31973)
    • Fix nuget/conan/container packages upload bugs (#31967) (#31982)
  • PERFORMANCE
    • Refactor the usage of batch catfile (#31754) (#31889)
  • BUGFIXES
    • Fix overflowing content in action run log (#31842) (#31853)
    • Scroll images in project issues separately from the remaining issue (#31683) (#31823)
    • Add :focus-visible style to buttons (#31799) (#31819)
    • Fix the display of project type for deleted projects (#31732) (#31734)
    • Fix API owner ID should be zero when created repo secret (#31715) (#31811)
    • Set owner id to zero when GetRegistrationToken for repo (#31725) (#31729)
    • Fix API endpoint for registration-token (#31722) (#31728)
    • Add permission check when creating PR (#31033) (#31720)
    • Don’t return 500 if mirror url contains special chars (#31859) (#31895)
    • Fix agit automerge (#31207) (#31881)
    • Add CfTurnstileSitekey context data to all captcha templates (#31874) (#31876)
    • Avoid returning without written ctx when posting PR (#31843) (#31848)
    • Fix raw wiki links (#31825) (#31845)
    • Fix panic of ssh public key page after deletion of auth source (#31829) (#31836)
    • Fixes for unreachable project issues when transfer repository from organization (#31770) (#31828)
    • Show lock owner instead of repo owner on LFS setting page (#31788) (#31817)
    • Fix IsObjectExist with gogit (#31790) (#31806)
    • Fix protected branch files detection on pre_receive hook (#31778) (#31796)
    • Add TAGS to TEST_TAGS and fix bugs found with gogit (#31791) (#31795)
    • Rename head branch of pull requests when renaming a branch (#31759) (#31774)
    • Fix wiki revision pagination (#31760) (#31772)
    • Bump vue-bar-graph (#31705) (#31753)
    • Distinguish LFS object errors to ignore missing objects during migration (#31702) (#31745)
    • Make GetRepositoryByName more safer (#31712) (#31718)
    • Fix a branch divergence cache bug (#31659) (#31661)
    • Allow org team names of length 255 in create team form (#31564) (#31603)
    • Use old behavior for telegram webhook (#31588)
    • Bug fix for translation in ru (#31892)
    • Fix actions notify bug (#31866) (#31875)
    • Fix the component of access token list not mounted (#31824) (#31868)
    • Add missing repository type filter parameters to pager (#31832) (#31837)
    • Fix dates displaying in a wrong manner when we’re close to the end of… (#31750)
    • Fix “Filter by commit” Dropdown (#31695) (#31696)
    • Properly filter issue list given no assignees filter (#31522) (#31685)
    • Prevent update pull refs manually and will not affect other refs update (#31931)(#31955)
    • Fix sort order for organization home and user profile page (#31921) (#31922)
    • Fix search team (#31923) (#31942)
    • Fix 500 error when state params is set when editing issue/PR by API (#31880) (#31952)
    • Fix index too many file names bug (#31903) (#31953)
    • Add lock for parallel maven upload (#31851) (#31954)
  • MISC
    • Remove “dsa-1024” testcases from Test_SSHParsePublicKey and Test_calcFingerprint (#31905) (#31914)
    • Upgrade bleve to 2.4.2 (#31894)
    • Remove unneccessary uses of word-break: break-all (#31637) (#31652)
    • Return an empty string when a repo has no avatar in the repo API (#31187) (#31567)
    • Upgrade micromatch to 4.0.8 (#31944)
    • Update webpack to 5.94.0 (#31941)

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

下载链接