Pranav Kant
bad071760d
Supercede a hack with a better solution + flush tiles on reconn.
...
This also introduced a regression where upon reconnection of the
document, tiles were not updated. This was because calling
setView leads to calling 'canceltiles' down the line which would
cancel the the 'tilecombine' request for fetching all tiles
leading to stale tiles in the UI
Change-Id: Ib0f583c92802195384ea10f328c0ba2eafc82ffd
2016-11-18 17:18:14 +05:30
Andras Timar
36950c2c50
loolwsd: Math documents are not supported yet (related: tdf#97006)
2016-11-18 11:49:38 +01:00
Pranav Kant
c511cf1d76
loolwsd: New test to check if request uris are valid
...
The current test tests if the embedded doc url recieved in websocket
URI endpoint is encoded or not.
Change-Id: I1e5d6639d6791be4e1e56701a9e444e33fc89aa2
2016-11-17 23:04:52 +05:30
Pranav Kant
1618f6be4d
loolwsd: Decode the encoded access_token before CheckFileInfo
...
Change-Id: Ia4511803ca5570ad5675e00c99108fd32360734d
2016-11-17 17:22:09 +05:30
Pranav Kant
8a1ac91fa6
loolwsd: Prevent double decoding
...
Change-Id: I5927e0113505ffcc167e16700db7c2f6408ed3b7
2016-11-17 17:22:09 +05:30
Miklos Vajna
6d1c82d7ce
Admin: clean up redundant '_modelMutex' initializer
...
Change-Id: I85a1b640b58e0956b2ac9fbee43e7c5e57c9e08c
2016-11-17 11:52:52 +01:00
Henry Castro
30531f88f1
loleaflet: update new and last valid slide thumbnails
2016-11-16 10:50:43 -04:00
Pranav Kant
4d28338a10
More WOPI documentation
...
Change-Id: I0c04d2105ff6227f9f7b6eaa73a7efe6a94faecd
2016-11-16 19:56:33 +05:30
Ashod Nakashian
d82e767172
loolwsd: use own killChild instead of Poco wrapper
...
Change-Id: Ic0e09076535d58bbf7ec86962878f534825dfc65
Reviewed-on: https://gerrit.libreoffice.org/30893
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:43:55 +00:00
Ashod Nakashian
cf2f4ed712
loolwsd: improve interrupted pipe-reading handling in forkit
...
Change-Id: Iabaadee064bb1178cc6b1bd3482608a758d65506
Reviewed-on: https://gerrit.libreoffice.org/30892
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:43:17 +00:00
Ashod Nakashian
4c9a2e821d
loolwsd: don't set TerminationFlag unnecessarily
...
Change-Id: I993e1c5bfdb5b4a5d9a421bc61fa90fdfd1ba00b
Reviewed-on: https://gerrit.libreoffice.org/30891
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:58 +00:00
Ashod Nakashian
0662e35a6d
loolwsd: log test exit and timeout
...
Change-Id: I7563abe200bb42b90fcd4478d10c9d4184c188e5
Reviewed-on: https://gerrit.libreoffice.org/30890
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:35 +00:00
Ashod Nakashian
33b7a89947
loolwsd: close forkit write pipe fd before spawning new forkit
...
Change-Id: Ib3438359f581ded460a4dcd1514c351d20f7e947
Reviewed-on: https://gerrit.libreoffice.org/30889
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:19 +00:00
Ashod Nakashian
b47550e566
loolwsd: log pipe reading errors
...
Change-Id: I58b78454c74874687fbc216c2dd704b3677ccea1
Reviewed-on: https://gerrit.libreoffice.org/30888
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:00 +00:00
Ashod Nakashian
0f9bd80ca2
loolwsd: set ShutdownFlag only with SIGINT
...
The logic is to use ShutdownFlag only in WSD to
initiate graceful shut down while saving documents.
When CTRL+C is hit WSD, forkit, and kits get SIGINT,
but only WSD should handle ShutdownFlag. Others are
signaled internally by WSD to terminate using SIGTERM.
The second CTRL+C on WSD will flag TerminationFlag
for more aggressive shutdown. This is logged on every
subsequent signal and not just the first.
Furthermore, any other signal to WSD should terminate
more aggressively, so no reason to set ShutdownFlag
in those cases.
Change-Id: I10fa38fe85925da1020983f897cc6cdbbd2623f8
Reviewed-on: https://gerrit.libreoffice.org/30887
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:41:37 +00:00
Ashod Nakashian
f7b6ece593
loolwsd: LOOLForKit logs updated
...
Change-Id: I4a248b5c9b6c5c68ddec1041c9bba0f0d6142946
Reviewed-on: https://gerrit.libreoffice.org/30886
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:41:23 +00:00
Ashod Nakashian
78be068a7f
loolwsd: test: retry connection failures
...
Change-Id: Iff2cf05bf755ba0df08304af9f2cc6c488e18428
Reviewed-on: https://gerrit.libreoffice.org/30885
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:40:24 +00:00
Ashod Nakashian
0cc57c643d
loolwsd: test: log at trace level
...
Change-Id: Icf498dd15875b355abfe022de67b947d51ad7275
Reviewed-on: https://gerrit.libreoffice.org/30884
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:35:21 +00:00
Andras Timar
a65f7d34d1
loleaflet: add missing ui-bg_highlight-soft_100_eeeeee_1x100.png to dist
2016-11-15 20:38:46 +01:00
Michael Meeks
04a4db4951
More work on rename script - compiles after rename + patch.
2016-11-15 20:05:07 +01:00
Pranav Kant
09b33d357d
loolwsd: Escape access token safely, don't be too defensive
...
Change-Id: I43cb71f418904c0b925722f4d2fe3ac1b0a351f6
2016-11-15 20:21:02 +05:30
Pranav Kant
26adebfcb0
tdf#103641: Fix save button visible for presentation
...
Additionally, change the variable name for presentation-toolbar
to avoid any future confusion.
Also, put the code hiding the save button in onRefresh event so that
save button doesn't show up in the UI as soon as we get the wopi
properties object from the server.
Change-Id: Ib168010c509f55a69aae9752e11321d319f59e99
2016-11-15 18:23:42 +05:30
Pranav Kant
d8a202bf1c
tdf#103641: Split App_LoadedStatus - Frame_Ready, Document_Loaded
...
Post App_LoadingStatus with 'Status' field as Frame_Ready when
we are ready to show the UI.
Post Document_Loaded when document is completely loaded after
which loleaflet is ready to respond to more document specific
queries through post message API.
Change-Id: I60a4e9b75e115c748fcee8d449bc8c2d4ffa34a9
2016-11-15 18:23:40 +05:30
Jan Holesovsky
72a5f35f30
LibreOfficeKit.hpp changed meaning of getPart(), update accordingly.
...
Change-Id: Ia346f4f838856040fa9aea26b3ac9c0b596b9218
2016-11-15 13:06:42 +01:00
Jan Holesovsky
2069650ba6
Get rid of LibreOfficeKit.hpp, it's mostly a copy of LibreOfficeKit.hxx.
...
Change-Id: I55f9c28a3ac1ef2a36c18c29cc16209bedd48770
2016-11-15 13:06:34 +01:00
Andras Timar
d02f4bf753
loleaflet: Translation of Special Characters dialog from LibreOffice core
2016-11-15 10:27:45 +01:00
Andras Timar
cb21e68691
loleaflet: Translations of Unicode subsets from LibreOffice core
2016-11-15 10:03:58 +01:00
Henry Castro
c40b79df9e
loleaflet: enable font character preview
2016-11-15 00:07:21 -04:00
Henry Castro
4ea95ff330
loolwsd: add parameter char to render font
2016-11-15 00:07:21 -04:00
Henry Castro
b7d3ea63ff
loolwsd: update bundled headers
2016-11-15 00:07:21 -04:00
Ashod Nakashian
8072576424
loolwsd: move signal and process code to SigUtil files
...
Change-Id: I91c001ef54858d942f8e3fe56d8a6b02cb2bf37e
Reviewed-on: https://gerrit.libreoffice.org/30846
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 21:20:21 +00:00
Ashod Nakashian
b5dd13c57f
loolwsd: wait for kit processes only when killing them
...
Change-Id: I89ec8c728b53ff1acdf9e8d12137ffc7c13f6ba5
Reviewed-on: https://gerrit.libreoffice.org/30845
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 21:19:00 +00:00
Aleksander Machniak
fc3a059e75
Fix setting DontTerminateEdit/DontSaveIfUnmodified arguments in Action_Save postMessage
...
Change-Id: I61a2064104b1748571036891ff7696c1a1e6a3d2
Reviewed-on: https://gerrit.libreoffice.org/30842
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-11-14 18:08:58 +00:00
Pranav Kant
efe6863f17
loleaflet: 'Click to resume editing' label' when inactive doc
...
Change-Id: I9013158fc6f064dc76398aec044c5b4aa83aa9b7
2016-11-14 23:28:22 +05:30
Pranav Kant
7b332782da
loleaflet: Mention sheet name in delete sheet confirm dialog
...
Change-Id: Ifac13c8fb2f4ec792f1e62541cb92b63edecad56
2016-11-14 20:38:33 +05:30
Pranav Kant
383e8a13a5
loleaflet: Focus after inserting or deleting a sheet
...
Change-Id: I2807cbeaa0fb5b7ec20002a3f5758ce47bb7d421
2016-11-14 20:38:33 +05:30
Ashod Nakashian
01a6274d7c
loolwsd: support forced termination in kits as well
...
Change-Id: I301cf2f36888b7095f8565bc0badcfc5a927518c
Reviewed-on: https://gerrit.libreoffice.org/30844
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 14:00:15 +00:00
Andras Timar
b35ac4cbbf
loleaflet: Control.Menubar.js indentation fixes
2016-11-14 14:23:22 +01:00
Michael Meeks
fb39c0e919
Prototype renaming script and patch for before branching.
2016-11-14 12:05:48 +00:00
Andras Timar
40009af7aa
loleaflet: add Insert - Special character... to menu
2016-11-14 11:41:03 +01:00
Andras Timar
0e5cf0e07f
loleaflet: disable Insert Special Character button in view-only mode
2016-11-14 11:38:12 +01:00
Ashod Nakashian
303d173ae1
loolwsd: gracefully shutdown on first CTRL+C then force termination on second
...
Change-Id: I1c84663d10de8ece715a296eec284b74cdda69df
Reviewed-on: https://gerrit.libreoffice.org/30834
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:37:06 +00:00
Ashod Nakashian
d36306e347
loolwsd: broadcast that the server is shutting down
...
Change-Id: Ib94eb991763094cd6fe0ab36636f48f9844586c5
Reviewed-on: https://gerrit.libreoffice.org/30833
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:35:37 +00:00
Ashod Nakashian
da5ef9b5a2
loleaflet: add shutdown command to the admin settings
...
When we add more server controls (restart, f.e.)
we will need to move this to a separate page.
Also, we need to prompt the admin for reason,
which we can broadcast to all users when the server
goes down.
Change-Id: Ide92e58b5b64a5107b6556aef6b1a88191d5d21b
Reviewed-on: https://gerrit.libreoffice.org/30832
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:35:13 +00:00
Ashod Nakashian
d02f677fff
loolwsd: support shutdown admin command
...
Change-Id: Ib87ad2c289d59734c7a7a12e821de89e61c05079
Reviewed-on: https://gerrit.libreoffice.org/30831
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:33:15 +00:00
Ashod Nakashian
853135decd
loolwsd: SocketProcessor can be named and name used in logs
...
Change-Id: I599b6f7308690b49a0e9ed3c23b88dbcb2ed8848
Reviewed-on: https://gerrit.libreoffice.org/30830
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:32:46 +00:00
Ashod Nakashian
03a0347c14
loolwsd: don't make noise on spurious errors while testing
...
Change-Id: I6ab24367fddc8ab49843289af9bfc2241dc6005f
Reviewed-on: https://gerrit.libreoffice.org/30829
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:31:59 +00:00
Ashod Nakashian
18fd7b7f75
loolwsd: SocketProcessor cleanup
...
Change-Id: I120574dce169e1e8149aeba9d982b8235fa034fb
Reviewed-on: https://gerrit.libreoffice.org/30828
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:31:45 +00:00
Ashod Nakashian
92ca5225a5
loolwsd: logs and consistent formatting
...
Change-Id: If32bb829b125678c6e8f83c39a3812098f3b38a3
Reviewed-on: https://gerrit.libreoffice.org/30827
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:30:47 +00:00
Ashod Nakashian
47d040f345
loolwsd: handle SIGINT in WSD only
...
CONTROL-C is now handled by WSD only to
have full control over server shutting down.
Also set signal handlers first thing to trap
any early failures.
Change-Id: Ifc5c93b9dd2aef288eed0ed36c600a639dbc6a44
Reviewed-on: https://gerrit.libreoffice.org/30826
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:30:07 +00:00