Commit graph

442 commits

Author SHA1 Message Date
Tor Lillqvist
74b5227dec Drop a few too specific dependencies 2015-06-01 17:55:12 +03:00
Tor Lillqvist
1e8a22d4d6 Bump version to 1.0.31 after "release" 2015-06-01 16:36:42 +03:00
Tor Lillqvist
a59f176929 Bump version to 1.0.30 for tarball 2015-06-01 16:36:42 +03:00
Tor Lillqvist
b317bfb9a0 Add the packages that the TDF build of LO should require (but doesn't)
LibreOffice from TDF, packaged in RPM, does not have proper dependencies as it
is supposed to be usable on different distros and can't know what names are
used for packages for system libraries used, like the one containing
libdbus-glib. But we must have all dependent libraries installed when running
the loolwsd-systemplate-setup command in the %post phase. As this spec file de
facto is for openSUSE 13.2 only anyway, we can find out the package names and
depend on them...

Add the list from running:

rpm -qf --queryformat '%{NAME} ' `find /opt/libreofficedev5.1 -name '*.so' -o -name '*.so.[0-9]*' | while read file; do ldd $file; done | grep -v dynamic | cut -d " " -f 3 | grep -E '^(/lib|/usr)/' | sort -u`
2015-06-01 16:34:58 +03:00
Jan Holesovsky
def78817b0 TiledLayer should not clear the search bar's not found indication. 2015-05-31 21:47:15 +02:00
Jan Holesovsky
4342c5c9fb Don't switch parts when we are in the correct one already. 2015-05-31 14:02:29 +02:00
Jan Holesovsky
0f9e24f77d Disable invalidation for the moment, breaks slides. 2015-05-31 00:38:22 +02:00
Jan Holesovsky
6b743655cc Small addition. 2015-05-31 00:37:20 +02:00
Jan Holesovsky
29ba14178e Kill _abortLoading, causes loss of tiles in various scenarios.
loleaflet only triggers the loading of the tile, and the tile comes sooner or
later whatever we do, so the idea of aborting the loading does not work until
we have server support for that anyway - let's just kill that for now.
2015-05-30 23:34:32 +02:00
Jan Holesovsky
128bfcec10 Never ignore scroll.
After 'make clear-cache', sometimes causes losing scroll events (the user
moves the scrollbar, but the document does not move).
2015-05-30 04:12:03 +02:00
Tor Lillqvist
58e4e15c6a Post-release bump to 1.0.29 2015-05-29 18:36:37 +03:00
Tor Lillqvist
9076ba8a75 Bump version to 1.0.28 for tarball 2015-05-29 18:35:42 +03:00
Tor Lillqvist
b54731fdce We do need to require the LO packages
They need to be installed before loolwsd is installed, because our %post
action needs to know where LO is installed so that it can create the
systemplate and child-roots directories on the same file system where LO
is. Oh this is crazy and over-engineered. I wonder if it makes sense at all to
even consider packaging this loolwsd in some generically useful way, or if it
should be considered a manual thing for customers / users to install and
configure.

Sadly the TDF builds of LO use the version number in the package names, so we
can't depend on *some* TDF build of LO (like >= 5.0), but must have a specific
version in this spec file. Sigh.
2015-05-29 18:31:53 +03:00
Mihai Varga
865f23d4e7 Use SearchItem.SearchStartPoint 2015-05-29 14:18:39 +03:00
Tor Lillqvist
4303f1ee38 Improve tile cache handling for file: documents
Handle also documents specified with a file: URI. Move creating the
modtime.txt file to the constructor of the TileCache object for the document.
2015-05-29 12:26:54 +03:00
Tor Lillqvist
3ed22306e8 Post-release bump to 1.0.27 2015-05-29 10:10:20 +03:00
Tor Lillqvist
47aa6c74ed Bump version to 1.0.26 for tarball 2015-05-29 10:06:48 +03:00
Tor Lillqvist
775603a736 Don't use sudo to run setcap when building from rpmbuild
Not a good idea to run an interactive command during a non-interactive
make. We do the setcap in the %post step in the spec file anyway.
2015-05-29 10:05:37 +03:00
Tor Lillqvist
f94cef92c8 Post-release bump to 1.0.25 2015-05-29 09:47:51 +03:00
Tor Lillqvist
2230b3f0c5 Bump version to 1.0.24 for tarball 2015-05-29 09:47:03 +03:00
Tor Lillqvist
a608aaee90 Add an invalidate: message that is in LOOL style with named parameters
The invalidatetiles: message as generated directly from the
LOK_CALLBACK_INVALIDATE_TILES will be dropped soon.
2015-05-29 09:44:39 +03:00
Tor Lillqvist
7721409594 Post-release bump to 1.0.9 2015-05-29 09:41:25 +03:00
Tor Lillqvist
96e0b433a7 Bump version to 1.0.8 for tarball 2015-05-29 09:40:54 +03:00
Tor Lillqvist
1b85e8eaaa Be more consistent in using 'using' 2015-05-29 08:49:49 +03:00
Tor Lillqvist
26161d6063 Handle the EMPTY case of LOK_CALLBACK_INVALIDATE_TILES, too 2015-05-29 08:39:21 +03:00
Henry Castro
ba70f2a050 Fixed invalidatetiles assertion. 2015-05-28 16:22:27 -04:00
Tor Lillqvist
bf985624f1 Handle LOK_CALLBACK_INVALIDATE_TILES in the server too
Remove any intersecting cached tiles. It is the parent process that handles
the tile cache, so it must look for invalidatetiles: messages, too, before
passing them on to the client. To know for which part we should remove tiles,
add an "ephemeral" curpart: message that the child process sends to the parent
process before the invalidatetils: message.
2015-05-28 18:48:51 +03:00
Tor Lillqvist
1d75eacd6a Add an invalidatetiles message from client to server
Mainly as a debugging aid to make it easier to check the tile cache invalidation
code, but might be useful for real, too.
2015-05-28 18:48:51 +03:00
Tor Lillqvist
5d9f5e715a Sort the messages in the sections 2015-05-28 18:48:51 +03:00
Mihai Varga
2fa440c18f Status indicator control 2015-05-28 18:43:29 +03:00
Mihai Varga
1d34f8f0a8 Set pointer cursor in viewmode 2015-05-28 17:43:53 +03:00
Mihai Varga
d8dd709377 setpart command handler 2015-05-28 17:22:45 +03:00
Tor Lillqvist
f6a00edbee Use shared_ptr to the WebSockets for increased robustness
Why did I wait so long to do this? This is obviously the right thing to do, I
hope, and has a very significant impact on the robustness of the server...
2015-05-28 16:46:37 +03:00
Tor Lillqvist
295bc3c42f Add some variation to the time each doc is tested 2015-05-28 16:46:37 +03:00
Tor Lillqvist
7245c795d2 Add one more line of (ifdeffed-out) debug ouput 2015-05-28 16:46:37 +03:00
Tor Lillqvist
73273eb027 Also let the nextmessage: from a child process be forwarded to the client
The loadtest program needs it as it, too, uses Poco, which currently does not
have an API to receive an arbitrarily large WebSocket message.
2015-05-28 16:46:37 +03:00
Tor Lillqvist
d0dbc5e1dd Send a nextmessage: message also preceding a tile: message from the cache 2015-05-28 16:46:37 +03:00
Tor Lillqvist
09b261d57b Handle LOK_CALLBACK_DOCUMENT_SIZE_CHANGED even better
Just call the getStatus() function directly in the child process, which will
always cause a complete status: message to be sent to the client. No
documentsizechanged: messages now sent to the client at all.
2015-05-28 16:46:37 +03:00
Henry Castro
e974f7c98c Fixed EMPTY invalidattiles 2015-05-28 09:36:52 -04:00
Tor Lillqvist
d6bd6ca140 Handle nextmessage: here, too
Otherwise loadtest crashes on big tiles.
2015-05-28 13:23:28 +03:00
Tor Lillqvist
13645eb769 There should be whitespace after the message keyword and colon 2015-05-28 12:59:11 +03:00
Tor Lillqvist
cedee8f1a9 Log the input to MasterProcessSession::handleInput() earlier 2015-05-28 12:58:08 +03:00
Tor Lillqvist
0092414470 Handle LOK_CALLBACK_DOCUMENT_SIZE_CHANGED callbacks more cleverly
When a child process sends a documentsizechanged: message to the parent, to be
forwarded to the client, parse it and update a cached status of the doucment,
if available, and send an updated status: message to the client instead.

Note that clients should not rely on getting only status: messages and never
documentsizechanged: messages, though; the cache might be cleaned at any time
even while the server is running. If there is no cached status of the document
to update and re-use, we have to forward the documentsizechanged: message as
such to the client.
2015-05-28 12:53:14 +03:00
Tor Lillqvist
6968bd1c3c This should obviously be noarch 2015-05-28 11:19:20 +03:00
Mihai Varga
f999c337b9 Better differentiate commands, status vs statusindicator 2015-05-28 11:02:12 +03:00
Tor Lillqvist
8166e9494f Post-release bump to 1.0.23 2015-05-28 10:35:07 +03:00
Tor Lillqvist
5150db06b9 Adapt to work with either 5.0 or 5.1 packages from TDF 2015-05-28 10:31:39 +03:00
Tor Lillqvist
fd7f83df92 Update from master 2015-05-28 10:27:43 +03:00
Tor Lillqvist
84819b6f0c Improve error handling 2015-05-27 21:44:39 +03:00
Miklos Vajna
d8d054fa47 LOOLSession: PAGE_COUNT -> DOCUMENT_SIZE 2015-05-27 17:34:10 +02:00