Commit graph

58310 commits

Author SHA1 Message Date
Robin Appelman
df013e2d53
remove old migration method
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-26 14:44:07 +02:00
Robin Appelman
15aa354e74
optimize filetype for s3 directories a bit
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-26 14:43:59 +02:00
Robin Appelman
87c4c05671
more reliable directory copy
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-26 14:42:26 +02:00
Robin Appelman
69e93edf90
doesDirectoryExist fixes
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-26 14:41:54 +02:00
Robin Appelman
f18a76fec9
s3 external storage listing rework
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-10-26 14:41:46 +02:00
Nextcloud bot
c89eaec9e4
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-26 02:23:16 +00:00
Lukas Reschke
9fc4bd5248
Merge pull request #29428 from nextcloud/fix/user_status_enumeration_21
Backport #29260: Respect user enumeration settings in user status lists
2021-10-25 14:52:13 +02:00
Jonas Meurer
e838e63b88
Add integration tests for user_status API
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-10-25 11:37:44 +02:00
Jonas Meurer
02ce5c8f7d
Respect user enumeration settings in user status lists
So far, the functions to find user statuses listed didn't respect user
enumeration settings (`shareapi_allow_share_dialog_user_enumeration`
and `shareapi_restrict_user_enumeration_to_group` core app settings).

Fix this privacy issue by returning an empty list in case
`shareapi_allow_share_dialog_user_enumeration` is unset or
`shareapi_restrict_user_enumeration_to_group` is set.

In the long run, we might want to return users from common groups if
`shareapi_restrict_user_enumeration_to_group` is set. It's complicated
to implement this in a way that scales, though. See the discussion at
https://github.com/nextcloud/server/pull/27879#pullrequestreview-753655308
for details.

Also, don't register the user_status dashboard widget at all if
`shareapi_allow_share_dialog_user_enumeration` is unset or
`shareapi_restrict_user_enumeration_to_group` is set.

Fixes: #27122

Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-10-25 10:05:33 +02:00
Nextcloud bot
082d429c6e
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-25 02:22:42 +00:00
Nextcloud bot
b3001fd69e
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-24 02:22:43 +00:00
blizzz
b8ab9ffc1e
Merge pull request #29420 from nextcloud/backport/29400/stable21
[stable21] fixes an undefined index when getAccessList returns an empty array
2021-10-24 01:27:20 +02:00
dependabot[bot]
7ead027da4
Merge pull request #29411 from nextcloud/dependabot/npm_and_yarn/stable21/babel-loader-8.2.3 2021-10-23 18:51:01 +00:00
MichaIng
a17529b483
Merge pull request #29399 from nextcloud/backport/29378/stable21
[stable21] Make the route name error more helpful
2021-10-23 20:12:44 +02:00
dependabot[bot]
59919fddd8 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 20:11:11 +02:00
dependabot[bot]
bf35e6e5de
Merge pull request #29403 from nextcloud/dependabot/composer/build/integration/stable21/behat/behat-approx-3.9.0 2021-10-23 16:06:44 +00:00
dependabot[bot]
123a0de273 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 17:36:36 +02:00
Arthur Schiwon
d3576d32ae 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-23 12:51:15 +00:00
Nextcloud bot
a87643a9e0
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-23 02:22:54 +00:00
Christoph Wurst
48d97fa865 Make the route name error more helpful
As a developer I have no clue what "Invalid route name" means. If the
exception gives me a hint I might find it easier to figure out why my
route triggers this error.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-10-22 20:38:58 +00:00
Julius Härtl
6750662047
Merge pull request #29390 from nextcloud/backport/29375/stable21 2021-10-22 20:12:39 +02:00
Daniel
88cb9e0ec6
Merge pull request #29386 from nextcloud/backport/28997/stable21
[stable21] Scheduling plugin not updating responding attendee status
2021-10-22 18:14:33 +02:00
Julius Härtl
35910f483d Make calendar schedule options translatable
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-22 10:38:16 +00:00
Daniel Kesselberg
6df439177d Update attendence for external users
For local users it's possible to select their calendar via the principal url and first update their own attendance status.
External users have no calendar event hence the recipient is the organizer.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-10-22 10:14:00 +00:00
Anna Larch
a44e728a89 Scheduling plugin not updating responding attendee status take two
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-10-22 10:14:00 +00:00
Vincent Petry
a080c08d64
Merge pull request #29367 from nextcloud/backport/29362/stable21
[stable21] Fix security issues when copying groupfolder with advanced ACL
2021-10-22 09:56:21 +02:00
Nextcloud bot
884fcf0227
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-22 02:22:17 +00:00
Carl Schwan
ec8b2a90e6 Fix security issues when copying groupfolder with advanced ACL
Using advanced ACL, it is possible that an user has access to a
directory but not to a subdirectory, so the copying use
Common::copyFromStorage instead of Local::copyFromStorage.

Fix https://github.com/nextcloud/groupfolders/issues/1692

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-21 16:34:46 +00:00
John Molakvoæ
6b0bdf192c
Merge pull request #29289 from nextcloud/backport/28768/stable21 2021-10-21 09:32:32 +02:00
Nextcloud bot
8a5317cbfe
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-21 02:24:37 +00:00
blizzz
4f83ef5b6d
Merge pull request #29315 from nextcloud/backport/29180/stable21
[stable21] Avoid PHP errors when the LDAP attribute is not found
2021-10-20 18:24:37 +02:00
Daniel
105d28c875
Merge pull request #29268 from nextcloud/backport/29125/stable21
[stable21] Add configuration flag to disable the background job for files_trashbin
2021-10-20 10:35:21 +02:00
Nextcloud bot
8191ee34f2
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-20 02:43:22 +00:00
MichaIng
db4cdcec6f
Merge pull request #29267 from nextcloud/backport/29090/stable21
[stable21] Add configuration flag to disable the background job for files_versions
2021-10-20 00:13:25 +02:00
Côme Chilliet
573a6eadcf Use Psr\Log\LoggerInterface where it can easily be used in user_ldap
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:55 +00:00
Côme Chilliet
c256c9be19 Fix two mistakes in previous migration to LoggerInterface in OCA\User_LDAP\Access
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:55 +00:00
Côme Chilliet
ad1d9edb43 Use Psr\Log\LoggerInterface in OCA\User_LDAP\Access
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:55 +00:00
Côme Chilliet
2f5dd75b55 Avoid PHP errors when the LDAP attribute is not found
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-10-19 09:24:54 +00:00
John Molakvoæ
1493321401
Merge pull request #29182 from nextcloud/backport/29028/stable21 2021-10-19 11:11:20 +02:00
John Molakvoæ
9edb59ec57
Merge pull request #29282 from nextcloud/backport/28250/stable21 2021-10-19 11:08:21 +02:00
Julius Härtl
903afc1311
Merge pull request #29302 from nextcloud/backport/29259/stable21 2021-10-19 09:38:16 +02:00
Joas Schilling
2f6bd56c93
Fix app upgrade
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-19 08:47:52 +02:00
Nextcloud bot
c81b202eda
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-19 02:23:12 +00:00
acsfer
f57bbaf146 Simplify :) 2021-10-18 08:02:44 +00:00
acsfer
aeb0ad8cea Replace file_exists() method by is_file() 2021-10-18 08:02:44 +00:00
acsfer
0c1ccde7d2 Get filesize() if file_exists()
Should make sense.
2021-10-18 08:02:44 +00:00
Nextcloud bot
efaf112d67
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-18 02:25:03 +00:00
pjft
3ae5213308 Fix bug introduced on drag and drop external files
Drag and drop of external (OS filesystem) to subdirectories in the browser would fail on specific cases, mainly when the subdirectory was no longer off the root folder.
This seemed to have been an issue introduced with the subdirectory free space calculation [here](f9536b0809) and it seems to fail for any subdirectory that doesn't belong to the root folder.

Bug reports:
- https://help.nextcloud.com/t/drag-drop-into-subfolders/120731
- https://github.com/nextcloud/server/issues/24720

I couldn't find any reference on scenarios or quota management that would suggest when a subdirectory's free space would be different to the parent's free space, other than when on the root folder, where subdirectories can be external mounts.

As such, if my understanding is correct (please review), this calculation can - and should - be made by getting the free space from the first subdirectory in the total path, which caters for all subdirectory scenarios.

Please advise, happy to help improve this.

Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: pjft <pjft@users.noreply.github.com>
2021-10-17 19:32:46 +00:00
Nextcloud bot
94b3a8c1e9
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-17 02:22:19 +00:00
Nextcloud bot
f04447f11f
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-10-16 02:23:42 +00:00