# After editing the document, on a page Reload it goes to Read-Only mode

**URL:** <https://forum.collaboraonline.com/t/after-editing-the-document-on-a-page-reload-it-goes-to-read-only-mode/1744>\
**Category:** User Support\
**Tags:** english-en\
**Created:** [April 7, 2023, 7:45am UTC](https://forum.collaboraonline.com/t/after-editing-the-document-on-a-page-reload-it-goes-to-read-only-mode/1744 "2023-04-07T07:45:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanBrown47](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danbrown47/32/711_2.png) [@DanBrown47](https://forum.collaboraonline.com/u/DanBrown47)\
**Post date:** [April 7, 2023, 7:45am UTC](https://forum.collaboraonline.com/t/after-editing-the-document-on-a-page-reload-it-goes-to-read-only-mode/1744/1 "2023-04-07T07:45:51Z")

</div>

I am using a custom integration with Paperless. I wrote the WOPI API endpoints for Collabora.  
Once the document is loaded in collabora, I can keep on editing and saving the document; The contents are sent to Paperless with a POST request and updated in the DB. But once **I reload the document after editing it goes into Read-Only mode**

I have tested the API endpoints it calls `/wopi/files/<id>/` . For the response, I always pass the Field `UserCanWrite` as `true` .

```auto
wsd-00001-00033 2023-04-07 07:39:49.342277 +0000 [websrv_poll] WRN DocBroker with docKey [https://paperless.tacten.link:443/wopi/files/49/] is unloading. Rejecting client request to load.| wsd/COOLWSD.cpp:3193
wsd-00001-00033 2023-04-07 07:39:49.342471 +0000 [websrv_poll] ERR Error while handling Client WS Request: Failed to create DocBroker with docKey [https://paperless.tacten.link:443/wopi/files/49/].| wsd/COOLWSD.cpp:4805
wsd-00001-00033 2023-04-07 07:39:49.342572 +0000 [websrv_poll] WRN #22 is shutting down but 64 bytes couldn't be flushed and still remain in the output buffer.| net/WebSocketHandler.hpp:839
wsd-00001-00033 2023-04-07 07:39:49.342778 +0000 [websrv_poll] ERR #22: Attempted to remove: 763 which is > size: 0 clamped to 0| net/Socket.hpp:1239
wsd-00001-00033 2023-04-07 07:39:49.342961 +0000 [websrv_poll] ERR #22: Error while handling poll at 0 in websrv_poll: #22 (write): unknown. BIO error: 337690831, rc: -1: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown:

```

This is the log of the Collabora on reloading a saved document. Any document that is not edited it is also passing the Same API

Using : Collabora CODE docker;latest  
: Browser Chrome 105.0.5195.102

Could you help me here ?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![DanBrown47](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danbrown47/32/711_2.png) [@DanBrown47](https://forum.collaboraonline.com/u/DanBrown47)\
**Post date:** [April 8, 2023, 9:57am UTC](https://forum.collaboraonline.com/t/after-editing-the-document-on-a-page-reload-it-goes-to-read-only-mode/1744/2 "2023-04-08T09:57:15Z")

</div>

I have fixed it. It was because the Filename was getting changed in paperless

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [August 6, 2024, 2:18pm UTC](https://forum.collaboraonline.com/t/after-editing-the-document-on-a-page-reload-it-goes-to-read-only-mode/1744/3 "2024-08-06T14:18:23Z")

</div>


