I went a little further in the tests, and I donβt see how it can work in the end β¦
Does anyone observe normal operation when creating a document and opening it automatically?
my observations if it can help:
restart of loolwsd, only one child-roots:
/opt/lool/child-roots/
βββ [May 20 15:52] EStM4jm0SY3FJXsk
βββ [May 20 15:52] dev
βββ [May 20 15:52] etc
βββ [May 20 15:52] lib
βββ [May 20 15:52] lib64
βββ [May 20 15:52] lo
βββ [May 20 15:52] opt
βββ [May 20 15:52] tmp
βββ [May 20 15:52] user
βββ [May 20 15:52] usr
βββ [May 20 15:52] var
opening an existing file (existing.odt) -> OK:
so creation of a second βchild-rootsβ (9O5r97z9dqGyLaDk) but the file will go into the first βchild-rootsβ (EStM4jm0SY3FJXsk)
strange already, why create a second βchild-rootsβ to use the first?
but hey it works β¦
/opt/lool/child-roots/
βββ [May 20 15:58] 9O5r97z9dqGyLaDk
β βββ [May 20 15:58] dev
β βββ [May 20 15:58] etc
β βββ [May 20 15:58] lib
β βββ [May 20 15:58] lib64
β βββ [May 20 15:58] lo
β βββ [May 20 15:58] opt
β βββ [May 20 15:58] tmp
β βββ [May 20 15:58] user
β βββ [May 20 15:58] usr
β βββ [May 20 15:58] var
βββ [May 20 15:52] EStM4jm0SY3FJXsk
βββ [May 20 15:52] dev
βββ [May 20 15:52] etc
βββ [May 20 15:52] lib
βββ [May 20 15:52] lib64
βββ [May 20 15:52] lo
βββ [May 20 15:52] opt
βββ [May 20 15:52] tmp
βββ [May 20 15:58] user
βββ docs
βββ EStM4jm0SY3FJXsk
βββ existing.odt
βββ [May 20 15:52] usr
βββ [May 20 15:52] var
Now creation of a new file and automatic opening in error -> NOK.
when closing the document (existing.odt) the child-roots (EStM4jm0SY3FJXsk) is deleted, remains on (9O5r97z9dqGyLaDk)
/opt/lool/child-roots/
βββ [May 20 15:58] 9O5r97z9dqGyLaDk
βββ [May 20 15:58] dev
βββ [May 20 15:58] etc
βββ [May 20 15:58] lib
βββ [May 20 15:58] lib64
βββ [May 20 15:58] lo
βββ [May 20 15:58] opt
βββ [May 20 15:58] tmp
βββ [May 20 15:58] user
βββ [May 20 15:58] usr
βββ [May 20 15:58] var
Creation of the new document (new.odt) and automatic opening in failure.
So already delete the previous child-roots and create a new one (1emvd6MMfKcFXs4L):
/opt/lool/child-roots/
βββ [May 20 16:17] 1emvd6MMfKcFXs4L
βββ [May 20 16:17] dev
βββ [May 20 16:17] etc
βββ [May 20 16:17] lib
βββ [May 20 16:17] lib64
βββ [May 20 16:17] lo
βββ [May 20 16:17] opt
βββ [May 20 16:17] tmp
βββ [May 20 16:17] user
βββ [May 20 16:17] autotext
βββ [May 20 16:17] basic
βββ [May 20 16:17] config
βββ [May 20 16:17] database
βββ [May 20 16:17] extensions
βββ [May 20 16:17] gallery
but it canβt work, because it will look for it in the old child-root deleted when the new document (new.odt) was created:
so here -> β/opt/lool/child-roots/EStM4jm0SY3FJXskβ/user/docs/9O5r97z9dqGyLaDk/new.odt
May 20 16:17:28 server loolwsd[6978]: kit-07063-06980 2020-05-20 14:17:28.940839 [ kit_002 ] ERR Failed to load: file:///user/docs/9O5r97z9dqGyLaDk/new.odt, error: Unsupported URL <https://nextcloud.example.com/index.php/apps/richdocuments/wopi/template/1531?access_token=J4wdnRSynDf24RDMKXiqUfsRCkqu6cPh>: "type detection failed"| kit/Kit.cpp:1725
so we validate the error in the browser βFailed to load the document. Please ensure the file type is supported and not corrupted, and try again.β, we close lool, and we open the file new.odt
there a new child-root is created (dmGJytwk9apufiap) but the document is still this time in the previously created child-root (1emvd6MMfKcFXs4L) as it should have been when opened automatically.
/opt/lool/child-roots/
βββ [May 20 16:17] 1emvd6MMfKcFXs4L
β βββ [May 20 16:17] dev
β βββ [May 20 16:17] etc
β βββ [May 20 16:17] lib
β βββ [May 20 16:17] lib64
β βββ [May 20 16:17] lo
β βββ [May 20 16:17] opt
β βββ [May 20 16:17] tmp
β βββ [May 20 16:31] user
βββ [May 20 16:31] docs
β βββ [May 20 16:31] 1emvd6MMfKcFXs4L
β βββ [May 20 16:31] new.odt
β βββ [May 20 16:17] usr
β βββ [May 20 16:17] var
βββ [May 20 16:31] dmGJytwk9apufiap
βββ [May 20 16:31] dev
βββ [May 20 16:31] etc
βββ [May 20 16:31] lib
βββ [May 20 16:31] lib64
βββ [May 20 16:31] lo
βββ [May 20 16:31] opt
βββ [May 20 16:31] tmp
βββ [May 20 16:31] user
βββ [May 20 16:31] usr
βββ [May 20 16:31] var
VoilΓ , I think it deserves to declare an issue but at collabora or nextcloud?
Regards,
Greg