Ashod Nakashian
d5aa200471
loolstress: trace events
...
Change-Id: I1a38ab37dc5d276cdf5336fb04b0ad372804a00d
Reviewed-on: https://gerrit.libreoffice.org/27965
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:51:36 +00:00
Ashod Nakashian
ca9135e7a5
loolstress: add pid to trace file and parse it
...
Change-Id: I74569d5692291b4f3310b996d1cf49d5c951d0fc
Reviewed-on: https://gerrit.libreoffice.org/27964
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:51:11 +00:00
Ashod Nakashian
a750edd70d
loolstress: replay trace file
...
Change-Id: I076ec4ff398cf22ca6916ad11afc9ecb75421ac1
Reviewed-on: https://gerrit.libreoffice.org/27963
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:50:38 +00:00
Ashod Nakashian
831a917977
loolstress: Parse trace file header and document URI
...
Change-Id: I659f9ec3d0cb9f1333d930d0b21c5b3afd115d32
Reviewed-on: https://gerrit.libreoffice.org/27962
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:50:18 +00:00
Ashod Nakashian
4f57e43fdc
loolstress: load trace file records
...
Change-Id: Id0f76c1848863f5910d4492b2d37c6b18d1b3871
Reviewed-on: https://gerrit.libreoffice.org/27961
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:49:59 +00:00
Ashod Nakashian
4d7c2e4002
loolstress: parse trace file
...
Change-Id: I04964744a74d3a025e310d7ec52f5d1f5b6d100d
Reviewed-on: https://gerrit.libreoffice.org/27960
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:49:39 +00:00
Ashod Nakashian
b394ad89d8
loolstress: TraceFileReader class added
...
Change-Id: I81d508bb794ca56f647d0eb5b9dd27585100fe07
Reviewed-on: https://gerrit.libreoffice.org/27959
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:49:18 +00:00
Ashod Nakashian
d1e66718b5
loolstress: TraceFile -> TraceFileWriter
...
Change-Id: Icf22189170cfb57f014346c91ba99a9cae5fe18a
Reviewed-on: https://gerrit.libreoffice.org/27958
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:48:54 +00:00
Ashod Nakashian
a7c1a17f98
loolwsd: new LOOLStress utility to stress benchmark LOOL
...
Change-Id: Ic43f15f9bda4e08feb6df97caeb7cc40a7d24e23
Reviewed-on: https://gerrit.libreoffice.org/27957
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:48:35 +00:00
Ashod Nakashian
e3427aff34
loolwsd: when TDOC is not defined assume blank
...
Change-Id: Iaf8ee6a8dff8dc4d602e7622a288a43b3459fb92
Reviewed-on: https://gerrit.libreoffice.org/27956
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:48:12 +00:00
Ashod Nakashian
177802154d
loolwsd: trace notifications and response messages
...
Change-Id: I45f69386762d69e2b3960eeb96e591d7c5843b0b
Reviewed-on: https://gerrit.libreoffice.org/27955
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:47:54 +00:00
Ashod Nakashian
026a22abc3
loolwsd: dump incoming commands
...
Change-Id: I3d77d0c645c0bdd7e9edfbc8d90d5df6cc1b927a
Reviewed-on: https://gerrit.libreoffice.org/27954
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:47:32 +00:00
Ashod Nakashian
8b9b328955
loolwsd: add support for dumping command trace
...
Change-Id: I4121ce74653d243149be09de46581cbe0aae0438
Reviewed-on: https://gerrit.libreoffice.org/27953
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:47:10 +00:00
Ashod Nakashian
df49c23d23
loolwsd: use getConfigValue
...
Change-Id: Iccd4ea16424cfb6b8977fc70fc4a39e8b97f0b40
Reviewed-on: https://gerrit.libreoffice.org/27952
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:46:34 +00:00
Ashod Nakashian
5b639c3a2d
loolwsd: use log settings from the config XML
...
Change-Id: I0384d97b5411d3ff537b344e67f166daa65630c1
Reviewed-on: https://gerrit.libreoffice.org/27951
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:46:06 +00:00
Ashod Nakashian
f81aa9d2af
loolwsd: setup signal handling first thing in main
...
Change-Id: I006dcb5816719bc220409050bf59dd530c46acfd
Reviewed-on: https://gerrit.libreoffice.org/27950
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-08 03:44:58 +00:00
Jan Holesovsky
2100dc8489
Update the .deb changelog, and allow passing params.
2016-08-05 18:39:32 +02:00
Jan Holesovsky
7e09bff7a5
Some more specfile tweaks.
2016-08-05 13:34:35 +02:00
Jan Holesovsky
5e91d6a15d
Allow specifying a name suffix.
2016-08-05 01:32:14 +02:00
Miklos Vajna
6c48dfdcf8
Png: avoid performing multiplication at int precision
...
When the result will be stored at size_t precision anyway.
Change-Id: Ic52904d853eb27972d545fea6e742bc9e0d48c3d
2016-08-04 09:48:38 +02:00
Pranav Kant
9f1070ded7
loolwsd: forward notification for LOK_CALLBACK_VIEW_CURSOR_VISIBLE too
2016-08-03 19:50:25 +05:30
Pranav Kant
1e26b2ea46
loolwsd: Add missing view callbacks to LOKitHelper
2016-08-03 19:07:34 +05:30
Miklos Vajna
e562ea644e
Log: mark move constructor noexcept
...
It's a good practice in general, since otherwise such classes can't be
put into e.g. STL containers.
Change-Id: Iedf8bab45170c3b7721e88493811d8839487ecab
2016-08-03 10:02:14 +02:00
Miklos Vajna
195b72a921
Log: use std::move() when a value is passed
...
No move would actually happen in the second case.
Change-Id: I7cc7d9e2a55a17d19845e98a0d829b168b614529
2016-08-02 09:29:25 +02:00
Michael Meeks
9a0c5d8571
Continue nocaps work to improve valgrindability.
2016-08-01 16:45:12 +01:00
Miklos Vajna
b3ddeb783b
LOOLWSD: catch exception by const ref
...
Change-Id: I9e505ac242e4660be586a5d6652cc79203f1a6ac
2016-08-01 09:18:05 +02:00
Ashod Nakashian
a5716da8f8
loolwsd: fail gracefully on invalid file requests
...
Change-Id: I576623de1251c916f3a54dca8e470d8989710e40
Reviewed-on: https://gerrit.libreoffice.org/27687
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-29 12:43:43 +00:00
Miklos Vajna
e36649c13b
Auth: clean up unnecessary value parameters
...
Change-Id: Ia797171880ea1dd790d67a150f198c8306354045
2016-07-29 09:14:22 +02:00
Pranav Kant
b8ef017610
Move JWT auth to inside websocket to prevent CSRF
...
... instead of setting a httpOnly cookie for admin websocket
endpoint which can be CSRFed.
With this, we remove the httpOnly tag on jwt cookie so that
scripts in admin html pages can access the jwt cookie and
authenticates after opening websocket endpoint. Until
authenticated using 'auth authToken' command, admin will not
respond to any admin command.
Also, adapt admin test these changes
2016-07-29 12:03:14 +05:30
Pranav Kant
a97b4f52b8
loolwsd: Make FileServer a singleton
2016-07-28 13:54:50 +05:30
Pranav Kant
fee967e510
loolwsd: Fix indentation
2016-07-28 13:54:50 +05:30
Miklos Vajna
84ef81b7b4
LOOLWSD, Util: follow coding style when prefixing data members
...
Change-Id: Iaf788cc8e5b7df473a52fbe8496d500f0f63c117
2016-07-28 08:39:27 +02:00
Artyom Sovetnikov
85d275ab1a
loolwsd: Remove pong frame hack
...
https://github.com/LibreOffice/online/pull/1
2016-07-27 23:04:25 +05:30
Ashod Nakashian
93d38f6e78
loolwsd: document new per-view notifications
...
Change-Id: Idfafb981e6face61c65809b24c646ceac9507992
Reviewed-on: https://gerrit.libreoffice.org/27591
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-27 16:01:10 +00:00
Ashod Nakashian
1300b412fb
loolwsd: comments
...
Change-Id: I57ba646df6ceb24d4f101a5539c979e77130cfc9
Reviewed-on: https://gerrit.libreoffice.org/27589
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-27 16:00:54 +00:00
Ashod Nakashian
ecd33e1b07
loolwsd: send json messages to the UI as text
...
Change-Id: Ie5712b4ebf4f01a6650f5f7c0df5197b5b9f9208
Reviewed-on: https://gerrit.libreoffice.org/27588
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-27 16:00:25 +00:00
Ashod Nakashian
219143ceda
loolwsd: unittest fixes for multiview
...
Three tests still fail and seem to be regressions
due to multiview. When WSD is not running with
multiview support, these tests pass.
Change-Id: Ice3224d92d10f761cb8827d35c9c0c5dd82ae308
Reviewed-on: https://gerrit.libreoffice.org/27587
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-27 15:59:29 +00:00
Ashod Nakashian
7826d85832
loolwsd: forward new notifications
...
Change-Id: I434545a5edb48f957d0e03c02040cc25644f67c4
Reviewed-on: https://gerrit.libreoffice.org/27586
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-27 15:59:07 +00:00
Ashod Nakashian
d56f9a0386
loolwsd: status now includes the view-ID of the client
...
Change-Id: Iac1cd806ac24ff3956624513946921020d248664
Reviewed-on: https://gerrit.libreoffice.org/27585
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-27 15:55:09 +00:00
Ashod Nakashian
92d36a5791
loolwsd: loKitDocument might be invalid
...
Check for valid loKitDocument instance when
using it in ChildSession dtor.
Change-Id: I1e883d0f1bbe530bf3055a2d0833be2d38ef253c
Reviewed-on: https://gerrit.libreoffice.org/27584
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-27 15:54:40 +00:00
Miklos Vajna
c3e2a6cd40
AdminModel: use std::move()
...
Change-Id: Ib83b91bdbec2f71d96873a6146065707173349df
2016-07-27 09:22:12 +02:00
Miklos Vajna
e36ecbaf78
PrisonerSession: use std::move()
...
Change-Id: I934eb4fcc5ebac12e8a85bfe711afddf79b8194f
2016-07-26 09:29:39 +02:00
Miklos Vajna
aa9902970c
LOOLWSD: avoid performing multiplication at int level
...
Change-Id: I5d293482860954144f7664638443d5c72ba9a8cc
2016-07-25 08:27:23 +02:00
Ashod Nakashian
9510c1aca7
loowsd: log file server requests
...
Change-Id: Ia3e9ebf2888a629b8e5fb0b83dd526fcaec03835
Reviewed-on: https://gerrit.libreoffice.org/27452
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-23 02:58:03 +00:00
Miklos Vajna
b9fbc6d369
Update bundled headers
2016-07-22 18:09:32 +02:00
Andras Timar
0bd3e3e109
fix loolwsd cache cleanu cron job on Debian
2016-07-22 14:09:53 +02:00
Miklos Vajna
f5bf034949
FileServer: clean up unused 'using' declarations
...
Change-Id: I0db8215f21dbdc6e90c2a3bbfe517d7a0f3c4a0f
2016-07-22 09:18:28 +02:00
Ashod Nakashian
24da5ce6e0
loolwsd: unittest fix
...
Change-Id: I371d7480e648cd2b28fb92b2d34db56614b4542f
Reviewed-on: https://gerrit.libreoffice.org/27422
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-07-22 04:31:40 +00:00
Pranav Kant
81b14c51f2
loolwsd: security: Sanitize user input in downloadAs requests
2016-07-21 16:01:35 +05:30
Pranav Kant
f8cc5d3877
loolwsd: security: Sanitize user input in convert-to API
2016-07-21 15:17:59 +05:30