marx-yu / WopiHost

Office Online Server Wopi Host implement, No need Cobalt. Support DOCX, XLSX, PPTX online editing.
BSD 3-Clause "New" or "Revised" License
246 stars 95 forks source link

office web server,can't edit word #5

Closed ldybyz closed 7 years ago

ldybyz commented 7 years ago

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!

ldybyz commented 7 years ago

I just found that the document is doc but not docx. And really it supports docx in my test.