-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
直接上传的题图应该与该文档关联
Is there an existing issue for this?
- I have searched the existing issuesTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default themeTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Describe the problem
直接上传题图,
SELECT * from assets where root_id = 该文档
无法通过sql查询到,似乎完全没有记录到 assets 表中
Expected result
assets 存在题图相关资源的记录,可以sql查询得到
Screenshot or screen recording presentation
No response
Version environment
- Version: 2.11.3
- Operating System: windows
- Browser (if used):
Log file
无
More information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
Select code repository
Activity
[-]直接上传的题图应该与该文档关联[/-][+]The doc title image uploaded directly should be associated with the doc[/+]88250 commentedon Dec 20, 2023
我这里测试正常,请再测试看看,操作录屏:
issue.webm
88250 commentedon Dec 20, 2023
我先关闭了,如果还有问题请继续跟帖,谢谢 🙏
2234839 commentedon Dec 20, 2023
default.mp4
我刚试了一下,创建一个新笔记本是可以的,但在我之前的笔记本上却不行
88250 commentedon Dec 20, 2023
看下 upload 请求,有没有 id 参数。
2234839 commentedon Dec 20, 2023
刚刚操作的日志
2234839 commentedon Dec 20, 2023
我知道了,因为之前尝试的图片插入笔记中过,所以再次上传图片计算的hash是一样的,思源的逻辑应该是资源的root_id仍然会指向之前的插入时的文档
那么应该是重复上传相同资源的处理存在问题,我认为该资源被上传两次或许应该存在两份,或者assets表中可以存在两条记录指向同一资源文件但root_id 不同(这个应该更好)
2234839 commentedon Dec 20, 2023
好像也不是,新笔记本就没毛病
2234839 commentedon Dec 20, 2023
根本没有插入数据库
88250 commentedon Dec 20, 2023
你找下日志里面是不是有条类似的报错:
88250 commentedon Dec 20, 2023
用关键字
read asset
搜索看看。如果有的话,说明可能是因为这个笔记本用了 笔记本级 资源文件夹,导致读取物理文件失败,所以后面没有索引到数据库里。[-]The doc title image uploaded directly should be associated with the doc[/-][+]The doc title image index failed when using notebook-level assets[/+]2234839 commentedon Dec 20, 2023
是的

88250 commentedon Dec 20, 2023
好的,这个问题已经确认了,稍后修复。
🐛 The doc title image index failed when using notebook-level assets #…