Commit graph

60220 commits

Author SHA1 Message Date
John Molakvoæ
ac7930bf1f
Merge pull request #29327 from nextcloud/bugfix/noid/do-not-make-actionbuttons-spans-too-transparent 2021-10-27 10:17:11 +02:00
Nextcloud bot
325606c8e4
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-27 02:23:37 +00:00
John Molakvoæ
bb39a21079
Merge pull request #29436 from nextcloud/fix/profile-link-action-registration 2021-10-26 12:38:23 +02:00
Christopher Ng
7b1cdf1fa6 Prevent unnecesary profile action registrations
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-26 08:59:28 +00:00
John Molakvoæ
1b366a033a
Merge pull request #29435 from nextcloud/explicitly-name-profile-link-action 2021-10-26 10:51:11 +02:00
Vincent Petry
f9629c0cb1
Merge pull request #26841 from nextcloud/bugfix/files-search-filter
Implement local filtering in file list
2021-10-26 08:23:51 +02:00
Nextcloud bot
b691f30af1
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-26 02:22:53 +00:00
Christopher Ng
9f8eae3f50 Use more explicit naming for profile link action
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-25 22:20:19 +00:00
Christoph Wurst
9177afe8ab
Merge pull request #29318 from nextcloud/fix/dav-availability-settings-timezone-id
Read and write time zone ID when updating CalDAV availability
2021-10-25 16:57:16 +02:00
Julius Härtl
9c937a63bf
Move to combined files entrypoint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-25 16:51:37 +02:00
Joas Schilling
584d275a50
Fix "No entries in this …" template
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-25 16:17:38 +02:00
Julius Härtl
df0efe0d62
Implement local filtering in file list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-25 16:17:37 +02:00
Christoph Wurst
a34f94df69
Get VTIMEZONE data from a time zone database lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-10-25 15:56:46 +02:00
Julius Härtl
9356124700
Merge pull request #29021 from nextcloud/work/smb/additional-logging 2021-10-25 13:25:04 +02:00
Louis
317d97309f
Merge pull request #27949 from CarlSchwan/work/carl/password-reset-autocomplete
Add autocompletion for password reset
2021-10-25 12:24:31 +02:00
Christoph Wurst
9b6238aabd
Read and write time zone ID when updating CalDAV availability
Tiny bug/limitation of #27466

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-10-25 11:08:37 +02:00
John Molakvoæ
d231d2618d
Merge pull request #29425 from nextcloud/revert-28138-zorn-v-patch-2 2021-10-25 09:25:03 +02:00
John Molakvoæ
8ea91b4364
Merge pull request #26531 from J0WI/refactor-preview-exec 2021-10-25 09:23:01 +02:00
Joas Schilling
06611e4780
Revert "Fix "never catch" catches in OC_App" 2021-10-25 08:41:56 +02:00
Nextcloud bot
dc9b05256c
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-25 02:22:23 +00:00
Nextcloud bot
7629bc83d8
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-24 02:22:24 +00:00
J0WI
047cab8dd2 Use findBinaryPath for previews
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-10-23 23:15:42 +02:00
John Molakvoæ
623ac8c706
Merge pull request #28389 from alanmeeson/bugfix/22077/default-encryption-module 2021-10-23 19:10:34 +02:00
alanmeeson
16f70e8647 Add type hint to fread_block $blockSize param & apply cs:fix.
Signed-off-by: alanmeeson <alan@carefullycalculated.co.uk>
2021-10-23 15:11:23 +01:00
Alan Meeson
44c332a46e Fix truncation of files upon read when using object store and encryption.
When using and object store as primary storage and using the default
encryption module at the same time,  any encrypted file would be truncated
when read, and a text error message added to the end.

This was caused by a combination of the reliance of the read functions on
on knowing the unencrypted file size,  and a bug in the function which
calculated the unencrypted file size for a given file.

In order to calculate the unencrypted file size,  the function would first
skip the header block, then use fseek to skip to the last encrypted block
in the file.  Because there was a corresponence between the encrypted and
unencrypted blocks, this would also be the last encrypted block.  It would
then read the final block and decrypt it to get the unencrypted length of
the last block.  With that, the number of blocks, and the unencrypted block
size, it could calculate the unencrypted file size.

The trouble was that when using an object store, an fread call doesn't
always get you the number of bytes you asked for, even if they are
available.  To resolve this I adapted the stream_read_block function from
lib/private/Files/Streams/Encryption.php to work here.  This function
wraps the fread call in a loop and repeats until it has the entire set of
bytes that were requested,  or there are no more to get.

This fixes the imediate bug, and should (with luck) allow people to get
their encrypted files out of Nextcloud now.  (The problem was purely on
the decryption side).  In the future it would be nice to do some
refactoring here.

I have tested this with image files ranging from 1kb to 10mb using
Nextcloud version 22.1.0 (the nextcloud:22.1-apache docker image), with
sqlite and a Linode object store as the primary storage.

Signed-off-by: Alan Meeson <alan@carefullycalculated.co.uk>
2021-10-23 15:11:23 +01:00
Julius Härtl
2b651cc022
Merge pull request #29400 from nextcloud/fix/noid/undef-index-error
fixes an undefined index when getAccessList returns an empty array
2021-10-23 14:46:36 +02:00
John Molakvoæ
f4e4a85fcf
Merge pull request #27440 from nextcloud/is-file-handle 2021-10-23 11:18:52 +02:00
John Molakvoæ
c5e9f379bd
Merge pull request #28138 from nextcloud/zorn-v-patch-2 2021-10-23 11:18:07 +02:00
John Molakvoæ
a06001e085
Merge pull request #29363 from nextcloud/fair-use-push 2021-10-23 10:53:22 +02:00
John Molakvoæ
7e117da435
Merge pull request #29397 from nextcloud/fix/noid/profile-missing-def-values 2021-10-23 10:52:44 +02:00
dependabot[bot]
811670a3ad
Merge pull request #29413 from nextcloud/dependabot/npm_and_yarn/testing-library/user-event-13.5.0 2021-10-23 06:21:33 +00:00
dependabot[bot]
6bd9076427
Merge pull request #29412 from nextcloud/dependabot/npm_and_yarn/webpack-cli-4.9.1 2021-10-23 05:27:16 +00:00
dependabot[bot]
8885f31b82
Merge pull request #29408 from nextcloud/dependabot/composer/build/integration/behat/behat-approx-3.9.0 2021-10-23 05:00:44 +00:00
dependabot[bot]
5136fcc35a
Merge pull request #29402 from nextcloud/dependabot/npm_and_yarn/sass-1.43.3 2021-10-23 03:49:04 +00:00
dependabot[bot]
475d3a6521
Bump @testing-library/user-event from 13.4.1 to 13.5.0
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.4.1 to 13.5.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.4.1...v13.5.0)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 03:46:56 +00:00
dependabot[bot]
12171669c5
Merge pull request #29401 from nextcloud/dependabot/npm_and_yarn/babel-loader-8.2.3 2021-10-23 03:45:23 +00:00
Nextcloud bot
7c2d8d3e82
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-23 02:22:31 +00:00
dependabot[bot]
6f36a97d34
Bump webpack-cli from 4.9.0 to 4.9.1
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.0...webpack-cli@4.9.1)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 02:17:58 +00:00
dependabot[bot]
400f1a7938
Update behat/behat requirement in /build/integration
Updates the requirements on [behat/behat](https://github.com/Behat/Behat) to permit the latest version.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.8.0...v3.9.0)

---
updated-dependencies:
- dependency-name: behat/behat
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 01:04:34 +00:00
dependabot[bot]
f664fa8c84
Bump sass from 1.43.2 to 1.43.3
Bumps [sass](https://github.com/sass/dart-sass) from 1.43.2 to 1.43.3.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.43.2...1.43.3)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 01:03:33 +00:00
dependabot[bot]
20c613af47
Bump babel-loader from 8.2.2 to 8.2.3
Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.2.2 to 8.2.3.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.2...v8.2.3)

---
updated-dependencies:
- dependency-name: babel-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 01:03:20 +00:00
Vitor Mattos
6f7ca3432c
show warning on personal settings page
Signed-off-by: Vitor Mattos <vitor@php.rio>
2021-10-23 00:54:51 +02:00
Vitor Mattos
e55ceb2bb1
Show warning on admin settings page
Signed-off-by: Vitor Mattos <vitor@php.rio>
2021-10-23 00:54:50 +02:00
Vitor Mattos
d613b32045
add check isFairUseOfFreePushService on login
Signed-off-by: Vitor Mattos <vitor@php.rio>
2021-10-23 00:54:50 +02:00
Joas Schilling
b578a1e8b5
Fair use of push notifications
We want to keep offering our push notification service for free, but large
users overload our infrastructure. For this reason we have to rate-limit the
use of push notifications. If you need this feature, consider setting up your
own push server or using Nextcloud Enterprise.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-23 00:54:50 +02:00
Arthur Schiwon
e26d6f080b
fix populating account array with missing default values
- both $userData and $defaultUserData have numeric indices
- each element contains at least the name and other fields
- appending the missing data array is sufficient

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-10-22 23:05:43 +02:00
Arthur Schiwon
7d7ef1d2e6
fixes an undefined index when getAccessList returns an empty array
- [] is a valid return value that should be honored as having no access

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-10-22 22:42:25 +02:00
Daniel
1895a6dc57
Merge pull request #29378 from nextcloud/fix/unhelpful-route-name-error
Make the route name error more helpful
2021-10-22 22:33:35 +02:00
Julius Härtl
6b099ecfe5
Merge pull request #25392 from nextcloud/imountpoint-ocp-storage 2021-10-22 20:14:22 +02:00
Julius Härtl
3b06b47607
Merge pull request #29382 from nextcloud/techdebt/noid/500-on-OCS-after-internal-error 2021-10-22 15:16:32 +02:00