In some cases we cannot do a fast bind-mount of the files we want
in our jail since we don't have cap_sys_admin for loolmount inside
eg. docker.
Thus we need to fallback to hard-linking, however various security
systems namespace parts of our tree, such that link() fails with
EXDEV even across the (apparently) same file-system.
As such we need to assemble a copy of what we want to hard-link
close to our jails. However, this needs to be owned by root / the
system to avoid having writable files shared between jails. Hence
we need cap_chown in addition to cap_fowner, to get ownership right
and then hard-link.
Change-Id: Iba0ef46ddbc1c03f3dc7177bc1ec1755624135db
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
'bytes' can be smaller than the size of the buffer, so go with that size
instead.
Change-Id: I025b56379ee449fe33710b660d845fa2dd0865ee
Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Before loading the document and if it has an embedded
macros, it will show the "Macro Security Warning"
message dialog.
If the input process is not enabled, the result will be
a virtual deadlock, so it should filter some messages at least.
Change-Id: I565569a0227ac0e7ce2feae2cf3ccdf21ce4b1d4
Signed-off-by: Henry Castro <hcastro@collabora.com>
When the "Macro Security Warning" message is received,
there are no instances of the document layer yet,
because the server does not have an instance for Model/View/Conroller.
Change-Id: I1ac36fb1553d8bd3ed48b86e75bf32d1b12d1d86
Signed-off-by: Henry Castro <hcastro@collabora.com>
...which is rounded to the allowed set of zooms hence reduce the view
jump after map's zoom is set. There is still a jump depending on the
position of the pinch center on the screen. This is because on setting
the zoom in Map, it repositions the center such that pinch center is now
the center of the screen.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2a79240373f333b96574b7fe5c2b18de7dec612e
so that zoom animation works for writer and impress as well. In case of
impress/writer the core-pixel coordinates can be negative, so make
"extendedPane" be 3 tiles biggger in all directions in such a case.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iab836ea963c117ec26a7648e5ff37c0b625b3b4d
The incorrect offset is present since
db887df4aba500062827bad484ba3aacfe262339
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3089a00cf297762b5280e841680590f65d2c73a4
This also fixes slowness in Calc's swipe/pan animation because of
oversized main canvas and offscreen canvases.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If451f49fd99fb11207a2f4862daa37d9f3f02477
Currently translated at 95.0% (346 of 364 strings)
Co-authored-by: george k <norhorn@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20b604f8781f1491ad255bcf6f5f3e54a62d4895
Currently translated at 100.0% (5 of 5 strings)
Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/sl/
Translation: Collabora Online/CODE welcome text
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib1483e725bcd3af23367dee5c6bebc9a760c1740
Currently translated at 43.9% (47 of 107 strings)
Translated using Weblate (Japanese)
Currently translated at 52.7% (220 of 417 strings)
Translated using Weblate (Japanese)
Currently translated at 63.1% (230 of 364 strings)
Translated using Weblate (Japanese)
Currently translated at 60.9% (222 of 364 strings)
Translated using Weblate (Japanese)
Currently translated at 28.0% (30 of 107 strings)
Co-authored-by: 日陰のコスモス <baffclan@yahoo.co.jp>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I573cace9c336d81204614c1789b08ef1688c42c1
this icon was added to writer but was missing in impress and calc
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I032f5430cd96cc66501aa813df2dd06f6aa4d7a6
View also jumps with cursor movement, so we can't be
sure that the vertical/horizontal pozition actually
increase / decrease. Better to test only that the position
was changed.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I2358348c3f6d4f2278eff4e2db4a8409bc86b25a
this caused problem in mobile while adding comments
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8923fdec4b09a6d7c8c8bc6f248d1ca671fd252c
Test code needs an update because .should('not.be.visible')
does not pass on non existing elements anymore.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: If8a89d2996d154d287672dacb3668ec5399d99f2
problem:
creating an additional container for frames causes problem in wizard
while trying to go level up because changing level depends upon
finding the sibling of the current not and making them visible or invisible
having extra container breaks this relation
in addition not creating an additional container does not affect anything visually
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I5f6342febcf444c71eef964da5585e5f73ae367e
Most C and Posix API clobber errno. By failing to save
it immediately after invoking an API we risk simply
reporting the result of an arbitrary subsequent API call.
This adds LOG_SYS_ERRNO to take errno explicitly.
This is necessary because sometimes logging is not done
immediately after calling the function for which we
want to report errno. Similarly, log macros that log
errno need to save errno before calling any functions.
This is necessary as the argements might contain calls
that clobber errno.
This also converts some LOG_SYS entries to LOG_ERR
because there can be no relevant errno in that context
(f.e. in a catch clause).
A couple of LOG_ macros have been folded into others,
reducing redundancy.
Finally, both of these log macros append errno to the
log message, so there is little point in ending the
messages with a period.
Change-Id: Iecc656f67115fec78b65cad4e7c17a17623ecf43
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
problem:
undoing something on mobile does not trigger any input method
this causes problem in mobile working with suggestions
i.e: type "than" and then select "thank" from suggestion
now undo and then again select "thanks" from suggestions
final output is "thans"
this happens because undo doesn't change the textArea value
and no other way to maintain the history
So better to clean the textarea so no suggestions appear
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Idfdfd8acfa6d738bf695a473610d399b123e7019
fatal error: test/lokassert.hpp: No such file or dire
ctory
17 | #include <test/lokassert.hpp>
Change-Id: I935cc4e0afd6862469d27b3d2620dfa83e38ef69
Signed-off-by: Henry Castro <hcastro@collabora.com>
The text message in the WS Close Frame is optional.
Here we actually copy the remaining data after parsing
the status code, not assuming it exists or that the
status code was exactly 2 bytes (although in a well-
behaving WS implementation it always will be 2 bytes).
Also, no good reason to wait a full second between
socket reads in getErrorCode. However a small sleep
seems sensible to avoid logging "got 0 bytes" or so.
Change-Id: I162dfb0dd3ebf615a3e8e237006883388b9ff494
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Reading the messages using a different helper means
we may miss (=consume without checking) the close frame.
Change-Id: I93a529723ba8d2b516319d54496c56c7e6d7da27
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This adds proper phases instead of arbitrary
sleeping and similar workarounds. Also,
each phase documents what it expects, so
debugging failures are now self-explanatory.
Change-Id: Id51f4c285c5cf98aceba3415f0ffe14bd7605acc
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>