Bug 107051 - WOPI Error if german umlaute in domain
Summary: WOPI Error if german umlaute in domain
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-09 17:02 UTC by mail
Modified: 2018-03-13 10:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mail 2017-04-09 17:02:17 UTC
Hello,
I have a problem with allowing an domain that has an umlaut e.g"ü".
Normally I can translate the Domain as specified INDA2008 and use e.g xn--example-t2a.de instead of exampleü.de.
But here is the problem Chrome/Chromuim sends the international version (xn--example-t2a.de), but Firefox the localized(exampleü.de).
Chrome works fine but there is no way allow the localized version. I tried to use an ü or ü (which is the xml encoding for ü).

Interesting messages form log (I've replaced some information with **):
wsd-04720-4720 16:17:21.406203 [ loolwsd ] INF  Adding trusted WOPI host: [**\\.xn--***\\.de].| wsd/Storage.cpp:82
wsd-04720-4720 16:17:21.406245 [ loolwsd ] INF  Adding trusted WOPI host: [**\\.**ü**\\.de].| wsd/Storage.cpp:82
loolforkit version details: 5.3.2 - 122a449
 wsd-04720-4722 16:17:33.883299 [ client_ws_0001 ] WRN  Poco::Net::DNS::resolveOne("**.**ü**.de") failed: Host not found: **.**ü**.de
wsd-04720-4722 16:17:33.883412 [ client_ws_0001 ] WRN  Poco::Net::IPAddress("**.**ü**.de") failed: Invalid address: **.**ü**.de
wsd-04720-4722 16:17:33.884279 [ client_ws_0001 ] INF  WOPI host is not on the same host as the WOPI client: "". Connection is not allowed.| wsd/Storage.cpp:133
wsd-04720-4722 16:17:33.884431 [ client_ws_0001 ] ERR  Error in client request handler: No acceptable WOPI hosts found matching the target host [**.**ü**.de] in config.| wsd/LOOLWSD.cpp:1009
wsd-04720-4722 16:17:33.884467 [ client_ws_0001 ] TRC  Sending to Client [error: cmd=internal kind=unauthorized].| wsd/LOOLWSD.cpp:1011
wsd-04720-4722 16:17:33.884581 [ client_ws_0001 ] DBG  Sent frame: error: cmd=internal kind=unauthorized| ./wsd/LOOLWebSocket.hpp:146
wsd-04720-4722 16:17:33.884619 [ client_ws_0001 ] TRC  Abnormal close handshake.| wsd/LOOLWSD.cpp:1029
wsd-04720-4722 16:17:33.884687 [ client_ws_0001 ] INF  Finished GET request handler for session [0001].| wsd/LOOLWSD.cpp:1035
wsd-04720-4722 16:17:33.884716 [ client_ws_0001 ] INF  ~ClientSession dtor [ToClient-0001].
wsd-04720-4722 16:17:33.884766 [ client_ws_0001 ] DBG  Already sent response!?| wsd/LOOLWSD.cpp:1226
wsd-04720-4722 16:17:33.884795 [ client_ws_0001 ] DBG  Thread finished.| wsd/LOOLWSD.cpp:1237

I'm running the loolwsd verison from the tag libreoffice-5.3.2.2 with poco 1.7.8

Best regards,
Thore Sommer
Comment 1 Aron Budea 2017-06-29 03:07:41 UTC
I'm afraid I won't be able to reproduce this, but I can guess punycode encoding is missing.
Comment 2 Andras Timar 2018-02-17 10:28:37 UTC
Although it could be worked around, basically it is a bug (or missing feature) in Poco library, that LibreOffice Online uses. I files and upstream bug, and it seems that Poco developers are willing to fix this: https://github.com/pocoproject/poco/issues/2164
Comment 3 Andras Timar 2018-02-26 07:40:40 UTC
The upstream Poco bug has been fixed.
Comment 4 Andras Timar 2018-03-13 10:29:13 UTC
FYI, Poco 1.9.0 release contains the fix. LibreOffice Online has to be linked with Poco 1.9.0.