Confluence以一种古怪的方式存储附件,并且几乎不可能按照他们自己的指令来查找附件的存储位置。这是他们的文档:https://confluence.atlassian.com/doc/hierarchical-file-system-attachment-storage-704578486.html。
我使用的是CentOS和MySQL5.7
发布于 2021-05-24 20:46:10
Atlassian的支持为我提供了以下内容,我想与社区分享,因为查找文件在您机器上的存储位置真的不应该那么复杂。下面是Mysql查询:
select concat('<confluence_home>/attachments/ver003/', spaceid % 250, '/', spaceid / 1000 % 250, '/', spaceid, '/', pageid % 250, '/', pageid / 1000 % 250, '/', pageid, '/', en prevver is null then contentid else prevver end, '/', version ) as DiskLoc, spaceid, pageid, contentid, version from CONTENT where title like '%NAME OF FILE%' and contenttype
= 'ATTACHMENT' and pageid in ( select c.contentid FROM CONTENT c JOIN SPACES s ON s.spaceid = c.spaceid where c.contenttype = 'PAGE' and s.spaceid is not null AND c.prevver IS NULL);
只需将文件名替换为文件名即可
https://stackoverflow.com/questions/67678768
复制相似问题