Commit Graph

42606 Commits

Author SHA1 Message Date
Daniel Calviño Sánchez 2b5d933b63 Remove no longer needed escaping of special characters
The escaping of special characters was needed when the ids of the
permission checkboxes for shares were based on the "shareWith" field.
Since they are based on the "shareId" field the escaping is no longer
needed, as the "sharedId" is expected to always contain compatible
characters.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-05-10 21:40:36 +02:00
Daniel Calviño Sánchez 0734325dda Fix ids of permission checkboxes for shares
The ids of permission checkboxes for shares were generated using the
"shareWith" field of the share. The "shareWith" field can contain spaces
(as spaces are allowed, for example, in user or circle names), so this
could cause the id attribute of the HTML element to contain spaces too,
which is forbidden by the HTML specification.

It is not just a "formal" issue, though; when the list was rendered
after a permission change, if the id contained a space the selector to
get the checkbox element was wrong (as it ended being something like
"#canEdit-view1-name with spaces") and thus the updated state of the
checkbox was not properly set.

Besides that, "shareWith" can contain too single quotes, which would
even cause the jQuery selector to abort the search and leave the UI in
an invalid state.

Instead of adding more cases to the regular expression to escape special
characters and apply it too when the ids are created now the ids of
permission checkboxes for shares are based on the "shareId" field
instead of on "shareWith", as "shareId" is expected to always contain
compatible characters.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-05-10 21:39:14 +02:00
Daniel Calviño Sánchez d74b5231b8 Fix race condition when preparing upload folder
Before any upload is submitted the upload is registered in a list of
known uploads; this is needed to retrieve the upload object at several
points of the upload process. When a chunked upload is submitted first a
directory to upload all the chunks is created and, once that is done,
the chunks are sent; in order to send a chunk the upload object needs to
be retrieved from the list of known uploads.

When all the active uploads were finished the list of known uploads was
cleared. However, an upload is not active until it actually starts
sending the data, so while waiting for the upload directory to be
created the upload is already in the list of known uploads yet not
active. Due to all this, if the active uploads finished while another
pending upload was waiting for the upload directory to be created that
pending upload would be removed from the list of known uploads too, and
once the directory was created and thus the chunks were sent a field of
a null upload object would be accessed thus causing a failure.

Instead of removing all the known uploads at once when the active
uploads finish now each upload is explicitly removed when it finishes.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-05-10 16:58:43 +02:00
Roeland Jago Douma 3a013b127c
Merge pull request #9433 from nextcloud/backport/9224/accessibility-improvements-13
[stable13] Add labels for Contacts menu and Settings
2018-05-10 09:30:56 +02:00
Nextcloud bot e2f5355f73
[tx-robot] updated from transifex 2018-05-10 00:13:31 +00:00
Roeland Jago Douma a7948069c5
Get correct version of an app
Related to #8929

We should get the version of the app. Not of the appfolder. Else there
is no way to properly compare the versions.

Now note that installing in 1 go will still fail. But at least on the
next page load the new version will be properly detected.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-05-09 12:15:39 +02:00
Joas Schilling ea834dab28
php 5.6 compatibility
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-05-09 12:12:13 +02:00
Jan-Christoph Borchardt 223f034068
Fix form labels and main landmark on log in page
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-05-09 11:42:09 +02:00
Jan-Christoph Borchardt 575354a09c
Do not restrict zooming in
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-05-09 11:42:01 +02:00
Jan-Christoph Borchardt 2f88376674
Add aria-label to more-apps menu as well
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-05-09 11:39:23 +02:00
Jan-Christoph Borchardt e7d6410f25
Ensure proper color contrast according to WCAG AA
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-05-09 11:39:16 +02:00
Jan-Christoph Borchardt 0dc52bf1c9
Add proper ARIA attributes and structure to header for accessibility, thanks to @MarcoZehe
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-05-09 11:37:58 +02:00
Morris Jobke eb429e7ee6
Add tests for special domain name
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-05-09 10:51:26 +02:00
Morris Jobke 229667c84c
Add tests for domains
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-05-09 10:51:14 +02:00
Joas Schilling 7bb44214a1
Move regex to a function and add tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-05-09 10:50:56 +02:00
Joas Schilling 02388a3942
Allow IPv6 database hosts
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-05-09 10:50:47 +02:00
Morris Jobke 44255faab3
Merge pull request #9430 from nextcloud/stable13-9407
[13] Fix jsunit tests
2018-05-09 09:14:33 +02:00
Morris Jobke fe2d99f3fb
Merge pull request #9409 from nextcloud/backport/9393/workflow-rules-error-when-changing-operation
[stable13] workflow rules error when changing operation
2018-05-09 08:41:58 +02:00
Julius Härtl 2329f7e2c6
Fix jsunit tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-05-09 08:21:21 +02:00
Nextcloud bot d8d09475c4
[tx-robot] updated from transifex 2018-05-09 00:11:50 +00:00
Nextcloud bot 583176d36d
[tx-robot] updated from transifex 2018-05-08 00:11:56 +00:00
Morris Jobke 7bf713edaf
Merge pull request #9389 from nextcloud/log-lock-state-on-conflict-13
[13] Log lock state on conflict
2018-05-07 16:29:42 +02:00
Morris Jobke 284b23333d
Merge pull request #9391 from nextcloud/getcachentry-lock-13
[13] remove unneeded locks in getCacheEntry
2018-05-07 16:29:22 +02:00
Joas Schilling a134bf7349
Do not error when the tag does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-05-07 15:30:12 +02:00
Joas Schilling 0579529145
Reset the value when changing the check class (because it might be invalid)
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-05-07 15:29:57 +02:00
Nextcloud bot c77b66e179
[tx-robot] updated from transifex 2018-05-07 00:11:59 +00:00
Nextcloud bot 923520823e
[tx-robot] updated from transifex 2018-05-06 00:12:02 +00:00
Nextcloud bot 635814f6a9
[tx-robot] updated from transifex 2018-05-05 00:12:11 +00:00
Robin Appelman 187acecff7
only allow a single concurrent dav write to a file
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-05-04 15:08:56 +02:00
Robin Appelman a6ea5eb1b5
remove unneeded locks in getCacheEntry
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-05-04 15:06:39 +02:00
Robin Appelman bc1a17a9e2
always log locking errors
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-05-04 13:35:26 +02:00
Robin Appelman a070c1177a
Log more info about locking conflicts for memcache locking backends
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-05-04 13:35:26 +02:00
Morris Jobke 642ebea490
Merge pull request #9259 from nextcloud/various-css-fixes-bckprt
[stable13] backport various scss fixes #8777
2018-05-04 11:19:10 +02:00
Nextcloud bot 1a900c6928
[tx-robot] updated from transifex 2018-05-04 00:12:17 +00:00
Morris Jobke 1dcf40515f
Merge pull request #9377 from nextcloud/9318_SCSSCacher_resetCache_catch_exception_stable13
Issue #9318: catch exceptions in SCSSCacher::resetCache()
2018-05-03 13:56:45 +02:00
Roland Tapken cc54429646 Issue #9318: catch exceptions in SCSSCacher::resetCache()
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
2018-05-03 11:02:53 +02:00
Nextcloud bot 5756a8d8ff
[tx-robot] updated from transifex 2018-05-03 00:12:19 +00:00
Roeland Jago Douma 9763e7dd40
Merge pull request #9358 from nextcloud/stable13-9348
[stable13] Replace deprecated sinon reset() call with resetHistory()
2018-05-02 10:09:50 +02:00
Julius Härtl f3b3b5f2d0
Replace deprecated sinon reset() call with resetHistory()
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-05-02 08:52:22 +02:00
Roeland Jago Douma 6976241e4e
Merge pull request #9344 from nextcloud/stable13-9248
[stable13] Fix ellipsis in filename column
2018-05-01 19:58:38 +02:00
Nextcloud bot 0d91288f49
[tx-robot] updated from transifex 2018-05-01 00:12:15 +00:00
Julius Härtl 5c6084a545
Add min-width to trick the table width calculation in safari
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-04-30 11:03:40 +02:00
Julius Härtl 7e39215142
Use flex based layout inside the filename table cell
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-04-30 11:02:43 +02:00
Nextcloud bot d216d7aff5
[tx-robot] updated from transifex 2018-04-30 00:12:11 +00:00
Nextcloud bot 6b67651951
[tx-robot] updated from transifex 2018-04-29 00:12:11 +00:00
Nextcloud bot 1a3d61cbd3
[tx-robot] updated from transifex 2018-04-28 00:12:20 +00:00
Nextcloud bot 8029998a60
[tx-robot] updated from transifex 2018-04-27 00:12:15 +00:00
Morris Jobke 2495577a3b
Merge pull request #9300 from nextcloud/final-13.0.2
13.0.2
2018-04-26 09:19:58 +02:00
Nextcloud bot a21b4469c9
[tx-robot] updated from transifex 2018-04-26 00:12:33 +00:00
Morris Jobke ebb410b122
13.0.2
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-04-25 15:19:03 +02:00