[BUG] Querying group information with the same groupId returns normally, but updating group information results in an error {"errCode":1004,"errMsg":"mongo find one: mongo: no documents in result","errDlt":"mongo find one: mongo: no documents in result"}
OpenIM Server Version
release-v3.7
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
这是 11002 openim 后台修改群组的时候报错,直接调用api
https://doc.rentsoft.cn/zh-Hans/restapi/apis/groupManagement/setGroupInfo
也是相同的错误,其他接口都是正常的,创建查询都是ok的
Screenshots Link
No response
{"t":{"$date":"2024-07-26T14:32:19.843+08:00"},"s":"I", "c":"ACCESS", "id":20250, "ctx":"conn274","msg":"Authentication succeeded","attr":{"mechanism":"SCRAM-SHA-256","speculative":true,"principalName":"openIM","authenticationDatabase":"openim_v3","remote":"221.232.59.18:65009","extraInfo":{}}} {"t":{"$date":"2024-07-26T14:32:20.183+08:00"},"s":"I", "c":"ACCESS", "id":20436, "ctx":"conn274","msg":"Checking authorization failed","attr":{"error":{"code":13,"codeName":"Unauthorized","errmsg":"not authorized on db to execute command { serverStatus: 1, $db: "db", lsid: { id: UUID("7a95f2bb-7218-412a-8600-bffa424e140b") } }"}}} {"t":{"$date":"2024-07-26T14:32:20.695+08:00"},"s":"I", "c":"ACCESS", "id":20436, "ctx":"conn274","msg":"Checking authorization failed","attr":{"error":{"code":13,"codeName":"Unauthorized","errmsg":"not authorized on db to execute command { serverStatus: 1, $db: "db", lsid: { id: UUID("7a95f2bb-7218-412a-8600-bffa424e140b") } }"}}}
mongo 对应的日志
是不是修改群组需要特别权限的账户才能操作,但是已经是admin账户了
check your token first
Are you the group owner or administrator?
yes
this issue has fixed in release-v3.8, I recommend you update to new version. If you run into any new issues, please reopen this issue or create a new one.