Commit Graph

59294 Commits

Author SHA1 Message Date
Vincent Petry
3deffc3161
Use mimetype instead of type when defaulting in remote shares
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:20:01 +02:00
Vincent Petry
e8f4a524a2
Fix external share manager with multiple user groups
Use query builder with proper matching for finding the group names.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:26 +02:00
Vincent Petry
15f41a6b72
Fix remote group share API interactions
Accepting and declining can now be done repeatedly on both the parent
group share and sub-share with the same effects.

Added unit tests to cover these cases, and also when the same operation
is repeated.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:26 +02:00
Vincent Petry
c1563215e6
Disable default actions in pending file list
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:25 +02:00
Vincent Petry
f3f2faa815
Pending remote group share fixes
Only remove reject share for remote group shares
Also fix share indicator to appear for remote group shares as well.
Fix pending remote share icon to be the one of a share.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:25 +02:00
Vincent Petry
4b5bb4d9cf
Fix re-accepting or re-rejecting remote group shares
When accepting a group share, a sub-share entry is created which also
has a different id.

When accepting or rejecting the sub-share, simply update the "accepted"
flag instead of trying to re-insert the entry.

Adjust getShare to also properly validate group share membership
when called on a sub-share id.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:24 +02:00
Vincent Petry
cff8ae7ded
Add logging to external shares manager
Instead of just returning false, also log the exception to make
debugging database issues easier.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:24 +02:00
Vincent Petry
46b8cf4f64
Remove "Reject share" for pending remote shares
In the list of pending shares, the option for rejecting the share has
been removed.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:24 +02:00
Vincent Petry
7130a98e47
Fix received federated group shares
Fix pending shares endpoint to consider user-specific sub-entries
for group shares whenever a share was accepted or declined.

Added unit test for adding remote group shares.

Fixed "removeUserShares" to not send a remote request as we never send
remote requests for group shares.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:23 +02:00
Vincent Petry
53aafff972
Extend pending shares list to include remote shares
And adjust the accept/decline actions to use the right endpoint for
remote shares.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-27 12:19:18 +02:00
John Molakvoæ
702bced2b7
Add files via upload 2021-07-27 12:00:36 +02:00
John Molakvoæ
39931cab94
Update dependabot-approve-merge.yml 2021-07-27 08:16:41 +02:00
Julius Härtl
5efbdda151
Merge pull request #28173 from nextcloud/fix/variable_override_in_file_view
Fix variable override in file view
2021-07-26 21:11:10 +02:00
John Molakvoæ
cade646878
Merge pull request #28127 from nextcloud/dependabot/various 2021-07-26 20:05:04 +02:00
John Molakvoæ (skjnldsv)
b2b35c2b34
Bump p-queue
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-26 18:46:37 +02:00
John Molakvoæ (skjnldsv)
ccc63a4c83
Bump vue and fix babel warning
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-26 18:45:21 +02:00
John Molakvoæ (skjnldsv)
ae2719fcc4
Bump dependencies
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-26 18:45:21 +02:00
John Molakvoæ
f304633fbc
Add command-compile 2021-07-26 18:44:29 +02:00
Louis Chemineau
2cbc3e9245 Fix variabable override in file view
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-07-26 15:47:37 +02:00
szaimen
a65d3844c1
Merge pull request #28166 from nextcloud/enh/usermanagement/add-group-icon
User management - Add icon to user groups
2021-07-26 15:31:55 +02:00
Julien Veyssier
4c400a0283
Merge pull request #28164 from nextcloud/fix/file-multiselect-actions-sort
Fix sort function of files multiple selection actions
2021-07-26 15:08:09 +02:00
Julien Veyssier
d6b4944c4b
fix sort sort function of files multiple selection actions
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-07-26 14:08:44 +02:00
szaimen
d9f8bce443 User management - Add icon to user groups
Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-07-26 11:44:33 +00:00
Julius Härtl
b31c08e536
Merge pull request #28075 from nextcloud/enh/noid/admin_audit-report-full-path
Admin Audit - Sharing: createShare - report the full path
2021-07-26 12:35:48 +02:00
kesselb
0d5d3ad9fd
Merge pull request #28151 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-07-25 20:34:55 +02:00
Nextcloud-PR-Bot
21236473d7 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-07-25 04:10:46 +00:00
John Molakvoæ
a6d91c2ccf
Merge pull request #27281 from nextcloud/dependabot/npm_and_yarn/nextcloud/router-2.0.0 2021-07-24 13:11:53 +02:00
John Molakvoæ
ece22815a3
Merge pull request #28132 from nextcloud/work/carl/fix-tests
Fix tests in files_versions
2021-07-24 09:37:52 +02:00
dependabot[bot]
32953644a4
Merge pull request #28146 from nextcloud/dependabot/npm_and_yarn/sass-1.36.0 2021-07-24 04:01:42 +00:00
dependabot[bot]
ba8e006a4e
Merge pull request #28144 from nextcloud/dependabot/npm_and_yarn/testing-library/user-event-13.2.0 2021-07-24 03:40:03 +00:00
dependabot[bot]
14de962940
Bump sass from 1.35.2 to 1.36.0
Bumps [sass](https://github.com/sass/dart-sass) from 1.35.2 to 1.36.0.
- [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.35.2...1.36.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-24 02:13:40 +00:00
dependabot[bot]
343b40e2fc
Bump @testing-library/user-event from 13.1.9 to 13.2.0
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.1.9 to 13.2.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.1.9...v13.2.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-07-24 01:03:18 +00:00
Christopher Ng
fd71b39d58 Rebuild
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-07-23 23:10:29 +00:00
John Molakvoæ
6817ba194e
Merge pull request #28133 from nextcloud/feat/tag_multiple_files_at_once 2021-07-23 18:25:12 +02:00
Carl Schwan
0d987dd2a0
Fix tests in files_versions
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-07-23 17:50:46 +02:00
Roland Scheidel
c5af910886
add an option to the multiple files selected actions to add and remove tags from multiple files at once
Signed-off-by: Roland Scheidel <kontakt@scheidel.at>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-23 17:47:26 +02:00
dependabot[bot]
6e5191b702 Bump @nextcloud/router from 1.2.0 to 2.0.0
Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0.
- [Release notes](https://github.com/nextcloud/nextcloud-router/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-07-23 15:56:28 +02:00
John Molakvoæ
229bfcbab5
Merge pull request #28129 from nextcloud/bugfix/noid/redis-allow-defaults
Allow empty Redis config
2021-07-23 14:25:59 +02:00
Carl Schwan
74e7934f04
Merge pull request #27968 from nextcloud/work/carl/file_versions-less-deprecation
Remove allmost all deprecation from the files_version app
2021-07-23 10:50:48 +02:00
Carl Schwan
701b57b81d
Remove allmost all deprecation from the files_version app
The remaining deprecations are related to Utils::hooks and I will take a
look at how EventDispatcher works before working on them.

Aside from the deprecations, this patch also does a few minor
improvements around type hinting.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-07-23 10:07:38 +02:00
Vincent Petry
41ddbec40f
Allow empty Redis config
When Redis config is empty, use defaults.
However when a Redis cluster config is specified, the "seeds" attribute
is mandatory.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-07-23 09:53:06 +02:00
John Molakvoæ
97976746b8
Merge pull request #28084 from nextcloud/bugfix/noid/dav-user-id
Make sure that the dav propfind plugins always use the proper user id
2021-07-23 08:31:41 +02:00
Pytal
2880941131
Merge pull request #28122 from nextcloud/tests/nodb-memoryinfo
Let memory limit set in tests fit the used amount
2021-07-22 09:38:56 -07:00
Julius Härtl
858d846999
Let memory limit set in tests fit the used amount
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-07-22 17:05:29 +02:00
szaimen
4570bb4f65 Admin Audit - Sharing: createShare - report the full path
Signed-off-by: szaimen <szaimen@e.mail.de>
2021-07-22 14:20:05 +00:00
Louis
4301267373
Merge pull request #28115 from nextcloud/feat/npm7
Migrate to npm 7
2021-07-22 16:07:43 +02:00
John Molakvoæ (skjnldsv)
717636fd28
Fix Login & Users settings page
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-22 14:27:39 +02:00
John Molakvoæ (skjnldsv)
00105dca82
Add proper node testing
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-22 13:30:56 +02:00
John Molakvoæ (skjnldsv)
7ca81f360f
Fix eslint and update bundles
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-22 13:21:25 +02:00
John Molakvoæ (skjnldsv)
49b490ce6d
Migrate to npm 7
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-07-22 13:06:17 +02:00