Bug 135777 - libreoffice online 7.0.0.2: Many Invalid URI requests after loolwsd launch
Summary: libreoffice online 7.0.0.2: Many Invalid URI requests after loolwsd launch
Status: UNCONFIRMED
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-15 03:21 UTC by Hillwood Yang
Modified: 2020-10-19 13:13 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
rpm spec (7.11 KB, text/x-rpm-spec)
2020-08-15 03:21 UTC, Hillwood Yang
Details
loolwsd.xml (16.98 KB, application/xml)
2020-08-15 03:23 UTC, Hillwood Yang
Details
fix-version-hash.patch (572 bytes, patch)
2020-08-30 07:19 UTC, Hillwood Yang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hillwood Yang 2020-08-15 03:21:55 UTC
Created attachment 164324 [details]
rpm spec

I try to build libreoffice online 7.0.0.2 on openSUSE Tumbleweed. The Web Services Daemon works fine. But css and js resources can not be loaded, they are all in Invalid URI. The terminal reports me many Invalid URI requests like this:
kit-08144-07256 2020-08-15 02:56:42.585376 [ kit_spare_002 ] WRN  Linking/copying files from /usr/lib64/libreoffice to /var/lib/libreoffice-online/child-roots/ldNyM1hbV3jlAULp/lo/ is taking too much time. Enabling verbose link/copy logging.| kit/Kit.cpp:264
wsd-07254-08141 2020-08-15 02:56:56.023990 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/7.0.0/bundle.css].| wsd/FileServer.cpp:487
wsd-07254-08141 2020-08-15 02:56:56.544312 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/7.0.0/branding.js].| wsd/FileServer.cpp:487
wsd-07254-08141 2020-08-15 02:56:56.728547 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/7.0.0/branding.css].| wsd/FileServer.cpp:487
wsd-07254-08141 2020-08-15 02:56:56.791324 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/7.0.0/branding.js].| wsd/FileServer.cpp:487
wsd-07254-08141 2020-08-15 02:56:56.798298 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/7.0.0/device-desktop.css].| wsd/FileServer.cpp:487
wsd-07254-08141 2020-08-15 02:56:56.802575 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/7.0.0/branding-desktop.css].| wsd/FileServer.cpp:487
wsd-07254-08141 2020-08-15 02:56:56.870321 [ websrv_poll ] WRN  FileServerRequestHandler: File not found: Invalid URI request: [/loleaflet/7.0.0/bundle.js].| wsd/FileServer.cpp:487
Comment 1 Hillwood Yang 2020-08-15 03:23:02 UTC
Created attachment 164325 [details]
loolwsd.xml
Comment 2 Hillwood Yang 2020-08-30 07:19:38 UTC
Created attachment 164865 [details]
fix-version-hash.patch

This patch can workaround this issue.
Comment 3 Hillwood Yang 2020-10-19 13:13:22 UTC
I know what the reason is. The source package does not provide git hash which downloads from https://github.com/LibreOffice/online/tags. "git_hash=`cd ${srcdir} && ( cat dist_git_hash 2> /dev/null || git log -1 --format=%h 2> /dev/null )`" is invalid in the package. I think you can provide a better way to get the git hash.