Commit graph

12598 commits

Author SHA1 Message Date
Jan Holesovsky
e4f801a594 Add also the pre-commit and post-merge hooks, they are useful too.
The pre-commit is a bit stripped down compared to the LibreOffice
master.

Change-Id: I162ec1007fa1db5bd8fca522d712db50dafaf998
2020-10-07 15:04:58 +02:00
Ashod Nakashian
08dc42bdaa wsd: log the exception message
Change-Id: Ie9b9cfe38645809c57cec40afbcccc1da87386e1
2020-10-07 08:50:23 -04:00
Ashod Nakashian
eb122ec0a0 wsd: allow URIs without access_header or access_token
URIs may or may not have authorization data specified
via access_header or access_token query parameters.

In the event that the host doesn't have such needs
(for example authrorization could be performed by
some other means), we should accept the request
and still go ahead and make the WOPI request
all the same.

This patch effectively reverts the changes from
a019c93d90 which threw
an exception when the authorization method was
undefined. Since there was an assertion to warn
programmers that something is amis, now we simply
log the fact in trace mode and move on.

A new unit-test is added and another one that
expected the now-removed exception has been modified.

Change-Id: I26cc2514d7465b344037a6e32b777c0fe0ba9a2c
2020-10-07 08:13:29 -04:00
Tamás Zolnai
9c9cbc72da cypress: add comment insertion test for desktop.
Change-Id: Id1ddd25bc4315a5023cbce0c52eadb8227b9eada
2020-10-07 14:12:56 +02:00
Tamás Zolnai
43e22a9a43 cypress: add a paragraph property test for desktop.
Change-Id: I3240846a976322103c20f09c380f3a0796ceee98
2020-10-07 14:12:56 +02:00
Tamás Zolnai
85291d9cfe cypress: add a top toolbar test for desktop.
Change-Id: Iff8ee5d737d66748e22000e8ae728cbb162cbef0
2020-10-07 14:12:56 +02:00
Yunus Bulut
e982a8665b Remove WebDAVStorage in Storage.hpp #111
Change-Id: Ic95b7354ed3448c0ae77cae338d8eb2bbc01e4e5
2020-10-07 14:55:26 +03:00
Yunus Bulut
35ad7d4265 Destroy WebDAVStorage and <webdav> section #169
Change-Id: I7ce095f722599a37b82e8789baeb6145028dd10d
2020-10-07 14:55:26 +03:00
Andras Timar
53f5e98ec3 Add BOM (Weblate needs it?)
Change-Id: Ia61c7bd23c43739303f02e2d36f13e333cf6a804
2020-10-07 13:43:36 +02:00
Miklos Vajna
9619517a10 git hooks: enable them automatically during 'make'
So one can't forget enabling them.

Change-Id: Icb595e9d0711227eaa6f11c1a9ff87f2c361e0bb
2020-10-07 12:54:47 +02:00
Andrea Gelmini
9d01540680 Fix typos
Change-Id: I7d487f32ca43e19023760ef3c6bb1683607f93d1
2020-10-07 12:51:08 +02:00
Andrea Gelmini
6e7f2a1f84 Remove executable bits on gif file
Change-Id: I2b7d10c26ab50f8154ab12047375d2dab5a24b22
2020-10-07 12:50:45 +02:00
Andrea Gelmini
42d835ca45 Fix typo in code
Change-Id: I363845df1aa0ad39ecf1e97838e6457475ecf512
2020-10-07 12:50:23 +02:00
Andrea Gelmini
b2360fec3a Removed duplicated include
Change-Id: Id6ba6e769b3c0ec5493ee32e2abbc00e441388ec
2020-10-07 12:48:04 +02:00
Andrea Gelmini
596b26c7d9 Fix typo in code
Change-Id: I0ef8fe7ff382d7cb295aa8054721448d9bf8e477
2020-10-07 12:46:37 +02:00
gokaysatir
41b04527f4 Online: Hide right clicked sheet. / Online side.
When user hides a sheet, it is hidden even if sheet is not the active one.

Change-Id: Iccedf8a7600da54556e5a6ff8fcfb8a5f7bba426
2020-10-07 10:21:17 +02:00
Pedro Pinto Silva
88ed22fe37 Desktop: Top menu: Fix contrast issues
on elements with .disabled class by increasing contrast ratio
from 1.6:1 to 5.5:1 (> WCAG AA)

Change-Id: I28b0de258657ec34db0f3251cffe32dc41bfd511
2020-10-07 10:17:40 +02:00
Pedro Pinto Silva
6abb99d18d Clipboard: add hidden label to textarea, make it visisble to screen readers
Change-Id: I6f135752f8eacfcd2c97cd56ffc9826e36657a89
2020-10-07 10:17:40 +02:00
Pedro Pinto Silva
2f046c0a36 Search input: add label, hide it but make sure screen readers see it
Change-Id: I22ec2d4221afe18b000480eb2edebc00aca1cf01
2020-10-07 10:17:40 +02:00
Pedro Pinto Silva
9b352038f2 Document name input: Add label, hide it but make sure screen readers can use it
Change-Id: I7f1d0c248829c61726f0083cfc6196fd20066c4c
2020-10-07 10:17:40 +02:00
Pedro Pinto Silva
573409c8f6 iFrame resize-detector: Fix screen reader error on non-readable content
* provide a title to indicate that it's on purpose left blank and to pass automated tests
* be sure to hide the content altogether from screen reader users using aria-hidden="true"

Change-Id: Ia86eded442777d695ef399fe4bee95ac89000549
2020-10-07 10:17:40 +02:00
Pedro Pinto Silva
f67e5f5710 Ruler: Fix lack of contrast, increase ratio
from 3.9:1 (WCAG A) to 5.5:1 (> WCAG AA)

Change-Id: Ifda6eb45d7319a717e2c1503c51dbc6f6e883c64
2020-10-07 10:17:40 +02:00
Muhammet Kara
0da5c3a2d6 Remove unused function setHelpTarget()
Change-Id: I9f3338c79de627befc5eac71f2418f1014b08eeb
2020-10-07 09:33:58 +03:00
Muhammet Kara
ff5ac284ba Remove unused function showHelp()
Change-Id: Ibbb8c09db0daf843f02e1f07dd32d3e8906ab33e
2020-10-07 09:33:58 +03:00
Henry Castro
5a401b1405 wsd: explicit decode URI
is it a POCO bug?
The implicit decode URI is not working
if a file is "test___á.pdf" <=> "test___%C3%A1.pdf"
getPath() returns "test___%C3%A1.pdf"

Change-Id: I79e2ec13cd5500d188a1657e47af03d29b151824
2020-10-06 16:38:44 -04:00
Miklos Vajna
a67a10d7e9 notifyirc: use the same separator in both cases
Change-Id: Id96e62f99ac6727a9992172d1365d35ad735f493
2020-10-06 11:28:08 +02:00
Miklos Vajna
d2d737a4cc notifyirc: ignore forks
A push to a downstream master is not interesting.

Change-Id: I277b69ff574648861e8297eac3ebbc0a93440f41
2020-10-06 10:01:41 +02:00
Miklos Vajna
909e6740ec notifyirc: add the URL of the commit, too
So that one can go there quickly.

Change-Id: If954f9843c2d94836e9575acb708bfeff2359e67
2020-10-06 10:00:34 +02:00
Tamás Zolnai
6a045f0321 cypress: test also 'minus' button of a spin field (mobile).
Change-Id: I22a2864060004a466c32e790075b879317f6b0fd
2020-10-06 08:59:42 +02:00
Tamás Zolnai
6400e1952a Remove duplicated else if branch.
This one is already handled earlier.

Change-Id: I1accf77f9627cdd4c2cea3709b2876c9c2d47337
2020-10-06 08:59:42 +02:00
Tamás Zolnai
a82c05e74b cypress: test new slide button on mobile.
Change-Id: I1484b0340585073b50db0e29ba4a565200aab138
2020-10-06 08:59:42 +02:00
Tamás Zolnai
cb62805479 Fix-up spelling context menu related code.
Some code was not actually hit because
$.inArray('.uno:SpellCheckIgnore', menuItem)
does nothing, since menuItem is not an array.
Broke since:
6fdad3ba94

It seems delaying spelling context menu is
not needed anymore, so we can remove that part.

Change-Id: I6cc96ee0f5b39d2090052fec29eae463285b3dfc
2020-10-06 08:59:42 +02:00
Tamás Zolnai
f0f3145e1a Remove unused code from MobileBottomBar.
We don't have shape / table insertion items on bottom
toolbar for mobile. It must be the desktop related code
that was copy&pasted here.

Change-Id: I6af47392b4784d5ac61553e57430f493471c835c
2020-10-06 08:59:42 +02:00
Tamás Zolnai
72159072ae Reduce scope of _id inside ColorPicker code.
This ID is not used anywhere else, so we can have it
as a local variable.

Change-Id: I096eeeb26778485cff406364f711e0dd0256164d
2020-10-06 08:59:42 +02:00
Tamás Zolnai
3b8a4d252d Remove unused getSelectedColor() method.
Change-Id: I398fe8003d20ba236191abd0b95f718d91f0b0b8
2020-10-06 08:59:42 +02:00
Tamás Zolnai
a49c175504 cypress: test setting automatic color on mobile wizard.
Change-Id: I31854980ae1dc3065f297b80d3287aa1fae999b6
2020-10-06 08:59:42 +02:00
Henry Castro
b277c9dac5 test: check for non ASCII file name if convert-to
The unit test is extended to check the response status
when the API convert-to is used.

use case file name: "test___á.txt"

Change-Id: I7b18dde01f7d44251e7c584a5348dd1228d6e420
2020-10-05 10:59:53 -04:00
Miklos Vajna
0097c690c7 notifyirc: write 1 line / pushed commit
And be silent about tags, just to keep things simple.

Change-Id: I7cfe4efe8b82f84cf490ada8032b32b859f27c22
2020-10-05 16:53:36 +02:00
Henry Castro
af70d3c21a wsd: do not encode to send file when the API is "convert-to"
if a file is "test__á.pdf" and if it is encoded "test___%C3%A1.pdf"
then stat("test___%C3%A1.pdf") is false

Change-Id: I28a5ed90c599b7244f0c3a3d2259d83b25be762f
2020-10-05 10:52:29 -04:00
Henry Castro
d541429ec9 wsd: do not encode the URI if the API is "convert-to"
If it is encoded again, the result file does
not exist.

If a file is "test___á.pdf" and encode again
"test___%C3%A1.pdf"

fileExists("test___%C3%A1.pdf") false

Change-Id: I9fa1b8b52ebf0993158eb6ebe383da53921f640a
2020-10-05 10:48:43 -04:00
Miklos Vajna
2f6c334f29 notifyirc: no need to write about new PRs
It's enough to notify when they hit master.

Also don't write about non-master commits, which are sources for PRs to
be opened, in many cases.

Change-Id: I4bb7628cce4bb767016cd30aace72e88074970d4
2020-10-05 16:06:44 +02:00
mert
749ff355b2 Fix save-as readonly file starts with readonly
When read-only shared file can be save-as to
users own storage, then it must be start with
edit permission after save-as. Otherwise,
user must close the doc and reopen again in order
to be able to edit.

Change-Id: I9eacc9373f3333d1ed3fff142d8023667e31342a
Signed-off-by: mert <mert.tumer@collabora.com>
2020-10-05 16:03:39 +02:00
Pranam Lashkari
f3c028ddb8 w2ui: avoid long drop downs going out of view
Change-Id: I05e9abfabedcdf19f6e42eb642cd7487ff3426af
2020-10-05 14:56:21 +02:00
Andras Timar
25764d83ca change git repo URL and product name in package.json files
Change-Id: I15b786fa1fb3be78c4fe6e83777fc7df396de434
2020-10-05 14:04:40 +02:00
Andras Timar
a20c8e0cac set the default brandProductFAQURL for the community project
Change-Id: I2ba748fe0e20a7e8db9ae341432c7bb2c72a7595
2020-10-05 13:56:40 +02:00
Tamás Zolnai
55c75144f7 cypress: fail on missing LO installation.
Jenkins sometimes does not work properly and core
installation is not accessible for online build.
In this case the test build was passing without
actually run the tests. Fail on this instead to
avoid getting untested patches in the code repo.

Change-Id: I35c49562dfeaeda5f6c8aa4bd3a746b1f04de3ea
2020-10-05 13:32:12 +02:00
Andras Timar
f246974c10 replace opengrok links to github links and updated reference.html a bit
Change-Id: I8cba1367eecad8f0d3c389a9dfa33cd37e645b10
2020-10-05 12:38:22 +02:00
Miklos Vajna
4793624035 Add IRC notifications
Change-Id: Icb49e5e3c0e08e9a4f1ca84fbe68a1856964d70c
2020-10-05 12:28:59 +02:00
Andras Timar
1870b690a3 change the About box git URL at two more places
Change-Id: I5496ce643928dcca9df7993aff4fd37e95eeb728
2020-10-05 11:49:45 +02:00
Andras Timar
6e9bffb2e7 set the default brandProductURL for the community project
Change-Id: I45eec312371a1bf5ac6f250169316a5ac8d4758f
2020-10-05 11:35:31 +02:00