Commit graph

19328 commits

Author SHA1 Message Date
Tor Lillqvist
c8d176ead9 No need to cd back before exiting a shell script that is run as a command
The autogen.sh script is not supposed to be sourced ("source
autogen.sh"), but run as a command ("./autogen.sh"). After all, it has
the executable bit set. Also, the function called "failed" in it does
an "exit" at the end. That would be a rather rude thing to do as soon
as something goes wrong if the script is sourced.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ia0e4bbb2b9bed93fb4dba5c0f46a1760ec6e50d7
2022-12-07 15:06:16 +02:00
Ashod Nakashian
b2aff3e817 wsd: pass ClientSession to forwardToChild
Change-Id: I2d78687adf9e5a64b75f586b53bf983f3c8d8119
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-07 07:53:09 -05:00
Ashod Nakashian
98687db97e wsd: pass ClientSession to sendUnoSave and simplify
Change-Id: I155c896a3f5520a31ce5f413e0c59c2e93701ad1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-07 07:53:09 -05:00
Ashod Nakashian
44aeb9e705 wsd: pass ClientSession to uploadAsToStorage
And move the validation of rename sessionId
where it belongs.

Change-Id: I3fb16ff7b648accaa20b041bf3fd6b82f516cb9b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-07 07:53:09 -05:00
Andras Timar
f9f858ab67 zotero: fieldmark should be read-only
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If9d816932ff074c40ee159a8c36885c5bdda9fac
2022-12-07 13:44:00 +01:00
Ashod Nakashian
08355a3282 wsd: test: add expired-token test
Change-Id: I0055fcb287b45d3a4e1fbaf4e364e8fa323c9b30
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-07 15:42:04 +03:00
Ashod Nakashian
f9e52bfe72 wsd: do not upload with expired authorization
We mark expired/invalid/rejected authorization
tokens and skip them in the future.

Change-Id: Iec89942198d566901cc2944f22ef86fcb4d6a820
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-07 15:42:04 +03:00
Ashod Nakashian
54eedce089 wsd: support invalidating Authorization objects
Change-Id: Ia2327157cdbc27ac545f8137a41dbf75897b22a1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-07 15:42:04 +03:00
Andras Timar
9407c98df4 Remove the 'Insert Bibliography Entry' feature
LibreOffice has its own solution to handle bibliography. It is outdated, and
reportedly everyone prefers Zotero or similar solutions. Moreover in Online
this feature does not work, because the bibliography database is a file in
the jail that is not retained, and because tunneled dialogs have serious UX
problems.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibf6195c0265c767b3acf94012ee3f82339cf34d3
2022-12-07 11:53:26 +01:00
Tor Lillqvist
4fd6279f6b sendCounter is unused
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ie6f713f062e9c89ed3679d709394089413184d0d
2022-12-06 10:38:39 +02:00
andreas kainz
6031436da1 remove fontheight rule from mobilewizard.css
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I21b8095843393d924a6790e18eaa3f868516f90d
2022-12-05 14:38:16 +01:00
Pranam Lashkari
fe02dbbbd3 zotero: fix library dialog empty when collection has notes
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie96550faaf3dc23e0aff0c289a38f717c6624e6f
2022-12-05 14:34:19 +01:00
Andras Timar
777c7edf96 add hasZoteroSupport to /hosting/capabilities
The idea is that the integration should look for hasZoteroSupport capability,
and if it's missing or false, then it should not enable setting of the Zotero
API key. Instead, it could write "This instance does not support Zotero, because
the feature is missing." or " ... because the feature is disabled in configuration."

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibff9cb61ada062f59e8b2b63ddcdb7a9cf899b82
2022-12-05 14:33:01 +01:00
Rash419
7578f43651 fix: codeql cpp unmet dependencies failure
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7d0ec22e5eddcd2a0bc10a79c31acb4f0a295f50
2022-12-05 10:57:53 +01:00
Szymon Kłos
3c4d8d6f24 formulabar: allow wrapping to avoid horizontal scrollbar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7139ef2bc213b0be681725ec329186321859f736
2022-12-05 09:37:58 +01:00
Ihor Hordiichuk
bc9861fc6d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (479 of 479 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: If724ff4bdbb5e83998295946432412d23ca63444
2022-12-02 14:38:09 +01:00
Matthaiks
7dcf6acc33 Translated using Weblate (Polish)
Currently translated at 100.0% (479 of 479 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: I1912e685f07b653abdde0a15d6ea9884c1551f6e
2022-12-02 14:38:09 +01:00
Andras Timar
95d0c365f8 Translated using Weblate (Hungarian)
Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (German)

Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
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: Idf8ea79e54be5c7c87c3e9de41744d9c2d50e1e4
2022-12-01 21:35:07 +01:00
Andras Timar
4a2d326423 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id0cffee88c9ed61723c38e236076c5be4c181ca4
2022-12-01 21:25:22 +01:00
Andras Timar
ac47e7227a commands are not for translation
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib078a06334eb9d22f0e79a1c8168ab690a9c2fb0
2022-12-01 21:13:31 +01:00
Andras Timar
0f40ddbf8b Fix syntax error in Makefile.am
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7b72a46379833ca8eba21e4ba39ea0271017f216
2022-12-01 21:10:37 +01:00
Adolfo Jayme Barrientos
ce9c29ce79 Translated using Weblate (Asturian)
Currently translated at 52.3% (244 of 466 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9fc03f2c0d06a29d3c11992564b3c94b7b2c32e3
2022-12-01 21:07:46 +01:00
Rob Pearson
a8c3dc3f2f Translated using Weblate (English (South Africa))
Currently translated at 100.0% (466 of 466 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (466 of 466 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (466 of 466 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (466 of 466 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
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/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iad33a2c2d5db2f5bf8d7e7c84ff5b1693cfa1c07
2022-12-01 21:07:46 +01:00
Matthaiks
cf96637e1c Translated using Weblate (Polish)
Currently translated at 100.0% (457 of 457 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pl/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0c67f9503f860a97620f41b782181c4975005dc4
2022-12-01 21:07:46 +01:00
Tor Lillqvist
81263e7540 Need Zotero.cpp here, too
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ic0aaf8c944fa10ec370a0b733d1f5c881ea349ce
2022-12-01 15:22:56 +02:00
Szymon Kłos
f991361377 Delete row/column break from menu
This feature didn't have any visual indicator

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ice0a9f953cbd2028d21f514882b7997d775b7d7a
2022-12-01 08:53:53 +01:00
Rash419
abcf097795 cypress: fix: notebookbar test failing
impress/table_operation_spec.js was failing due to split dialog converting to jsdialog
writer/top_toolbar_spec.js failing due to change in name of clear formatting button

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia70b80540ebfee66b1499b931c1fc32ab6f9df95
2022-12-01 12:23:58 +05:30
Aron Budea
67e7eca6ca browser: fix JSON syntax in print settings
Follow-up to 4ba2c20997.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Id74c1ea9557e793386ba39844e7a03ddc766b7c0
2022-11-30 23:31:15 +01:00
Pranam Lashkari
135880dd9a added zotero style selection dialog
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib761bce24ca7401285fe423b21434243a8f83dee
2022-11-30 20:37:48 +01:00
Pranam Lashkari
2cfae369af initial zotero skeleton
add zotero UI only if user is logged in
when zotero citation edit button is clicked,
fetch the library with zotero API.
Let user select what to insert

at this stage its not a complete solution but just first stage

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id67d8409bcd6416994713acd9ace495b24823fb0
2022-11-30 20:37:48 +01:00
Pranam Lashkari
a93343997d introduced Zotero configuration
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6c419866da9dd5c7d656be5e4ed64e813ed59e46
2022-11-30 20:37:48 +01:00
Pedro Pinto Silva
b761acad81 Allow Repair Document dialog to be translated
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4e74bf23bea0edba5dad13f53967d380567dbdc7
2022-11-30 14:34:58 +01:00
Ashod Nakashian
eb2728cd0f wsd: move idleSaveInterval in SaveManager
This fixes a regression where the
per_document.idlesave_duration_secs setting
wasn't effective.

Idle save also takes into account the time
uploading finished, or if we had a recent
save issued. This is particularly helpful
for large documents and/or slow networks
where uploading takes dozens of seconds.
In that case, we don't idle-save too
frequently.

Change-Id: I76ee1869003073b5cf9bd420f610bd8a12ff71b3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 08:59:34 -04:00
Ashod Nakashian
e5c939a31a wsd: autosave -> autoSave for readability and consistency
Change-Id: I9568993a8f7ff7dac43f3f48264952f8259846d7
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 08:59:34 -04:00
Ashod Nakashian
49aec68f11 wsd: test: logging
Change-Id: I820e3ddbdb38cdde2ee34c144c08866ab6720495
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
42ce410ff2 wsd: test: fix rare deadlock on stopping
Since UnitBase (and children) are invoked from
different threads, UnitBase::exitTest could
have a race. This ultimately results in
invoking std:🧵:join() concurrently,
which is unsafe. This can result in the
following deadlock.

In this case websrv_poll had invoked
UnitBase::exitTest concurrently and
evidently finished, leaving the main
coolwsd thread deadlocked.

	(gdb) info thread
	  Id   Target Id                                     Frame
	* 1    Thread 0x7f67528f0840 (LWP 4058508) "coolwsd" __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=4058510, futex_word=0x7f675285c910)
		at ./nptl/futex-internal.c:57
	(gdb) t a a bt

	Thread 1 (Thread 0x7f67528f0840 (LWP 4058508) "coolwsd"):
	#0  __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=4058510, futex_word=0x7f675285c910) at ./nptl/futex-internal.c:57
	#1  __futex_abstimed_wait_common (cancel=true, private=128, abstime=0x0, clockid=0, expected=4058510, futex_word=0x7f675285c910) at ./nptl/futex-internal.c:87
	#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7f675285c910, expected=4058510, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=128) at ./nptl/futex-internal.c:139
	#3  0x00007f67529cd6a4 in __pthread_clockjoin_ex (threadid=140081742857792, thread_return=0x0, clockid=0, abstime=0x0, block=<optimized out>) at ./nptl/pthread_join_common.c:105
	#4  0x00007f6752d42337 in std:🧵:join() () from /lib/x86_64-linux-gnu/libstdc++.so.6
	#5  0x000055775c5fa8e0 in SocketPoll::joinThread (this=0x55775cc9b090) at net/Socket.cpp:282
	#6  0x000055775c5c8121 in UnitBase::endTest (this=this@entry=0x55775cc0fe80, reason="") at common/Unit.cpp:545
	#7  0x00007f67528df61f in UnitWSDClient::endTest (this=0x55775cc0fe80, reason="") at ./UnitWSDClient.hpp:118
	#8  0x000055775c5cc4d1 in UnitBase::exitTest (this=0x55775cc0fe80, result=result@entry=UnitBase::TestResult::Ok, reason="") at common/Unit.cpp:486
	#9  0x00007f67528d1fa3 in UnitWOPIFileUrl::invokeWSDTest (this=0x55775cc0fe80) at UnitWOPIFileUrl.cpp:269
	#10 0x000055775c4accdb in UnitWSD::invokeTest (this=0x55775cc0fe80) at ./common/Unit.hpp:318
	#11 0x000055775c4a38cd in COOLWSD::innerMain (this=0x7ffd34248650) at wsd/COOLWSD.cpp:5459
	#12 0x000055775c4a59db in COOLWSD::main (this=<optimized out>) at wsd/COOLWSD.cpp:5706
	#13 0x00007f6753ab0877 in Poco::Util::Application::run() () from /lib/libPocoUtil.so.80
	#14 0x000055775c48316c in main (argc=14, argv=0x7ffd34248898) at wsd/COOLWSD.cpp:5845

Change-Id: If6162690462719f14a35241604f8a59b38a806c0
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
ed6254ac36 wsd: test: capture the original test result
Change-Id: I7818bdac0350a1afce81266093cce32d9796bba8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
6c697b0cfd wsd: test: convert TestResult to STATE_ENUM
Change-Id: Ic1a7a24e35edd7a403fabe6be040b7e28b12eb79
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
397d41a00b wsd: test: remove returnValue overrides
These only served to delete the Unit singletons,
but since we have GlobalArray, deleting them
isn't needed.

Change-Id: Ia2e53a1e3b43707196f45c06c38c6bb664c18e29
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
f6301194ae wsd: test: add endTest to clean-up tests
Change-Id: I6d97471a5ab60682da8f01675cddbd766a2c0ba9
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
a89ed3b535 wsd: test: correctly capture UnitBase in WebSocketHandler
The UnitBase reference must be a member of the class.

Change-Id: Ia0b10ccb7f0f3419470f014a23c7a48d3b390239
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
92ccdcdeb8 wsd: test: wakeup world when starting a new test
This is needed so we stop the DocBroker of
the old test, which is now finished.

Change-Id: I05df85fbbeca254928cd9a140198e7f4ae89fec8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:55 -05:00
Ashod Nakashian
b507d5bb08 wsd: pass ClientSession to checkAndUploadToStorage
And to handleSaveResponse.

Change-Id: I01d7bc0424df7f1b4998d9698cdfcadbaaabc704
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:28 -05:00
Ashod Nakashian
68beb87b7b wsd: pass ClientSession to disconnectSessionInternal
And simplify the logic.

Change-Id: I71dfc447f2ee35b7ab54e23a9ab6db4faa463444
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:28 -05:00
Ashod Nakashian
57b0a50d18 wsd: pass ClientSession to finalRemoveSession
Change-Id: I31e34c004dd54ab8f5f942a03bdd23be88e43335
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-11-30 05:14:28 -05:00
Aron Budea
4ba2c20997 browser: adjust print/PDF export settings
- don't print to PDF forms, it's unnecessary, and buggy at the moment,
- don't print/export comments as notes, they aren't relevant.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I511940f1a97e1c4a6ed6afb87165c9854df56b78
2022-11-30 08:24:03 +01:00
Pedro Pinto Silva
81f65509a2 JSSidebar: fix no vertical space by adding row gap
This also allow for one single shared place to have that
"margin"

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iac46810ac4ef219a4103bc315722dbd95e6fd169
2022-11-29 19:50:08 +01:00
Gökay Şatır
8bcdc9d975 Enable developer console for webkit debugging.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I544abda3744fc5415a4dfd935e0df864c5765ca3
2022-11-29 17:50:11 +03:00
Pedro Pinto Silva
f142a28468 Remove outdated vex hyperlink warn popup related css
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I04eb48bb14d31dcb53141d245bb61fd5420a61d2
2022-11-29 15:11:38 +01:00
Pedro Pinto Silva
d6ddae75b2 JSSsidebar: Fix ui-image alignment and size
We can set those so, the total size is 28px (same as the
grid cell) while keeping svg 16px size this in turn centers
the icon within its parent

Also we can then use the same 5px (that we use for normal button
margin) for the column-gap so everything aligns well

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib13a376fe71e308f9146c291acfbe3a941a4ef57
2022-11-29 12:56:39 +01:00