mirror of
https://github.com/ethendev/wopihost.git
synced 2026-04-25 13:55:49 +03:00
[GH-ISSUE #5] office web server,can't edit word #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ldybyz on GitHub (Mar 13, 2017).
Original GitHub issue: https://github.com/marx-yu/WopiHost/issues/5
Hi marx-yu,
I use the code branch of release_0.8_for_owa2013.All run well,but can't edit word.I try hard,but can't find the solution.The office web server has log as follows:
`Exception System.IO.FileFormatException: The file contains corrupted data
at MS.Internal.IO.Zip.ZipIOEndOfCentralDirectoryBlock.FindPosition(Stream archiveStream)
at MS.Internal.IO.Zip.ZipIOBlockManager.LoadEndOfCentralDirectoryBlock()
at MS.Internal.IO.Zip.ZipArchive.OpenOnStream(Stream stream, FileMode mode, FileAccess access, Boolean streaming)
at System.IO.Packaging.ZipPackage..ctor(Stream s, FileMode mode, FileAccess access, Boolean streaming)
at System.IO.Packaging.Package.Open(Stream stream, FileMode packageMode, FileAccess packageAccess, Boolean streaming)
at DocumentFormat.OpenXml.Packaging.WordprocessingDocument.Open(Stream stream, Boolean readWriteMode)
at Microsoft.Office.WordCompanion.OpenXml.DocumentEditingSpace..ctor(Stream documentStream) at Microsoft.Office.Web.Box4.WordCompanion... fd38e587-4843-4594-a6c9-db3cbb0bc73f
....WordCompanionProcessor.HasNewDocumentUpdates(Stream documentStream)
at Microsoft.Office.Web.Box4.WordCompanion.WordCompanionProcessor.FillInPageRevisionNoRetry(TransformGlobals& globals, String expectedLock, Boolean& normalizationCoherencyFail) StackTrace: at uls.native.dll: (sig=35ebf2aa-983a-4c4a-a61b-a0d5e84ac5d0|2|uls.native.pdb, offset=26E6A) at uls.native.dll: (offset=1F8A9) fd38e587-4843-4594-a6c9-db3cbb0bc73f`
and the http post header as follows:
{X-WOPI-Override: COBALT
X-WOPI-MachineName: WIN-ORTUI89ED1J
X-WOPI-ClientVersion: 15.0.4543.1000
X-WOPI-CorrelationID: 2a2661a7-f121-41a6-b085-3effab9bba69
X-WOPI-TimeStamp: 636249649195379636
X-WOPI-Proof: HqucRaj4UOkJsHsp2gbR6JMjfbbcEOQe3zwm+yGENT1ipfEdfqPX/RwvlMVJUGoNiooK9V04XQKBu+sF9gPztzmbhPGqfOACDSYpjyXWanwUZvifjFzwszqwUyz67KrUIWu+KCjpw74sWArTCumFHDSnOcyZFrpOI5Wa+FL+5SLUHF8Q8UHhKOj8OhNwTaChRUXQ4lvBrwWASDTv4p46Gitd4XM/ZjBVP11Ep7z1x8OBg2LWPcOWCFhaOv9VuEJbWjn9i+0/Kue/GFyota4XIjcJCeuEjcStHrFPTE7MX/iKvdt+DKUurcwOf55GqTtZWL4wH4Z+QTGZ+GdTvTurtw==
Content-Length: 798
Authorization: Bearer 06l hXK6zWTUi
Expect: 100-continue
Host: 10.204.13.78:8082
User-Agent: MSWAC
}
Hope you can help me to find problems,thanks!
@downleave commented on GitHub (Mar 12, 2019):
解决了,少了"UserCanWrite":true这个参数,其实我是PHP写的,谢谢参考了,哈哈
@wuqinqiang commented on GitHub (Mar 30, 2019):
老哥这个参数是加在哪里的,能否给个参照
@downleave commented on GitHub (Apr 1, 2019):
是写在fileInfo那个方法里面的
@wuqinqiang commented on GitHub (Apr 1, 2019):
因为我也是在用php实现,麻烦一下老哥再问一个问题,不知道你是否遇到过,我在查看pptx和docx文件没有问题,但是当我打开execl文件显示很抱歉,无法打开您的工作薄,一开始以为是文件的问题,但是换了几个文件也这样,这方面google资料太少了,请问你知道原因吗?谢谢
@downleave commented on GitHub (Apr 1, 2019):
这个我就不清楚了,我只用过docx
@ethendev commented on GitHub (Apr 1, 2019):
@wuqinqiang 如果只有execl有问题(非格式问题),其他都正常,有可能是 office online 的Excel没有安装正确。我以前碰到过类似的情况,你可以使用新的服务器或者虚拟机重新安装试一下。
@downleave commented on GitHub (Apr 1, 2019):
@ethendev @wuqinqiang 我也借此问下大佬,有没有搞过office online server的加载项?我现在是加载项按钮出来了,但不知如何让它加载自己开发的加载项。而我们开发的加载项不打算上线,只需要在本地加载。目前查到的资料是无法使用类似office365的集中部署。客户端的“共享文件夹”加载似乎也不可行。
@wuqinqiang commented on GitHub (Apr 1, 2019):
暂时还没搞那个,接触了两天这个,准备做编辑的时候发现不能读取execl的情况,我单独把它从我的系统拿出来测试又是可以的,那应该就不是安装的问题了,你们有安装sharepoint来调用office web apps服务吗。我是没安装的。
@cheakin commented on GitHub (May 11, 2021):
在office online server 中运行Set-OfficeWebAppsFarm - OfficeAddinEnabled:$true
[GH-ISSUE #5] 可以预览,但无法编辑to [GH-ISSUE #5] office web server,can't edit word