Commit graph

22160 commits

Author SHA1 Message Date
Szymon Kłos
181cb7fe78 Fix media request error
It fixes richdocumentscode case when trying to request media:
[ websrv_poll ] ERR  #-1: Failed to open file [.../9a2gf9.ogg] for uploading| net/HttpRequest.hpp:1603

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia326f46a4a1aae28dbf03519ca88c03f499c281c
2023-10-20 11:40:07 +02:00
Caolán McNamara
6c67b072fa cid#318855 Unchecked return value from library
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I9572414e3cfc8426ca6b25872231470f072c5aad
2023-10-20 08:25:07 +02:00
Caolán McNamara
df1cb7164c cid#318873 don't pass object by const reference
Poco::JSON::Object::Ptr anonObject(object) is effectively a
const_cast and the comment in the header warns that object
may be modified, so just pass it by non-const and drop the cast
and merge the resulting duplicate stringify call

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I9701ae95ff991b0dece854f295ba76ac9b3c2fa5
2023-10-20 08:25:07 +02:00
Gülşah Köse
81c2f16302 coolwsd.xml.in: Add possibility to disable overwrite mode
It seems large groups of people don't have a use for overwrite mode
- Would like to avoid enable it by default

This is just the first step on improving the user experience here.

------

The whole plan would be to:
- 1st Follow up PR
  - Where we disable the overwrite mode when enableExperimental is true
  this we will be able to see if community likes that change or not before making it everywhere
- Other possible improvements
  - Triger a snackbar for the first time the user press the Insert key
    - If the feature is disabled we would show snackbar with timeout
      "Overwrite is disabled. Please contact admin."[Dismiss]
    - If the feature is enabled we would show snackbar with timeout
      "Overwrite mode is now enabled" [Disable] (Disable here means the same action as pressing again the **Insert** does)

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I060b3d2d9d1e7e29a18f5ea1d619c9349eae67c3
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2023-10-20 06:39:18 +02:00
Caolán McNamara
7d37ba6a41 we can remove this unconditional wait by conditionally waiting for enabled state
on the table toolbar items

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Icb2ea52f95c32a8163d93a7fb772d60c932a1621
2023-10-19 17:16:45 +01:00
Caolán McNamara
9ae85964db use table-delete-rows-button instead of table-delete-rows
table-delete-rows-button is inside table-delete-rows so right not
it doesn't make a difference if table-delete-rows is clicked, but
in follow up we want to check if table-delete-rows-button is enabled
not table-delete-rows

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I7f21dd6a423192ba80791bc94bf63ff39d12f0c6
2023-10-19 17:16:45 +01:00
Attila Szűcs
fd49092e1c Added Icons to Manage Changed dialog
Not sure if all of them can be used now, but these 5 i tested:
insertion, deletion, cut, paste, format

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I4a6c974817d58455f01f106232c9baa66fe9d58c
2023-10-19 15:04:20 +02:00
Frankie McEyes
8fe1f0fe2c Translated using Weblate (Italian)
Currently translated at 97.7% (513 of 525 strings)

Co-authored-by: Frankie McEyes <mceyes@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/it/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I57bbb753644605e4f6b8afe841c2a1a0fe6a8668
2023-10-19 11:20:40 +02:00
Rysertio
3bb594020b Translated using Weblate (Bengali)
Currently translated at 8.5% (45 of 525 strings)

Co-authored-by: Rysertio <hortoki51@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/bn/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If525523fe7511a99921fdc81859721af59ca1b02
2023-10-19 11:20:40 +02:00
Martin Srebotnjak
871a2aabcf Translated using Weblate (Slovenian)
Currently translated at 100.0% (525 of 525 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: Ie4b262261f5bfe7aa90c8f81925eb22b44a63502
2023-10-19 11:20:40 +02:00
Yaron Shahrabani
fe6bc91609 Translated using Weblate (Hebrew)
Currently translated at 100.0% (525 of 525 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: If916882d717b0eaba96cb7cbfdbbe403868c35d1
2023-10-19 11:20:40 +02:00
Rob Pearson
5d2ad69d52 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (525 of 525 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: I11d64eb01c3c26ca7ee67c173f0fc64edbbcec14
2023-10-19 11:20:40 +02:00
Sebastiaan Veld
3450976df6 Translated using Weblate (Dutch)
Currently translated at 100.0% (467 of 467 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6361984ec444756f859ecf879c9e2bb217aba059
2023-10-19 11:20:40 +02:00
Ihor Hordiichuk
ff18c36b3a Translated using Weblate (Ukrainian)
Currently translated at 100.0% (525 of 525 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: Ibe42ae7af50b9ab3065396cb5c4e5c9e0b136555
2023-10-19 11:20:40 +02:00
Milo Ivir
a03e751e31 Translated using Weblate (Croatian)
Currently translated at 100.0% (525 of 525 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: I7e33a3c85fb8ae3f0844ced131edc2e56d6471fa
2023-10-19 11:20:40 +02:00
Andras Timar
bd3f197aa8 Bump version to 23.05.5.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I90ce9d6c8a59b8f498ef6fc11368eb1c6e170ca8
2023-10-19 11:19:50 +02:00
Szymon Kłos
5927fe1773 Avoid using undefine in custom button insertion
If postmessage to insert custom button will arrive
early before we initialized notebookbar it could
fail in insertion into compact mode toolbar due to
not existing toolbar.

This prevents us from that error. It will be not added
at the time of postmessage execution
but we remember all the custom buttons in special
array, so when UI will be initialized it will be added there.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07d86db49a50be70b0c091a66cf5e4be049211ce
2023-10-19 10:44:38 +02:00
Szymon Kłos
7df4101713 postmessage: add more logging for debugging issues
Without that integrator doesn't know what happened.
We were silently ignoring messages.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I897a95b343a1b436745816ccbef7656f30981112
2023-10-19 10:43:40 +02:00
Caolán McNamara
0ed831dfae restore TileCacheTests::testTileProcessed
with the original 25 expected results from 25 requests

from cid#318925 Structurally dead code

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I236876fadd5b5c82ecdbcc52a13fc58e8513aa12
2023-10-19 09:59:02 +02:00
Caolán McNamara
c4e973ee5e cid#318817 avoid Uncaught exception
and

cid#318819 Uncaught exception

take a reference in the COOLWSD/DocumentBroker ctor, so indicating it
exists before the calls in the COOLWSD/DocumentBroker dtor, and so the
Admin ctor doesn't throw during the COOLWSD/DocumentBroker dtor.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I8190cc3594a5f81fedd355aeadcca45e532bda90
2023-10-19 08:45:23 +02:00
Pranam Lashkari
31d207f520 UI: Prefill rename dialog with the current document name
resolves: #7468

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Icb6563f76cc0f9c7d81eac96fedc6e476dfdad46
2023-10-19 03:55:50 +07:00
Gökay Şatır
d5cda35530 Fixed the name of the new comment.
With this fix, user can open a new commen popup without closing a previous new comment popup.

Without this, a new comment section lingers at the background and new comment command fails until user refreshes page.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If7f151eb11d3f5d26dae2ca6331eb5dc0dfd9881
2023-10-18 18:38:08 +03:00
Cosmin Humeniuc
7dae294a71 Avoid logging messages when anonymization is on
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: I5bcf615521d13758b2b70a0c9466a3bbc1a0a918
2023-10-18 16:22:31 +01:00
Caolán McNamara
53d84b4382 raise quarantine logging to WRN and include more information
scraping the logs with:

if line.find('Backtrace ') != -1:
    pid = re.findall(r'Backtrace ([0-9]+?) -', line)
    if pid:
        for file in os.listdir("/opt/cool/quarantine"):
            if file.find(pid[0]) != -1:
                ...

shows an unexpected lack of hits

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I63b5e62a5d46627146763cb0f847b976017f6c4b
2023-10-18 16:55:53 +02:00
Darshan-upadhyay1110
9c994882f1 Fix Format Cell broken with custom text
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I27cf86972e70d956b9005fc1ea0b65a622e898d7
2023-10-18 17:08:28 +05:30
Darshan-upadhyay1110
90cfa44b55 Fix spinfield doesn't adjust the value
- Condition modified for getPrecision.
    - it was not handling the cases for dot value less then 0.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I740f86e9477656d371ba3b8793bff99671444d7c
2023-10-18 17:08:06 +05:30
Szymon Kłos
707a577c56 jsdialog: make mobile border style control compatible
- jsdialog requires to create in the handler single root node
  with id of the widget
- remove old style update by _refreshSidebar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8ce6e832b2d27d25f54e9bf636572b8c97d3a7c1
2023-10-18 12:17:48 +02:00
Gökay Şatır
6ecdcf557b Fix JS error on translations.
queryselectorall('something').queryselectorall('something else') fails.

^ This JS error is fixed.

Also we don't have specific images for German help page. So we removed the "de" from that language list.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I69b56e8f4bd2b92835c4aca9c2284750f3df9455
2023-10-18 12:50:37 +03:00
Szymon Kłos
bde5ee533f Enable duplicate checker
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If08ceb5dd6ca83b6c1bd5e8bd1d8028a61f4296f
2023-10-18 11:47:02 +02:00
Rash419
20f1429896 browser: fix white document background on reconnect with darkmode
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic853ba5108a1f6f9db2a7f8ab5310fe77357b07c
2023-10-18 14:00:03 +05:30
Szymon Kłos
f78fed8165 notebookbar: we use core widgets in all apps
for font selector and font size...
this makes us sure we initialize everything in Impress and Draw
too in case of reconnect

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67ee15f470fa43965f6fbd91ae45cd330ea449aa
2023-10-18 13:52:16 +05:30
Szymon Kłos
f861ac7056 notebookbar: encapsulate _isNotebookbarLoadedOnCore
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3328b7bcc5036ed81dc757398dfabe71ba861044
2023-10-18 13:52:16 +05:30
Caolán McNamara
5acb4138e3 cid#318873 silence bogus Double free
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie4b0753e305f2232673837bcf7a376ad7622c120
2023-10-18 08:31:41 +02:00
Caolán McNamara
acbea27acf cid#318979 Big parameter passed by value
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Iae9f67cf8bd71d8df51409e91606c68b51244ac2
2023-10-18 08:31:41 +02:00
Caolán McNamara
d52dc848bb cid318968 Calling risky function
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I81717e28f64cfe70a598363ca4723b177209d99f
2023-10-18 08:31:41 +02:00
Caolán McNamara
f86d894eb1 cid#318862 Dereference after null check
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Idf2a678a56531b7e3c3a51f6e86582bb9ac69dc7
2023-10-18 08:31:41 +02:00
Pranam Lashkari
93b5bdfd79 feature-locking: send lock/restriction status from client session
problem:
earlier restriction/lock status was sent to kit via browser,
now client session send this status directily to the kit.
this design will require less communication between server and browser

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6b830f30fb326a5e6637e345250893cbba101de6
2023-10-18 03:05:40 +07:00
Caolán McNamara
395d6c9f12 Assertion in DocumentBroker::sendRequestedTiles fails on running cypress impress tests
make -C cypress_test check-desktop

asserts seen in cypress_test/cypress/wsd_logs/coolwsd_output.log of:

coolwsd: wsd/DocumentBroker.cpp:3134: void DocumentBroker::sendTileCombine(const TileCombined&): Assertion `!newTileCombined.hasDuplicates()' failed.

If we check for, and don't reuse, an old request with a different
NormalizedViewId then we could end up with multiple requests with
different NormalizedViewIds that end up in the same final tilecombine.

similarly there was no check for different modes ending up in the
same tilecombine.

just split out the logic we have to see if two tiles have the same
properties that appear as a shared set of properties for tilecombine
and use that in the two relevant places.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ieb2ee0e85f124dd57c6b050e5b669dd808cf6bbf
2023-10-17 17:05:24 +01:00
Rash419
bb246318fe helm: update appVersion
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iac2823f4055f4489555b28e989f31be1f23f14e7
2023-10-17 19:28:10 +05:30
Rash419
40d97df58e k8s: update readme
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I5c145bc2c5b718266caa40f9177e0b0591ab3522
2023-10-17 19:02:52 +05:30
Szymon Kłos
0b2b048620 jsdialog: fix error in frame label getter
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idbdb8bc8b895e800450b0f8b7b4b564627c99890
2023-10-17 16:30:23 +03:00
Szymon Kłos
9730d473b5 jsdialog: avoid error when container is missing
TypeError was noticed where container was undefined.
This was case where snackbar was closed.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id465723e01bc2cec2e20056103a918e53abf6d09
2023-10-17 16:30:23 +03:00
Pranam Lashkari
a373b6e121 annotation: make sure comment list is fetched correctly
problem:
this caused problem in autosaved comments,
when comment list is empty autosaved comments may be closed when focus is lost

partial fix: #7421
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1fc2d087828ce44495001f97b5323dffb8adb2ef
2023-10-17 18:25:03 +07:00
Rash419
11a0e78ed4 admin:log activities irrespective of logging.level
- It logs activities like when admin logged in, authenticated
  metrics endpoint accessed, external monitor getting connected
  and admin actions like kill the document etc

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I059f6b6ee0d8269aec7e3f521622773e348304a3
2023-10-17 14:57:10 +05:30
Caolán McNamara
7233bce6c2 cid#318978 silence Using invalid iterator
for coverity always assert even if a previous test was to fail

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ic48654d828a5311e043f412d9c30139e25b40262
2023-10-17 09:48:02 +02:00
Caolán McNamara
c6b0eebbf8 cid#329408 Unchecked return value from library
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id034ba2e1ca9d4d3d7f7722b929063cee2f7d4e3
2023-10-17 09:48:02 +02:00
AIlkiv
b2e87c4f45 Shortcuts for different keyboard layouts
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
Change-Id: I27d7478e234f06edbf53fd2cee6fd800230bcb0e
2023-10-17 09:36:36 +02:00
Gökay Şatır
d3d5bdf269 Hide the newly added comment.
Also add a check for failed attempts of new comments.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I50a9981cf51475d6008e936e6e28573156a8383a
2023-10-17 05:33:31 +07:00
Gökay Şatır
84cc6dc329 Add guard for applyDrawingOrders function.
It's required only for spreadsheets.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iae3694cca16cb51d4e3e9b20f3a337fd2e0a4c12
2023-10-17 05:33:31 +07:00
Marco Cecchetti
5680f3dc6e a11y: accessible description to describe how to turn on accessible mode
Set up accessible text through aria-description for describing how to
enable accessibility support for text content when it is disabled.

The description is reported by the screen reader on document load and
on explicit request to read current text content.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I439b7703c15d3b38c39181d27c11da438834c414
2023-10-16 19:09:54 +02:00