Alfresco 升级到 5.1 在浏览名称中有空格的共享项目时给出 404

Alfresco upgraded to 5.1 giving 404 when browsing share items with spaces in their names

从 5.0.d 升级到 5.1。现在,在共享中浏览时,每当我打开文件夹名称中包含 space 的文件夹(在文档库或存储库中)时,我都会收到 404 错误。

例如,Repository->Data Dictionary 使用URL: http://example.com/share/service/components/documentlibrary/data/doclist/all/node/alfresco/user/home/Data%20Dictionary?filter=path&size=50&pos=1&sortAsc=true&sortField=cm%3Aname&libraryRoot=alfresco%3A%2F%2Fcompany%2Fhome&view=browse&noCache=1474355274193

检索数据,在 5.0.d 上工作正常,但在 5.1 上出现 404。在 alfresco.log、catalina.log 等方面没有明显关联

有什么想法吗?

编辑:

http://example.com/share/service/components/documentlibrary/data/doclist/all/node/alfresco/user/home/Data%20Dictionary?filter=path&size=50&pos=1&sortAsc=true&sortField=cm%3Aname&libraryRoot=alfresco%3A%2F%2Fcompany%2Fhome&view=browse&noCache=1474494614509

不工作,而

http://example.com/share/service/components/documentlibrary/data/doclist/all/node/alfresco/user/home/Shared?filter=path&size=50&pos=1&sortAsc=true&sortField=cm%3Aname&libraryRoot=alfresco%3A%2F%2Fcompany%2Fhome&view=browse&noCache=1474494617102

确实如此。因此,特别重要的是 space 字符。整个行为相同(包括在文档库中)——名称中 space,link 中断,否则有效。

这是正确的 URL,我已通过在本地主机上访问我自己的 5.1 (201604-GA) 服务器来确认:

http://localhost:8080/share/service/components/documentlibrary/data/doclist/all/node/alfresco/user/home/Data%20Dictionary?filter=path&size=50&pos=1&sortAsc=true&sortField=cm%3Aname&libraryRoot=alfresco%3A%2F%2Fcompany%2Fhome&view=browse&noCache=1474409019751

因为您看到的是 404(未找到)而不是 401(未授权)或 500(服务器端问题),我怀疑您没有正确指定主机和/或端口。

或者,如果 Share 正常运行但无法与 Alfresco 通信,请检查 $ALFRESCO_HOME/tomcat/shared/classes/alfresco-global.properties 以确保 alfresco.host、alfresco.port、share.host,和 share.port 设置正确。

这是 tomcat 7.0.70 上的已知错误。所以我会首先检查 tomcat 版本。