Commit graph

22881 commits

Author SHA1 Message Date
Szymon Kłos
7216290881 es2015: eslint: CStyleData is defined but never used
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0027ac6fb9bfecb47d07c55e8eebbca0e363f9cc
2024-02-09 12:14:19 +01:00
Szymon Kłos
f7482d806e es2015: bump eslint version
- allow ES2015 in JS

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2f0f17d6fbb49d8205d9825f0bdf74b3076afacc
2024-02-09 12:14:19 +01:00
Ashod Nakashian
d3905698b0 wsd: detect unencoded WOPISrc
We should always have an encoded WOPISrc.
We add detection logic to make sure
that all URIs that contain WOPISrc have
it encoded properly. We do this by
comparing the decoded WOPISrc with
the original URI.

Change-Id: Ia0c2a79b009ce105321ad35db3d4f81006e81cb3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-02-09 03:57:04 -05:00
Gökay Şatır
a809541878 Introduce redlinedDeletion type for comments.
When a comment is deleted while tracking is on, we need to show it if showChanges is also on.
This PR improves the handling of tracked changes for comments.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I2f6956fa18504995f91e6e1c0fa3d633f4317f5c
2024-02-09 12:52:19 +05:30
Neil Guertin
d1822e4298 Cypress test logging improvements
Print full test name in beforeEach and afterEach
Hide xhr requests
Hide repeated actual and expected values on passed assertions
Add information to failure message

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ic1a20481c05afb05b9c29d0bd428b59615d49dc7
2024-02-08 11:55:06 -05:00
Patrick Luby
3bbedaac01 Add iOS build file to .gitignore
Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: Iaac1714a7427b2aaa0998b75e7f377149ed2e43c
2024-02-08 16:19:47 +01:00
Pranam Lashkari
6ec5056ffd annotation: scroll sheet if comments are not fully in view on hovering
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I3c5a3267947e0dfc8f53663ccdc7032ebd1819c3
2024-02-08 17:33:31 +05:30
Skyler Grey
7658c3f774 Fix video position in safari presentation mode
237d9c084a fixed videos rendering in the
wrong place on Safari (and all iOS browsers) in edit mode.
Unfortunately, it made the oversight of missing presentation mode, which
gets its SVGs from a completely different place 🤦.

This commit fixes presentation mode.

After this commit, you will see the video in the right place. Please
note that the white border present in edit mode is not there in
presentation mode, so if you line the video edge up with something in
the presentation you may think the video is offset: I suggest lining
something in the video up rather than the edge of the video object.

Known caveats:
- This commit seems to be a few pixels off with larger border sizes.
  It's a lot better than before, but still not perfect

This commit does not include detection for the upcoming Layer-Based SVG
engine <https://wpewebkit.org/blog/05-new-svg-engine.html>. This means
that this commit will *break* video if this is enabled in Safari debug
mode.  If this commit is merged as-is we need to make a followup to fix
this as soon as possible or we will end up with a similar-but-opposite
bug when that flag is toggled on by default.

Follow-up-to: I205e692e7027ad917bd6f29aa96b0ac70a4c9e04
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ifeea18874d189c80cbb96029706a6f71d6125898
2024-02-08 11:22:10 +00:00
Darshan-upadhyay1110
1ffc8745f3 Add visual hint for freeze pane Lines
- added row/col divider with a transparent gradient over the area where cells are concealed
- shadow color will change accroding to UI theme (Dark/Light)
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I3fe6f3b35ec84cda5d93fe9a094765cfb75b906c
2024-02-08 09:58:54 +01:00
Caolán McNamara
64a4dab516 we never have an empty std::unique_ptr for .second
and don't check for it in the other cases, so drop it in these ones

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie343178869cadc127ee898968fef8f798b6068d5
2024-02-08 08:51:46 +01:00
Caolán McNamara
95c98805a0 cid#336284 COPY_INSTEAD_OF_MOVE
and

cid#336290 COPY_INSTEAD_OF_MOVE
cid#336288 COPY_INSTEAD_OF_MOVE
cid#336282 COPY_INSTEAD_OF_MOVE
cid#318980 COPY_INSTEAD_OF_MOVE
cid#318853 COPY_INSTEAD_OF_MOVE

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Icf6447b8298432359ec37242427ce595f8de4160
2024-02-08 08:49:26 +01:00
Miklos Vajna
944491024f cypress, desktop/writer/top_toolbar_spec.js, 'Insert Special Character.': add conditional 3rd click
My local run failed in this test, because scrolling to the right just
twice resulted in a partially clicked toolbar item, so:

cy.cGet('#Home-container .unospan-CharmapControl').click();

failed. Force the clicking so a half-visible toolbar item also gets the
click.

An alternative would be to add a 3rd click if scrolling to the right is
still possible, but that looks less clean.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I4caa3dc79df1bbbd5bd0c7e88ef1baea8ae4b17e
2024-02-08 08:25:55 +01:00
Michael Meeks
7387d9cc04 Reduce noise of somewhat excessive trace debug.
Given the surrounding debug we should be able infer the same
state from its absence.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Id20de40f67ed52dc5535585aec9b5888131d6324
2024-02-07 21:17:48 +00:00
Caolán McNamara
d8041e9516 use a path name unrelated to the parent dir name
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I622bc1569c775c57d7f268a063195706bb12be7b
2024-02-07 20:34:51 +00:00
Andras Timar
fd6eabf976 Bump version to 24.04.0.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id4b4f65772cab6ebeea6843044b8bdc3be5f07f7
2024-02-07 20:44:51 +01:00
Neil Guertin
4312908312 Add automated user tool to insert rows/columns
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I4f0e39784e82ce332b344f71456ac90bbd92a7d6
2024-02-07 17:29:04 +00:00
Neil Guertin
724698adaa Clarify Automated User menu
Move Typer and Randomize User Settings to "Functionality" menu
Rename main toggle to "Enable"

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I75709124f835c46ae741c4d51e14ed0b868528ae
2024-02-07 17:24:56 +00:00
Michael Meeks
720ac3d5a6 check: perform simple & quick eslint check before others.
Should save time in CI for simple JS errors.

Change-Id: Ib7e1ab68795cab12f8f5ec461cfed6e84986f440
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-02-07 17:13:48 +00:00
Michael Meeks
6c9fb23081 refactor: inline CRS.Simple into CRS.
Cleanup un-used wrapping.

Change-Id: I510f8244e51f2d6f56fdb0aee4046ebfd894c9e1
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-02-07 17:13:48 +00:00
Michael Meeks
a30df0f583 js: remove obsolete CRS.Earth references.
Change-Id: I3c5a25bd3ff1ee7af01c6190244400ec8d68e47c
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-02-07 17:13:48 +00:00
Miklos Vajna
c41cfb1999 test: fix -Werror,-Winconsistent-missing-override in WhiteBoxTests
WhiteBoxTests.cpp:660:10: error: 'updateActivityHeader' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
    void updateActivityHeader() const
         ^
../kit/ChildSession.hpp:89:18: note: overridden virtual function is here
    virtual void updateActivityHeader() const = 0;
                 ^

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I12f21fd9fbe0ba77d2196bfcd1cbdb5ef07e5d06
2024-02-07 15:10:07 +00:00
Neil Guertin
090a52cece Remove cSetLevel (unused)
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ic1eaae123ae70f5f09553d6c69bfa699a02a921f
2024-02-07 07:16:37 -05:00
codewithvk
43db77e66d Add loading indicator for document title saving
To address the lack of visual feedback during the delayed saving of document titles, a loading bar has been introduced below the document name/title input field. This provides users with a clear indication of the ongoing save operation. Additionally, the delay that previously occurred after entering a new document name and pressing Enter has been eliminated, streamlining the save process.

Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: I9c5a41f999d02dcfaa24e7925029499cf310b2e0
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
2024-02-07 13:09:13 +01:00
Neil Guertin
e3714480f4 Adjust zoom limits for random user
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Id6ba3e351214f9bd2676b4935baa8105646d12c0
2024-02-07 11:38:54 +00:00
Hubert Figuière
adbe12783f Fix warning for unocommands.py
This resolves the following Python warning.
unocommands.py:319: SyntaxWarning: invalid escape sequence '\('
  f.write('''};

Also make sure the output depends on the script

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I11f1e028c9c132f4afc66f9b5a6137b478f00774
2024-02-06 17:50:09 -05:00
Michael Meeks
29fa4a40a1 signal activity dumping: enrich with session details and state.
Cue up some basic state for being signal safe dumped on crash/abort.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ibc6713aef2a0e7b878b178b05f0e13c8d40b47fc
2024-02-06 19:29:28 +00:00
Neil Guertin
d209ec78cc Upgrade to Cypress 13
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I8edbcbb72e1ad016df0ff6a2466d20865f517683
2024-02-06 10:05:11 -04:00
Méven Car
5df8a3eeb9 browser: CanvasSectionContainer initialize boundsList
Also move its declaration to the top of the class section with other
class members.

Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I506423078423074171ab00efb6f2d3fab0c68796
2024-02-06 13:20:33 +01:00
Szymon Kłos
d0e2bdc8db Fix error on clipboard download fail
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If2ea2bb7b756812cffa2125eff54b6526af6b79b
2024-02-06 10:59:50 +01:00
Szymon Kłos
e0fbea717a Use encoded WOPISrc in ws requests
This is an issue if we use encoded and decoded WOPISrc for the
same document when using load balancers like HAProxy. It should
be always encoded.

What we did:

cool.html:
http://haproxy.local:9980/browser/2a43eb3236/cool.html?WOPISrc=http%3A%2F%2Fsomewopisrcfileaddress&title=title

ws:
ws://haproxy.local:9980/cool/http%3A%2F%2Fsomewopisrcfileaddress/ws?WOPISrc=http://somewopisrcfileaddress&compat=/ws

These 2 were redirected to different nodes when balancing
was done based on WOPISrc

This is regression from commit a722687c11
browser: simplify getParameterByName

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I17f0c4551404cece0bb995205459f2b38e860795
2024-02-06 10:59:50 +01:00
Ashod Nakashian
c1ced10f17 wsd: no need to create existing mount-point
The mount-point must exist already, since
we always mount read-only. There is no
directory to create, but the subsequent
chmod always fails, since the mounted
directory is read-only. Since we started
warning when chmod fails recently,
6208b37a32,
these previously-silent failures became
noisy.

Change-Id: I9efaa89182c016e9a7a5d36cc3da5bfa7ee599c2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-02-05 16:47:08 +00:00
Ashod Nakashian
398cf7bc82 killpoco: move own logging out of experimental
This enables our own logging (much faster)
out of the experimental flag and enables
permanently.

Not for backporting.

Change-Id: I15161ff4f82a2e298942f81f35aea305bb06f683
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-02-05 16:47:08 +00:00
Ashod Nakashian
3d4efc0030 wsd: header clean up and SPDX license
Change-Id: I6e75b9a6d5ddd192bef18f637ef9c3d5548d9c88
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-02-05 16:47:08 +00:00
Caolán McNamara
f04d3450cd rng::getHardRandomHexString is now the same impl as rng::getHexString
so remove one in favor of the other

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I47778f7bce24f0687565aa179b7a3bbea9d95120
2024-02-05 16:19:38 +00:00
Skyler Grey
3922137e27 Hide exportpdf command in the android app
Curently, the exportpdf command hangs in the android app. A fix is in
progress, but as a stopgap solution disabling the command will avoid
people getting stuck

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ied74c3f1fa57356542f3f71e1becbae81f5af7fc
2024-02-05 10:59:50 +00:00
Ashod Nakashian
6174fc3098 wsd: rescue the clipboard before autosaving on unload
This moves the clipboard resque logic earlier to
make sure it is cached before the Kit process
exits.

By putting the clipboard-fetching command before
the save-before-exit, we should get the clipboard
in most-all cases. There are still edge-cases
that can slip through, but they should be much
less frequent, and they will require much more
involved logic (tbd).

Change-Id: I0eff95c28524002a6131fa0a57ef8e09ae21ca59
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-02-05 11:52:02 +01:00
Navid Sassan
f1415b6c3e fix the coolwsd.service being disabled after updates (#3125, #7606)
Signed-off-by: Navid Sassan <navid.sassan@linuxfabrik.ch>
Change-Id: I3bd50075f3f18251425527f5debf60bed26cc2d3
2024-02-03 18:48:39 +01:00
Navid Sassan
4cb6344f26 fix error in RPM postinstall scriptlet on RHEL8 (#7071)
Signed-off-by: Navid Sassan <navid.sassan@linuxfabrik.ch>
Change-Id: Ia022c46e7ada12e6e07b2da95e3cdccc026609cc
2024-02-03 18:48:11 +01:00
Neil Guertin
b69642e9fb Remove waits from cypress tests
Remove most calls to cy.wait(), reduce and comment the rest.
Stub waitUntilIdle and clickOnIdle
Fix many failing tests
Reduce total cypress runtime by 45%

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I62ddfdcbc3ab107654459ebece2d325eca0c6156
2024-02-02 17:05:40 -05:00
Pranam Lashkari
36004ad1bb Calc: Selecting columns by dragging mouse deselect the first column
problem:
drag selection starting from the first row or column would result in first col or row being unselected.
It was caused by index being 0 resulting in condition being false

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I3619f52ccc7fdb2883af547f1c907c07ef27ddf9
2024-02-02 15:34:46 +05:30
Andras Timar
d41638ff9b Update Helm Chart with new release 23.05.8.4
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I60134cca4ae3a62fdc2fcf23e43a629034188496
2024-02-02 12:06:03 +05:30
Andras Timar
f4e8cba302 Bump version to 23.05.8.4
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I01fce60d8314700902fe83370b9a3276cd7958d1
2024-02-01 16:15:59 +01:00
Besnik Bleta
ecce3604f7 Translated using Weblate (Albanian)
Currently translated at 29.1% (136 of 467 strings)

Translated using Weblate (Albanian)

Currently translated at 97.2% (557 of 573 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sq/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0349b5a79a6454e8a4ea173bf37479814947ea9d
2024-02-01 15:53:55 +01:00
Pedro Pinto Silva
939d3d2072 Avatar list: set Unknown user avatar with 0 margin, fix alignment
It seems when users are unknown we can get a different JSON bject:
Object { ViewId: "8", UserName: "Unknown", Color: 13013504, … }

This is then flagged and set as a different (from the identified
avatars) html element in createAvatar from Control.UserList.js

Better to fix the alignment via CSS

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I94fee62ae14bb47c6f989b4e0bb147f8ffc9ff39
2024-02-01 14:55:58 +01:00
Pedro Pinto Silva
8f97c50869 Calc: sidebar: Hide Styles dialog button
This button does nothing (Sidebar: Style: dialog button [square with arrow])
   - There is no paragraph style dialog in calc
   - The style sidebar pane visible on core side is not implemented in
   online

Better to hide it for now.

Fixes https://github.com/CollaboraOnline/online/issues/8135

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I62db3ec6466782a9dc2cb89deffec8023851de2d
2024-02-01 12:58:49 +01:00
Caolán McNamara
5432562801 getTempFileCopyPath is only used by tests so move to test-only code
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I7c8a122425c689edb3eeb8c80e08470eac347bcc
2024-02-01 10:01:08 +00:00
Aron Budea
81d743281a Capture this explicitely by name
To avoid the following warning in C++20:
error: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Werror=deprecated]

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I8b195d675ddc87fa6b16f7240a046fac9a7769e1
2024-02-01 08:30:30 +01:00
Michael Meeks
9ff5c5bce6 randomness: abort if we can't get randomness, with a message.
Avoid using LOG_TRC etc. during static initializers before logging
is setup:

 #0  0x00007ffff7362183 in std::string::size() const () from /lib64/libstdc++.so.6
 #1  0x00000000007d1acc in std::operator==<char> (__lhs="", __rhs=<error reading variable: Cannot access memory at address 0xffffffffffffffe8>)
     at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/basic_string.h:3586
 #2  0x00000000008fdc04 in Poco::Logger::unsafeGet (name="") at src/Logger.cpp:289
 #3  0x00000000008fdb81 in Poco::Logger::get (name="") at src/Logger.cpp:280
 #4  0x000000000066a30f in Log::logger () at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/new_allocator.h:90
 #5  0x0000000000692f8e in Util::rng::getBytes (length=16) at ../common/Util.cpp:122
 #6  0x0000000000693312 in Util::rng::getSeed () at ../common/Util.cpp:91
 #7  0x000000000044f987 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ../common/Log.hpp:87

Change-Id: I6a32a0d3f50a8e769994737d4c09befe11599b4e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-31 20:13:19 +00:00
Andras Timar
165ebe51e8 Bump version to 23.05.8.3
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9c897a2fb34aa056b8e7143138d78ab1856b2218
2024-01-31 21:11:12 +01:00
Michael Meeks
b627777b13 Remove trendy C++ & Poco wrappers for random numbers.
And improve quality of low-grade random numbers significantly.
_rd.entropy() ? is not your friend.

Change-Id: I477557245949334bec517cdeae653c7452ed2049
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-31 16:28:15 +00:00