使用Atlassian Confluence,编辑 wiki后点击保存,最近一段时间经常遇到调用 /rest/api/content/143700749?status=draft 接口报如下错误
{"statusCode":400,"data":{"authorized":true,"valid":false,"allowedInReadOnlyMode":true,"errors":[{"message":{"key":"xhtml.editor.parse.failed","args":["1","9310","String '--' not allowed in comment (missing '>'?)\n at [row,col {unknown-source}]: [1,9310]"]}}],"successful":false},"message":"Validation failure when converting format","reason":"Bad Request"}
原因是 转换格式时校验失败
解决方案:
- 清除了自建wiki 站点的所有缓存信息(此操作后未正常)
- 关闭了浏览器插件
Mate Translate – 翻译器、词典
原因分析:跟安装的浏览器插件有关系,比如 Mate Translate – 翻译器、词典 插件,关闭插件后正常了
