Skip to content

Invalid URI [] to http::Session::create #42

@cmonjeaud

Description

@cmonjeaud

Hi,

I'm currently trying to connect my xwiki instance to my collabora instance using a licence test provided by your community.

I have an error during a document opening. It seems collabora try to get wopi info from a relative path (/bin/login/XWiki/XWikiLogin), involving an issue.

I'm using Xwiki 14.10.13 with collabora 23.05.2.2 behind reverse proxy.

Below my collabora logs (I've replaced my xwiki base URL by <xwiki_url> for privacy:

wsd-00001-03334 2023-09-05 09:45:44.652949 +0000 [ docbroker_120 ] INF  WopiStorage ctor with localStorePath: [/opt/cool/child-roots/1-7c54e553/Gg6svY1x8zJrOPfz], jailPath: [/tmp/user/docs/Gg6svY1x8zJrOPfz], uri: [https://<xwiki_url>/xwiki/rest/collabora/files/xwiki:Main.WebHome@23020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx?userCanWrite=true%3Faccess_token%3Dwopi_xwiki%3AXWiki.build_xwiki_xwiki%3AMain.WebHome%4023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx_1693907087381_1551674510&access_token_ttl=0&permission=edit]| wsd/Storage.hpp:561
wsd-00001-03334 2023-09-05 09:45:44.652979 +0000 [ docbroker_120 ] DBG  CheckFileInfo for docKey [https%3A%2F%2F<xwiki_url>%3A443%2Fxwiki%2Frest%2Fcollabora%2Ffiles%2Fxwiki%3AMain.WebHome%4023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx]| wsd/DocumentBroker.cpp:802
wsd-00001-03334 2023-09-05 09:45:44.652993 +0000 [ docbroker_120 ] DBG  Getting info for wopi uri [https://<xwiki_url>/xwiki/rest/collabora/files/xwiki:Main.WebHome@23020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx?userCanWrite=true%3Faccess_token%3Dwopi_xwiki%3AXWiki.build_xwiki_xwiki%3AMain.WebHome%4023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx_1693907087381_1551674510&access_token_ttl=0&permission=edit].| wsd/Storage.cpp:656
wsd-00001-03334 2023-09-05 09:45:44.653014 +0000 [ docbroker_120 ] ERR  No HTTP Authorization type detected. Assuming no authorization needed. Specify access_token to set the Authorization Bearer header.| common/Authorization.cpp:82
wsd-00001-03334 2023-09-05 09:45:44.653038 +0000 [ docbroker_120 ] DBG  New SocketPoll [HttpSynReqPoll] owned by 0x7f87767fc6c0| net/Socket.cpp:193
wsd-00001-03334 2023-09-05 09:45:44.653065 +0000 [ docbroker_120 ] DBG  Connecting to <xwiki_url>:443 (SSL)| net/NetUtil.cpp:92

[...]

wsd-00001-03334 2023-09-05 09:45:44.669550 +0000 [ docbroker_120 ] DBG  Getting info for wopi uri [/bin/login/XWiki/XWikiLogin;jsessionid=158412B8B45E5374B2A19DA943F376ED?srid=WOAS1ZFN&xredirect=%2Fbin%2Fview%2Fxwiki%2Frest%2Fcollabora%2Ffiles%2Fxwiki%253AMain.WebHome%254023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx%2F%3FuserCanWrite%3Dtrue%253Faccess_token%253Dwopi_xwiki%253AXWiki.build_xwiki_xwiki%253AMain.WebHome%254023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx_1693907087381_1551674510%26access_token_ttl%3D0%26permission%3Dedit%26srid%3DWOAS1ZFN].| wsd/Storage.cpp:656
wsd-00001-03334 2023-09-05 09:45:44.669586 +0000 [ docbroker_120 ] ERR  Invalid URI [] to http::Session::create| net/HttpRequest.cpp:660
wsd-00001-03334 2023-09-05 09:45:44.669667 +0000 [ docbroker_120 ] ERR  loading document exception: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2611
wsd-00001-03334 2023-09-05 09:45:44.669689 +0000 [ docbroker_120 ] ERR  Failed to add session to [https%3A%2F%2F<xwiki_url>%3A443%2Fxwiki%2Frest%2Fcollabora%2Ffiles%2Fxwiki%3AMain.WebHome%4023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx] with URI [https://<xwiki_url>/xwiki/rest/collabora/files
/xwiki:Main.WebHome@23020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx?userCanWrite=true%3Faccess_token%3Dwopi_xwiki%3AXWiki.build_xwiki_xwiki%3AMain.WebHome%4023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx_1693907087381_1551674510&access_token_ttl=0&permission=edit]: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2573
wsd-00001-03334 2023-09-05 09:45:44.669705 +0000 [ docbroker_120 ] INF  Doc [https%3A%2F%2F<xwiki_url>%3A443%2Fxwiki%2Frest%2Fcollabora%2Ffiles%2Fxwiki%3AMain.WebHome%4023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx] has no more sessions. Marking to destroy.| wsd/DocumentBroker.cpp:2576
wsd-00001-03334 2023-09-05 09:45:44.669722 +0000 [ docbroker_120 ] ERR  Error while starting session on https%3A%2F%2F<xwiki_url>%3A443%2Fxwiki%2Frest%2Fcollabora%2Ffiles%2Fxwiki%3AMain.WebHome%4023020_AOO_Licences_Outils_Collaboratifs_IT_CCTP_v1.docx for socket #24. Terminating connection. Error: Invalid URI [] to http::Session::create.| wsd/COOLWSD.cpp:5067

Do you have any idea about this kind of issue?

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions