summaryrefslogtreecommitdiffstats
path: root/wsd/FileServer.hpp
Commit message (Collapse)AuthorAgeFilesLines
* fix license headersAndras Timar2020-10-011-2/+0
| | | | Change-Id: I8623770b32d278a45357dc7f757fabfadd2b4af7
* Make various bits of the UI configurable.Jan Holesovsky2020-09-281-0/+8
| | | | | | | | | | | This adds the infrastructure to be able to pass the info which elements like the statusbar / ruler / sidebar are supposed to be shown or hidden on startup of the editor. Change-Id: I188264dec6961074444934ff5fd7088e23b170d4 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103169 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
* Proxy: move RequestDetails to its own header.Michael Meeks2020-05-121-3/+11
| | | | | | | | | Share it with various other places requiring similar data. Change-Id: I873f56798f5a34dcf7440456bd649b68f6d3df98 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94069 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
* Use #pragma onceTor Lillqvist2020-04-181-4/+1
| | | | | | | | | | LibreOffice core uses that, too, and we support an even more restricted set of compilers. Change-Id: I0d0e2c8608e323eb5ef0f35ee8c46d02ab49a745 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92467 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
* Welcome: Serve the release notes files from a given (configured) directory.Jan Holesovsky2020-04-161-1/+1
| | | | | | | Change-Id: Iae36c1c48fee963659662436d594be659908a3e3 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92216 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
* Revert "Serve a decidedly unpretty clipboard download page"Michael Meeks2020-01-161-1/+1
| | | | | | | | | | | This reverts parts of commit da455c486a5cce661cac2e214374836b2096eccc. Unfinished; also stream size calculation cannot have worked. Change-Id: I39635fe5165b82dd36095d58cfefff4920ce3a35 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86845 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
* Serve a decidedly unpretty clipboard download pageAshod Nakashian2019-08-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial bits to serving some page with provision to ingest the different formats into a table. Doesn't yet link with the actual document, but it's a start. The link will have some unique id(s) in it to reference the document in question, which will be some hash (possibly changing with some logic for security reasons). This hash will have to be something valid that WSD will use to locate the DocBroker in question, connect to it and fetch the formats supported and generate unique links for each. When the user clicks on a link, the contents will be downloaded in the given format and copied to the user's clipboard. The clipboard.html template is based on loleaflet.html as we're very likely to use the same customization, branding, localization, and javascript bits. We would probably want to add a brandable title with logo etc. and possibly some more reasable background (ideally, an image enlarged and blured to give the page some semblance of having content). Change-Id: If0550184d4423bef1e98fecbb072bdf8df07701b
* Revert "wsd: use a tiny parser, variable substitution"Jan Holesovsky2019-03-151-1/+0
| | | | This reverts commit ed89931ae8ceff62b720a31cf1e163eeee3280fd.
* Revert "wsd: tokenize symbol "_('') _("")""Jan Holesovsky2019-03-151-1/+1
| | | | This reverts commit 6144d55f44c2109d43bc45c408fe4d1ca8f42207.
* Revert "wsd: create a static function "parse""Jan Holesovsky2019-03-151-1/+0
| | | | This reverts commit fcfc257162e106f48b2864820c435fd836588a41.
* Revert "wsd: preprocess javascript file for L10n"Jan Holesovsky2019-03-151-1/+0
| | | | This reverts commit 306b12b9bc2e0808751ea24282be792839d9ca40.
* wsd: preprocess javascript file for L10nHenry Castro2019-03-051-0/+1
| | | | Change-Id: Ib802beca673e1e90ad5dd9c33cd5191300ae7bf8
* wsd: create a static function "parse"Henry Castro2019-03-051-0/+1
| | | | Change-Id: Ifffae9a0d38bf64c41863a98395a2f41a6470441
* wsd: tokenize symbol "_('') _("")"Henry Castro2019-03-051-1/+1
| | | | Change-Id: I9c0e7f30a96a355f6d69b2c5a5244dbfbd863e08
* wsd: use a tiny parser, variable substitutionHenry Castro2019-03-051-0/+1
| | | | Change-Id: I821d27ef504a01d0b040f2b7ae7f66e75b16eb96
* wsd: make these a const reference instead of copying for each invocationMiklos Vajna2018-07-311-2/+2
|
* Cleanup error reporting.George Wood2018-07-241-1/+4
|
* respond different logo brands when it has supportHenry Castro2018-05-241-1/+1
| | | | | | | Change-Id: Icddc8b67a20fd829c90c3c5d8eb6942da9c5e74d Reviewed-on: https://gerrit.libreoffice.org/53583 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
* wsd: free leaking memoryAshod Nakashian2017-07-031-0/+3
| | | | | | | | | | With help from Valgrind to find and verify these leaks. Change-Id: I3afeed89dc4bcd714a222f81822144477a346fb0 Reviewed-on: https://gerrit.libreoffice.org/39464 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
* Various cleanups & improvements to file-serving.Michael Meeks2017-04-271-4/+5
| | | | | | | Use what we read at startup as the complete set of files to serve. Trace log filenames as we read them. Simplify and accelerate path related checks via the hash. Kill leak with get_current_dir_name and use the correct path.
* Migrated from deflate to gzipAditya Dewan2017-04-271-0/+11
| | | | Change-Id: I64aec9305fe74b6cdcfe15e2f67f9d38cfd6d99a
* Revert "wsd: Fileserver cleanup"Pranav Kant2017-04-101-5/+3
| | | | | | | | | | | | | | | This reverts commit de2bc17c04af088d9c7e18a97216b174494e1a9c. Lets not introduce any cleanup commits while we are near a release, will apply it again after the release. The cleanup is supposed to not handle the custom file server root correctly, so don't forget to test it with a custom file server root before re-reverting. It changes the path where loleaflet.html is searched for from /usr/share/loolwsd/loleaflet/... to /usr/share/loleaflet/... and doesn't find it there. Change-Id: I23940e9a3e06721f0a8b7493a526f42d2072cfa4
* wsd: Fileserver cleanupPranav Kant2017-04-071-3/+5
| | | | | | | | | | | Remove unnecessary checks Rename preprocessFile -> preprocessAndSendLoleafletHtml and Rename isAdminLoggedIn -> tryAdminLogin so that their name matches the actual reality of what these function really does. Change-Id: I549eae31f8ab0a320bb3ff8ecd17a282b8f91e1a
* remove obsolete Poco headers, and Poco SSL pieces.Michael Meeks2017-03-161-5/+1
|
* AdminConsole - get credentials sorted, and serve the HTML pieces.Michael Meeks2017-03-131-1/+1
|
* config.h - get includes right: must always be the first include.Michael Meeks2017-03-101-2/+0
|
* nb: proper POST body processingAshod Nakashian2017-03-101-2/+3
| | | | Change-Id: Ic37094e50979e14d2862ae32088295b42d9c4931
* nb: serve files using non-blocking socketsAshod Nakashian2017-03-101-26/+6
| | | | Change-Id: I254288980f72f197d29b7b57ec9c88a01a5a1d03
* loplugin:staticmethodsNoel Grandin2016-12-271-2/+2
| | | | | | | Change-Id: Idf9596cfbbd6eef77e6271a1108d64dae864ed27 Reviewed-on: https://gerrit.libreoffice.org/32366 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
* wsd: FileServer logging updatedAshod Nakashian2016-12-211-6/+0
| | | | | | | Change-Id: Ia797c6c8f9068805d85f066030f8110f0affb7f4 Reviewed-on: https://gerrit.libreoffice.org/32286 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
* Apply the pre-branch rename script to re-organize the source.Michael Meeks2016-11-251-0/+65