dromara / Jpom

🚀简而轻的低侵入式在线构建、自动部署、日常运维、项目监控软件
https://jpom.dromara.org/
Other
1.3k stars 279 forks source link

通过私人令牌导入仓库时,数据库错误 #45

Closed yeliulee closed 1 year ago

yeliulee commented 1 year ago

通过私人令牌导入仓库失败,报错如下

数据库异常 Value too long for column "PASSWORD CHARACTER VARYING(50)": "'github_pat_11AL5JVBum_....... (93)"; SQL statement: INSERT INTO REPOSITORY (`name`, `gitUrl`, `repoType`, `protocol`, `userName`, `password`, `rsaPub`, `rsaPrv`, `workspaceId`, `modifyUser`, `createUser`, `createTimeMillis`, `id`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [22001-214]

目测原因是因为 github personal access token 的长度超过了数据库定义

使用的 Fine-grained personal access tokens, 超过 50 了

Idiot-Alex commented 1 year ago

该问题已经修复,详见 https://github.com/dromara/Jpom/commit/e7cc721292f2e8b523e9761fcd0419dce467fe8c

Gitee: https://gitee.com/dromara/Jpom/commit/e7cc721292f2e8b523e9761fcd0419dce467fe8c

bwcx-jzy commented 1 year ago

2.10.41.1 修复