documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

docx get's corrupted after editing

Open apg1980 opened this issue 5 years ago • 6 comments

Hello,

Documentserver 0.1.3 Php7.3 ubuntu 18.04 nextcloud 18

I have created a new docx and wrote a new line with the text: test 01 I close the document with the x. Nextcloud client is downloading an empty docx. After reopen again the content of the line is now: T1e0s t

Activity shows an external user has edited the document and not my user itself.

After editing again document is loading forewer.

Logfile entry:

{"reqId":"fUpcFvs5oJ6Fg6UoPSO2","level":3,"time":"2020-01-24T18:25:47+01:00","remoteAddr":"","user":"--","app":"documentserver_community","method":"","url":"--","message":{"Exception":"InvalidArgumentException","Message":"malformed xml string. parsing error : Calling the \"Symfony\\Component\\EventDispatcher\\EventDispatcherInterface::dispatch()\" method with the event name as the first argument is deprecated since Symfony 4.3, pass it as the second argument and provide the event object as the first argument instead. (16384)","Code":0,"Trace":[{"function":"FeedIo\\Reader\\{closure}","class":"FeedIo\\Reader\\Document","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":58,"function":"trigger_error","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php","line":70,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":["\\OCP\\Files::preWrite",{"__class__":"Symfony\\Component\\EventDispatcher\\GenericEvent"}]},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":117,"function":"dispatch","class":"OC\\EventDispatcher\\SymfonyAdapter","type":"->","args":["\\OCP\\Files::preWrite",{"__class__":"Symfony\\Component\\EventDispatcher\\GenericEvent"}]},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":70,"function":"sendHooks","class":"OC\\Files\\Node\\Node","type":"->","args":[["preWrite"]]},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php","line":163,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->","args":[null]},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/LocalAppData.php","line":100,"function":"OCA\\DocumentServer\\Document\\{closure}","class":"OCA\\DocumentServer\\Document\\DocumentStore","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php","line":164,"function":"getReadWriteLocalPath","class":"OCA\\DocumentServer\\LocalAppData","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},{"__class__":"Closure"}]},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/Document/SaveHandler.php","line":56,"function":"saveChanges","class":"OCA\\DocumentServer\\Document\\DocumentStore","type":"->","args":[3862036655,[{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"},{"__class__":"OCA\\DocumentServer\\Document\\Change"}]]},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php","line":69,"function":"flushChanges","class":"OCA\\DocumentServer\\Document\\SaveHandler","type":"->","args":[3862036655]},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\\DocumentServer\\BackgroundJob\\Cleanup","type":"->","args":[null]},{"file":"/var/www/nextcloud/cron.php","line":125,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/var/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Reader/Document.php","Line":106,"CustomMessage":"Error while applying changes for document 3862036655"},"userAgent":"--","version":"18.0.0.10","id":"5e2b2906bdb0b"}

Best regards.

apg1980 avatar Jan 24 '20 17:01 apg1980

I can confirm the Problem, Documentserver 0.1.3 Php7.3 ubuntu 18.04 nextcloud 18 Ngnix

horstvogel avatar Jan 24 '20 18:01 horstvogel

0.1.4 includes some related changes, can you retest

icewind1991 avatar Jan 29 '20 16:01 icewind1991

i can confirm that no document corruption appears. the issue i can confirm is that changes are not immediately getting published to nextcloud so no sync is startet to nextcloud client without waiting time.

The following log entrys appear: {"reqId":"tN8z9Vd9cLUhSM9sV4i9","level":3,"time":"2020-01-29T17:21:11+01:00","remoteAddr":"80.187.83.48","user":"08598A5C-6FB6-450C-A152-628B33F56156","app":"PHP","method":"GET","url":"/index.php/settings/apps/update/documentserver_community","message":"stream_get_contents(): supplied resource is not a valid stream resource at /var/www/nextcloud/apps/documentserver_community/lib/Document/FontManager.php#67","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10","id":"5e31b37202afa"} {"reqId":"tN8z9Vd9cLUhSM9sV4i9","level":3,"time":"2020-01-29T17:21:11+01:00","remoteAddr":"80.187.83.48","user":"08598A5C-6FB6-450C-A152-628B33F56156","app":"PHP","method":"GET","url":"/index.php/settings/apps/update/documentserver_community","message":"fclose(): supplied resource is not a valid stream resource at /var/www/nextcloud/apps/documentserver_community/lib/Document/FontManager.php#66","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10","id":"5e31b37202b11"}

apg1980 avatar Jan 29 '20 16:01 apg1980

0.1.5 all changes within a document gehts lost.

apg1980 avatar Jan 30 '20 18:01 apg1980

Same problem here. Nextcloud 18.0.2 on a shared hosting - fresh install Community Document Server 0.1.5 ONLYOFFICE 4.1.4 PHP 7.3.11

Jolopu avatar Mar 17 '20 12:03 Jolopu

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.

github-actions[bot] avatar Mar 04 '24 00:03 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar May 06 '24 00:05 github-actions[bot]