Commit graph

20681 commits

Author SHA1 Message Date
Ashod Nakashian
3b8f297669 wsd: test: testname in UnitSession
Change-Id: I0c9585fe83c72d0601712bcbf685f716787c13eb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
685e2fb0b8 wsd: http: return const& from const response getter
Change-Id: I5dc5282938a472148148d1dd6d009261bc09c7d6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
0aefa70347 wsd: merge StorageBase::validate with ::create
Change-Id: I55ce50301cdf9ed415d30da1fb030abc0e8dfdcb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
6530834155 wsd: make URI validation independent of Storage creation
Change-Id: Id8213d23d04fc717683361397d511cbd8300136d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
7ce18c8a13 wsd: http: cosmetic and log
Change-Id: I984ad71601b92b8042dc7984e7339f0804c8083b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
9d07402bea killpoco: reuse URI encoding
Change-Id: If9bb48973c61ba56860aac273534fa4db67c9e6f
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
ddefe7a3bd wsd: logging
Change-Id: I0aa2345891c29bd97cd43cfcd2c5ecf0e4cfd2c4
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
47f5d86dc4 wsd: simplify uploadToStorage calls
Change-Id: I5ed3ce09dae8b6176d806d0bb5994e56c182ac8b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Ashod Nakashian
9bc4b5c500 wsd: whitespace formatting
Change-Id: Id50baf8d1c539d047ba8142bfab93b445187d658
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-22 09:34:29 -04:00
Gülşah Köse
0f8a0762d8 Fix huge dropdown arrow of form control and missing button border
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I752691d09195e0fc6e502736a5b809fe8d92aa50
2023-05-21 15:47:10 +02:00
Szymon Kłos
aa440636a8 jsdialog: position dialogs correctly in RTL mode
test with eg. &lang=he

after position of a dialog was changed to absolute position we
had regression causing the dialogs to appear outside view in
RTL mode. this patch uses margin-inline-start instead of margin-left
what is more generic

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3e70ced1b790d4af751f34d54c880135a3af21bb
2023-05-21 15:43:12 +02:00
Andras Timar
099c70e3c8 Updated UNO command translations
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I91281dea298d30b5bc83e891fdf0380bd470c3e3
2023-05-21 12:57:51 +02:00
Andras Timar
eb203b55a6 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0d9a28ab036181ce7c8068a533b19447ebd7fa55
2023-05-21 12:52:27 +02:00
Andras Timar
41f3f2eb5e CODE release notes url for 23.05
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idebcc7742e17282820f6ce54198cd83b258627e2
2023-05-21 12:48:10 +02:00
Jörg S
a100d91a39 Translated using Weblate (German)
Currently translated at 99.5% (497 of 499 strings)

Co-authored-by: Jörg S <joerg.schwerdtfeger@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If052fb9050111efbab4a23bcbbf974f2c24f7b59
2023-05-21 12:44:59 +02:00
Martin Srebotnjak
6fb567c1bd Translated using Weblate (Slovenian)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id504eb423ecd9f19817339b7ae10964398931444
2023-05-21 12:44:59 +02:00
Roman Kirilenko
052a7d1982 Translated using Weblate (Russian)
Currently translated at 99.7% (498 of 499 strings)

Co-authored-by: Roman Kirilenko <rkirilenko@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I433c6f6f8fbe0040f75ca6ed541a4daf721bc1f8
2023-05-21 12:44:59 +02:00
Sebastiaan Veld
f6fc8a9149 Translated using Weblate (Dutch)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I89a4db0969db463ab88ebf2cf892ec86d4271ae9
2023-05-21 12:44:59 +02:00
Ihor Hordiichuk
ba5a48d48d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7aceadea190702c0daaad5a5a331a34c687c781d
2023-05-21 12:44:59 +02:00
Oğuz Ersen
5d515b7d0c Translated using Weblate (Turkish)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If0a1aaaaeec72f12ef762fcef8026e123a331504
2023-05-21 12:44:59 +02:00
Matthaiks
45c772187c Translated using Weblate (Polish)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idc035acd9e883847b68b870a2e9169c78a81a586
2023-05-21 12:44:59 +02:00
Andras Timar
c4662b569f Translated using Weblate (Hungarian)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifccecce9440828f2941e56fe90dcbdf41e6685aa
2023-05-21 12:44:58 +02:00
Milo Ivir
d3d80c42f3 Translated using Weblate (Croatian)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib5bccb77b98dc6b0604d35d782d3f555a1eeead2
2023-05-21 12:44:58 +02:00
Yaron Shahrabani
104c62ec7b Translated using Weblate (Hebrew)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I639ac8d357162a0f8dc82571fddaa359c2563638
2023-05-21 12:44:58 +02:00
gallegonovato
bea98dee23 Translated using Weblate (Spanish)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic4596364f074d12f06739a0a1e78de0adf1204c0
2023-05-21 12:44:58 +02:00
Andi Chandler
e5db67498b Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Andi Chandler <andi@gowling.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2431e0ba1b02d7f399ec0e8d9189c8e45f433505
2023-05-21 12:44:58 +02:00
Rob Pearson
334ef31764 Translated using Weblate (English (Australia))
Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (499 of 499 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (499 of 499 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (499 of 499 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7cb833f64a20406bca8207e81ec04e266f8e226c
2023-05-21 12:44:58 +02:00
Stanislav Horáček
1cc9cea777 Translated using Weblate (Czech)
Currently translated at 100.0% (499 of 499 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If505e9be2e45ce1326c0b812e93c3693f66ea020
2023-05-21 12:44:58 +02:00
Szymon Kłos
746ed742b3 Show document loading error popup
This fixes regression from popups rework.
Run collabora online, try to open not existing document.
You should see error: "Well, this is embarrassing..."

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic3fc0dfd05e5ad16d11b07f4f7f3e36851483c1a
2023-05-19 13:55:34 +02:00
Szymon Kłos
56ca9b6b2c navigator: hide panel title in sidebar
and move all navigator css rules into one place

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iaf00bbd25bf111c5817621f4a72ac95aeb307786
2023-05-19 13:55:26 +02:00
Szymon Kłos
012b00d6d4 linking-api: always response for thumbnail render requests #6229
when we request target which doesn't exist or it is the first
character in the document, we receive only one cursor invalidation

in that case we didn't respond at all for the request because we
were waiting

this patch added fallback, so when we receve statechanged messages
we know we already loaded document so we don't need to wait more

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib25ab4f4d68809e3ef97ccb826ba44aeee2f71dc
2023-05-17 16:43:54 +02:00
Szymon Kłos
376e8fdd97 linking-api: zoom document to avoid empty space on thumbnail
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I572dc8bd239265a9ab9311aa109e82b1d4e06efb
2023-05-17 16:43:54 +02:00
Andras Timar
a34870d402 Add possibility to define product name from brand package
This is the product name served by hosting/capabilities
endpoint. Also, it is used by update checker.
It can be defined --with-app-name build time, but if
we would like to configure it run-time (e.g. with the
brand package), then we need a config setting for it.
E.g. brand package could execute
  coolconfig set product_name "foo bar"
in postinstall script, if necessary.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8e72d3a3735e3a77c7aaac9a88b2c0fc6a957c0e
2023-05-17 12:53:11 +02:00
Andras Timar
a71f59c9cc Add possibility to define help root URL from brand package
Previously the help root URL was defined in coolkitconfig.xcu,
but it was inconvenient to change. Now we have this setting in
coolwsd.xml, therefore it can be changed more easily. For
example a brand package can disable the Help buttons on
dialogs by executing the following command in postinstall
script:
  coolconfig set help_url ""

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6d0bdd71ca908df3d2dd20bd321aff9e93896f52
2023-05-17 08:26:38 +02:00
Ashod Nakashian
9410189280 wsd: better detection of modification during a conflict
When we detect document change in storage, we have to
either prompt the user(s) to either reload from storage,
discarding their own changes, or force saving their
changes and clobber the version in storage.

However this implies that the loaded document was
modified. Because otherwise, we do reload the
document from storage, automatically.
This change improves the detection logic to take
into account not just the saved state of the
document, but also the upload state. That is,
if a previous modification was not uploaded yet,
then the user does have changes that they need to
consider to discard or save.

Change-Id: I5f03593bebc5b565fc19e78562896bcdcb6112e2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-16 16:55:40 +01:00
Gökay Şatır
529f48e423 Remove notebookbar seperation from Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If07b5f54b60cd0d7a934f97973a487f103702581
2023-05-16 14:20:17 +03:00
Patrick Luby
094183e279 Fix issue #5876 by closing the document if the content process dies
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I6fc887dd30328395d424a6371ba3603d2c09b607
2023-05-16 09:43:29 +02:00
Patrick Luby
48ddd7c589 Related to issue #5876: don't autorelease large NSStrings
The +[NSString string...] selectors won't be released until
an enclosing autorelease pool is released. But since we use
ARC, we don't know where the compiler has inserted the
autorelease pool so JS messages may not be released until
after a very long time potentially causing an out of memory
crash. So, use the -[[NSString alloc] init...] selectors
instead.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Iff0be8ee5b322347e746dc030948b82d117c43a1
2023-05-16 09:43:29 +02:00
Patrick Luby
aad344f8a5 Suppress or fix all iOS compiler warnings without changing any code
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I3a7693ad1d4a7b4873e462a26a9628454884c8c2
2023-05-16 09:43:29 +02:00
Patrick Luby
94469d7b61 Replace deprecated calls
Also, don't set webView.configuration.userContentController to nil as it
generates a "nil not allowed" compiler warning.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Ibb49228a65f102fa6d97d4e5affafae8ad528c0d
2023-05-16 09:43:29 +02:00
Patrick Luby
0ffa5dc7c1 Reserve the maxiumum possible length after encoding
This avoids an excessive number of reallocations. This is overkill
for non-binary messages, but most non-binary messages appear to be
under 1K bytes in length. In contrast, it appears that binary
messags routinely use at least 75% of the maximum possible length.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I522fe74bc355a78b6b561ec9475a1afb27cf54b2
2023-05-16 09:43:29 +02:00
Patrick Luby
9b2a3d8cc7 Related to issue #5876: reduce excessive copying of message data
Many .png tile messages are very large so avoid using
-[NSString stringByAppendingString:] calls to create the JavaScript
string.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I8163ef93da315122f938c9ed2b66b49a443f283f
2023-05-16 09:43:29 +02:00
Patrick Luby
94bbaa7c3f Fix issue #6145 by adding aliases for the PDF and EPUB icons
The fix for issues #6103 and #6104 changes the name of these
icons so map the new names to the old names.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I96b2678534827ce94c11edfa00718eab2a6a9eb8
2023-05-16 09:43:29 +02:00
Patrick Luby
59de67f0f6 Fix assert failure when running "My Mac (Designed for iPad)" in Xcode
LANG values such as en_US.UTF-8 trigger an assert in the LibreOffice
code so replace all "_" characters with "-" characters.

Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: Icba29a8e647eaf0887cc801d4b8763ffd821ffbf
2023-05-16 09:43:29 +02:00
Ashod Nakashian
a6551462e2 wsd: http: improved http::Session::handleIncomingMessage
The normal path is now streamlined and error handling
is at the end. We also now always set the disposition
to closed and fire onDisconnect() when disconnected
or hit an error.

Change-Id: I984ad71601b92b8042dc7984e7339f0804c8083b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-15 19:14:21 -04:00
Ashod Nakashian
337c98a0b6 wsd: improve rename action handling
This corrects the ending of renaming by
moving that logic only after we get the
async upload results (either success,
failure, or timeout).

It also cleans up a few cases, such as
not needing to special case renaming with
identical names. This ensures that
subsequent attempts are not ignored.

Change-Id: Ib7a432d8a3b6ef5448291763cd31cc844c997e7e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-15 15:29:50 -04:00
Ashod Nakashian
df89ec90ae wsd: http: killpoco in prisoner http handler
Change-Id: I82f030d1d91afa504a095b852dcdaec9d2df386d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-15 15:25:58 -04:00
Gökay Şatır
71fe95eb92 Skip multi-user tests for now.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ie747587e9589872bc99be9bb4204cd11803aaac1
2023-05-15 16:34:29 +03:00
Szymon Kłos
f8f4d5e710 navigator: add to menubar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I80113de0b97334adc1298bef2195b4758a4c6c82
2023-05-15 11:12:16 +02:00
Szymon Kłos
3e7bdafdbe navigator: add to view tab
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If1944865072c091e4ece5fb772c26eb69a371a63
2023-05-15 11:12:16 +02:00