Compare commits

..

1523 Commits

Author SHA1 Message Date
Nextcloud bot 46dbc8fa98
[tx-robot] updated from transifex 2021-06-04 02:28:13 +00:00
Christoph Wurst 188bc07869
Merge pull request #27348 from nextcloud/enhancement/calendar-trashbin-retention-prop
Export the CalDAV trash bin retention duration as property
2021-06-03 10:48:35 +02:00
Nextcloud bot 26f537fbec
[tx-robot] updated from transifex 2021-06-03 02:28:43 +00:00
blizzz fdb55c65f8
Merge pull request #27342 from nextcloud/version/22.0.0-beta3
22.0.0 beta 3
2021-06-02 21:24:22 +02:00
blizzz 0bbb195af1
Merge pull request #27354 from nextcloud/escape-download-response
Escape filename in Content-Disposition
2021-06-02 21:15:25 +02:00
John Molakvoæ 949102c031
Merge pull request #27088 from nextcloud/fix/27074/removing-apps
Allow removing apps with app store disabled
2021-06-02 21:10:05 +02:00
blizzz aa40bdea0f
Merge pull request #24295 from nextcloud/perf/noid/router
First attempt to check against core routes before loading all app routes
2021-06-02 21:03:29 +02:00
Lukas Reschke 377514aad1 Escape filename in Content-Disposition
We should escape all occurences of ' and \ in here.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-02 19:22:17 +02:00
Lukas Reschke 2637f92d96
Merge pull request #27352 from nextcloud/fix/l10n-test
Fix translation phpunit test
2021-06-02 19:16:54 +02:00
John Molakvoæ 9498f44d2e
Merge pull request #27265 from nextcloud/fix/private-class-properties 2021-06-02 18:58:44 +02:00
Christoph Wurst f1444eac5d
Export the CalDAV trash bin retention duration as property
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-06-02 18:10:07 +02:00
John Molakvoæ (skjnldsv) b228e8a361
Fix translation phpunit test
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-02 18:00:45 +02:00
Julius Härtl 4b1576e978
First attempt to check against core routes before loading all app routes
Most of the time we will find a matching route in either the loaded ones
matched on the URL or in the core ones. Therfore we can attempt to try
those first and only load all app routes if no match was found by the
Symfony URLMatcher.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-06-02 17:57:04 +02:00
John Molakvoæ c1d359b7a2
Merge pull request #27063 from nextcloud/Valdnet-patch-4 2021-06-02 17:55:15 +02:00
Valdnet 9c6b01abeb
l10n: Spelling unification
Spelling unification in Transifex.

Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-06-02 17:49:32 +02:00
John Molakvoæ (skjnldsv) aef00ddeaf Replace proposal-class-private-properties by regular properties
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-06-02 15:10:01 +00:00
John Molakvoæ d0cf20cc51
Merge pull request #26792 from nextcloud/user-delete-cleanup-files
better cleanup of user files on user deletion
2021-06-02 17:02:00 +02:00
Christoph Wurst ac4ff6c9e3
Merge pull request #27343 from nextcloud/fix/deleted-objects-deletion-missing-acls
Add missing ACLs for deleted calendar objects to fix deletion
2021-06-02 16:56:11 +02:00
Christoph Wurst fc8daf58ee
Add missing ACLs for deleted calendar objects to fix deletion
Due to a bug in Sabre it's necessary for calendar objects to implement
ACLs. Otherwise the scheduling plugin will throw an error when it tries
to fetch the owner of a calendar object that is being deleted.

Ref https://github.com/sabre-io/dav/issues/1345

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-06-02 15:41:51 +02:00
Joas Schilling 6578a93463
Merge pull request #27053 from nextcloud/bugfix/noid/dont-throw-when-comments-is-disabled
Don't throw when comments is disabled
2021-06-02 15:40:51 +02:00
Arthur Schiwon a493412cfe
22.0.0 beta 3
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-06-02 10:16:52 +02:00
kesselb d9a9714675
Merge pull request #27340 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-06-02 10:09:52 +02:00
Nextcloud-PR-Bot 4b011e35fa Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-06-02 05:11:38 +00:00
Nextcloud bot 142d311a13
[tx-robot] updated from transifex 2021-06-02 02:28:31 +00:00
Lukas Reschke b65c3f2249
Merge pull request #27291 from nextcloud/Valdnet-patch-2
l10n: Correct spelling
2021-06-01 23:44:00 +02:00
Lukas Reschke 5438e00276
Merge pull request #27329 from nextcloud/propagate-throttle-state-for-baseresponse
Propagate throttling on OCS response
2021-06-01 21:40:41 +02:00
kesselb f4e49b5623
Merge pull request #27327 from nextcloud/fix-grammar-27024
[Fast Review] Fix grammar
2021-06-01 21:22:17 +02:00
Lukas Reschke 446c1c5ade
Merge pull request #27312 from francoisfreitag/tests-at
Rewrite birthday calendar tests without $this->at()
2021-06-01 21:05:37 +02:00
Lukas Reschke 09503b0269
Merge pull request #27316 from nextcloud/bugfix/noid/getNumberOfUnreadCommentsForObjects
Fix populating the array and closing the cursors
2021-06-01 21:01:01 +02:00
Christoph Wurst 84584959b0
Merge pull request #27328 from nextcloud/fix/noid/UserLoggedInEvent-apache-auth
emit UserLoggedInEvent on apache auth
2021-06-01 17:38:41 +02:00
Christoph Wurst 6ea8f6f549
Merge pull request #27331 from nextcloud/debt/noid/add-mbstring-dependency
Add mbstring dependency
2021-06-01 17:37:15 +02:00
Daniel Kesselberg 2b60587a2f
Add mbstring as dependency
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-06-01 15:43:08 +02:00
Lukas Reschke 09abcfadfa Propagate throttling on OCS response
The BaseResponse converter did not take over any throttling state from the DataResponse.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-01 14:15:23 +02:00
Arthur Schiwon 6ac4eafcf9
emit UserLoggedInEvent on apache auth
- post_login OC_Hook is barely used or listened to

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-06-01 13:59:40 +02:00
Lukas Reschke 1b4428644d Fix grammar
changed removed -> removed

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-01 13:31:10 +02:00
Valdnet 94f475686c
Merge pull request #27317 from nextcloud/Valdnet-patch-3
l10n: Split sentences
2021-06-01 12:20:35 +02:00
Christoph Wurst b29c3aa03f
Merge pull request #25658 from nextcloud/dav-respect-disallow-sharing-with-groups
Dav respect disallow sharing with groups
2021-06-01 12:07:29 +02:00
kesselb 68a02bbef8
Merge pull request #27320 from nextcloud/add-xdebug-env-variable
Add XDEBUG_MODE=coverage
2021-06-01 11:24:30 +02:00
Lukas Reschke a58057c45d Add XDEBUG_MODE=coverage
This should help the Codecov execution jobs.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-01 11:21:13 +02:00
Valdnet 50e080f37f
l10n: Split sentences 2021-06-01 10:28:54 +02:00
kesselb 4dc8a4d8d9
Merge pull request #27311 from nextcloud/fix/caldav-deleted-objects-uri
Fix loading of delete caldav objet URIs
2021-06-01 10:10:22 +02:00
kesselb 943eefd66c
Merge pull request #27314 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-06-01 10:06:18 +02:00
Joas Schilling c0c5340f4e
Fix populating the array and closing the cursors
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-06-01 09:15:34 +02:00
Nextcloud-PR-Bot 2ad2d1258b Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-06-01 05:12:19 +00:00
Nextcloud bot f2101487a0
[tx-robot] updated from transifex 2021-06-01 02:28:20 +00:00
François Freitag 22d35141f8 Rewrite birthday calendar tests without $this->at()
Removes warnings:

```
The at() matcher has been deprecated. It will be removed in PHPUnit 10.
Please refactor your test to not rely on the order in which methods are
invoked.
```

Signed-off-by: François Freitag <mail@franek.fr>
2021-05-31 23:13:15 +02:00
Christoph Wurst ff2a730aac
Fix loading of delete caldav objet URIs
Regression of 462962197d

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-31 21:01:54 +02:00
Christoph Wurst 4fc002a3a5
Merge pull request #27310 from nextcloud/enhancement/caldav-trashbin-objects-calendar-id
Expose calendar-uri as property of deleted caldav events
2021-05-31 20:01:07 +02:00
Christoph Wurst 462962197d
Expose calendar-uri as property of deleted caldav events
The trashbin is one report across all calendars of a user. In order to
refresh the data of a single calendar when one of its events is
restored, we need to know what calendar the event belongs to. There
doesn't seem to be a standard property for a URI, so this adds a custom
Nextcloud prop for the calendar-uri.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-31 18:57:40 +02:00
Christoph Wurst b908db7ac8
Merge pull request #27298 from nextcloud/fix/caldav-deleted-objects-expose-timestamp
Expose deletion timestamp for deleted CalDAV objects
2021-05-31 18:24:30 +02:00
Joas Schilling 7e8ddcd38f
Merge pull request #26706 from nextcloud/Valdnet-patch-7
l10n: Spelling unification
2021-05-31 17:21:16 +02:00
Joas Schilling 773e28d8e4
Merge pull request #27275 from nextcloud/bugfix/noid/circles-22-in-dav
Fixing invalid classes and methods for circles 22
2021-05-31 13:03:07 +02:00
Christoph Wurst fe31373a93
Expose deletion timestamp for deleted CalDAV objects
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-31 10:47:07 +02:00
John Molakvoæ fd63132f47
Merge pull request #27286 from francoisfreitag/rewrite-npm-test-with-jest
Rewrite requesttoken.spec.js with Jest
2021-05-31 10:27:58 +02:00
John Molakvoæ 30a595af2c
Merge pull request #27295 from nextcloud/bug/27293/wrong-category-for-string
Set app to settings for translate
2021-05-31 08:58:20 +02:00
Christoph Wurst 9f70c6cdda
Merge pull request #26083 from nextcloud/feature/dav-calendar-and-object-trashbin
Add a trashbin for calendars and calendar objects
2021-05-31 08:29:31 +02:00
Thomas Citharel 8a73b180e7
Get componenttype from the db as well when restoring a calendarobject
It's needed in ReminderService::onCalendarObjectCreate()

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-05-31 07:49:19 +02:00
Christoph Wurst d6d8e9215c
Add a trashbin for calendars and calendar objects
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-31 07:49:19 +02:00
Nextcloud bot 9e596dd0cf
[tx-robot] updated from transifex 2021-05-31 02:35:25 +00:00
Daniel Kesselberg 9873195c98
Set app to settings for translate
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-05-30 22:45:26 +02:00
Valdnet 99ebe7176b
l10n: Correct spelling 2021-05-30 21:05:39 +02:00
François Freitag b0847abcc2 Rewrite requesttoken.spec.js with Jest
[Jest](https://jestjs.io/) is a test runner that focuses on simplicity.
It instruments babel to transform modules and test them.

Using Jest simplifies the existing configuration and allows dropping a
bunch of workarounds, as well as following the shared Babel
configuration for new code.

Signed-off-by: François Freitag <mail@franek.fr>
2021-05-30 10:44:34 +02:00
Nextcloud bot 719430559f
[tx-robot] updated from transifex 2021-05-30 02:24:58 +00:00
John Molakvoæ 8b3fbe1f06
Merge pull request #27274 from nextcloud/dependabot/npm_and_yarn/master/various 2021-05-29 15:13:10 +02:00
John Molakvoæ (skjnldsv) 53dd7c0c20
Npm build
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-29 14:57:25 +02:00
dependabot[bot] b52a4feb03
Bump v-tooltip from 2.0.3 to 2.1.3
Bumps [v-tooltip](https://github.com/Akryum/vue-tooltip) from 2.0.3 to 2.1.3.
- [Release notes](https://github.com/Akryum/vue-tooltip/releases)
- [Commits](https://github.com/Akryum/vue-tooltip/compare/v2.0.3...v2.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 14:48:03 +02:00
dependabot[bot] 2c082aa971
Bump marked from 2.0.1 to 2.0.6
Bumps [marked](https://github.com/markedjs/marked) from 2.0.1 to 2.0.6.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v2.0.1...v2.0.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 14:48:03 +02:00
dependabot[bot] a6d43e3fd9
Bump dompurify from 2.2.7 to 2.2.8
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/2.2.7...2.2.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 14:48:03 +02:00
dependabot-preview[bot] 6653543596
Bump jsdom from 16.5.2 to 16.6.0
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.5.2 to 16.6.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.5.2...16.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-29 14:48:02 +02:00
dependabot-preview[bot] b1eb1b6311
Bump core-js from 3.10.1 to 3.13.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.10.1 to 3.13.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.13.1/packages/core-js)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-29 14:47:50 +02:00
Maxence Lange 11ad88e987 migration to Circles 22
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2021-05-29 10:04:26 -01:00
John Molakvoæ 697b22a594
Merge pull request #27090 from nextcloud/dependabot/npm_and_yarn/browserslist-4.16.6 2021-05-29 11:58:44 +02:00
dependabot[bot] ed3415a191
Merge pull request #27180 from nextcloud/dependabot/npm_and_yarn/mochapack-2.1.2 2021-05-29 09:15:13 +00:00
John Molakvoæ f37e2ecb0e
Merge pull request #27172 from nextcloud/dependabot/npm_and_yarn/eslint-plugin-import-2.23.3 2021-05-29 10:42:04 +02:00
Lukas Reschke 36fd5d83f4
Merge pull request #27244 from nextcloud/migrate-more-services-to-ghcr
Migrate more services to GHCR
2021-05-29 10:01:57 +02:00
John Molakvoæ 47217ba365
Merge pull request #27175 from nextcloud/dependabot/npm_and_yarn/webdav-4.6.0
Bump webdav from 3.6.2 to 4.6.0
2021-05-29 09:23:24 +02:00
dependabot[bot] 092b010314
Bump mochapack from 2.0.6 to 2.1.2
Bumps [mochapack](https://github.com/sysgears/mochapack) from 2.0.6 to 2.1.2.
- [Release notes](https://github.com/sysgears/mochapack/releases)
- [Commits](https://github.com/sysgears/mochapack/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 07:15:23 +00:00
John Molakvoæ 433cf1a08a
Merge pull request #27263 from nextcloud/dependabot/npm_and_yarn/sinon-11.1.1
Bump sinon from 9.2.4 to 11.1.1
2021-05-29 09:13:36 +02:00
John Molakvoæ 8c8777a841
Fix name 2021-05-29 09:12:37 +02:00
John Molakvoæ 63b9932e1c
Merge pull request #27267 from nextcloud/feat/fixup-action
Add fixup.yml
2021-05-29 09:11:42 +02:00
John Molakvoæ 38a19c263b
Add fixup.yml 2021-05-29 09:09:03 +02:00
dependabot[bot] 11a35db944
Bump browserslist from 4.16.3 to 4.16.6
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 07:06:28 +00:00
John Molakvoæ 6b43d21d31
Merge pull request #27260 from nextcloud/dependabot/npm_and_yarn/webpack-node-externals-3.0.0
Bump webpack-node-externals from 2.5.2 to 3.0.0
2021-05-29 09:05:10 +02:00
John Molakvoæ 42bba33539
Merge pull request #27193 from nextcloud/dependabot/npm_and_yarn/webpack-cli-4.7.0 2021-05-29 09:03:46 +02:00
dependabot[bot] da0704d056
Bump webdav from 3.6.2 to 4.6.0
Bumps [webdav](https://github.com/perry-mitchell/webdav-client) from 3.6.2 to 4.6.0.
- [Release notes](https://github.com/perry-mitchell/webdav-client/releases)
- [Changelog](https://github.com/perry-mitchell/webdav-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/perry-mitchell/webdav-client/compare/v3.6.2...v4.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 08:58:26 +02:00
dependabot[bot] 2fb79a28f1
Bump sinon from 9.2.4 to 11.1.1
Bumps [sinon](https://github.com/sinonjs/sinon) from 9.2.4 to 11.1.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v9.2.4...v11.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 05:18:59 +00:00
dependabot[bot] 2d38e24b28
Bump webpack-cli from 4.6.0 to 4.7.0
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.6.0 to 4.7.0.
- [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.6.0...webpack-cli@4.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 05:15:29 +00:00
dependabot[bot] e6f1ccab0c
Merge pull request #27238 from nextcloud/dependabot/npm_and_yarn/vue-loader-15.9.7 2021-05-29 05:13:31 +00:00
dependabot-preview[bot] 039e8c90b4
Merge pull request #27253 from nextcloud/dependabot/npm_and_yarn/babel/core-7.14.3 2021-05-29 02:51:17 +00:00
dependabot[bot] 7915d04c5b
Bump vue-loader from 15.9.6 to 15.9.7
Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.6 to 15.9.7.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/compare/v15.9.6...v15.9.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 02:46:54 +00:00
dependabot-preview[bot] e1c35e8357
Merge pull request #27251 from nextcloud/dependabot/npm_and_yarn/sinon-chai-3.7.0 2021-05-29 02:44:47 +00:00
dependabot-preview[bot] b0145f65d1
Merge pull request #27246 from nextcloud/dependabot/npm_and_yarn/build/ws-7.4.6 2021-05-29 02:34:04 +00:00
dependabot-preview[bot] 04046a8693
Bump webpack-node-externals from 2.5.2 to 3.0.0
Bumps [webpack-node-externals](https://github.com/liady/webpack-node-externals) from 2.5.2 to 3.0.0.
- [Release notes](https://github.com/liady/webpack-node-externals/releases)
- [Changelog](https://github.com/liady/webpack-node-externals/blob/master/CHANGELOG.md)
- [Commits](https://github.com/liady/webpack-node-externals/compare/v2.5.2...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-29 01:30:54 +00:00
dependabot-preview[bot] b9ec4fe3da
Bump @babel/core from 7.14.2 to 7.14.3
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.14.2 to 7.14.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.14.3/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-29 01:21:23 +00:00
dependabot-preview[bot] 6baaeb92f9
Bump sinon-chai from 3.6.0 to 3.7.0
Bumps [sinon-chai](https://github.com/domenic/sinon-chai) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/domenic/sinon-chai/releases)
- [Changelog](https://github.com/domenic/sinon-chai/blob/master/CHANGELOG.md)
- [Commits](https://github.com/domenic/sinon-chai/compare/3.6.0...3.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-29 01:18:44 +00:00
dependabot-preview[bot] a77e0f5bcc
[Security] Bump ws from 7.4.1 to 7.4.6 in /build
Bumps [ws](https://github.com/websockets/ws) from 7.4.1 to 7.4.6. **This update includes security fixes.**
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.1...7.4.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-29 01:14:33 +00:00
Lukas Reschke b4d6d8a70d Use MariaDB from GHCR
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-29 01:01:19 +02:00
Lukas Reschke 93da0cfd38 Move PGSQL to GHCR
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-29 00:51:30 +02:00
Lukas Reschke be651cee11 Migrate more services to GHCR
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-29 00:43:48 +02:00
Lukas Reschke 948bbe8b2f
Merge pull request #27243 from nextcloud/fix-tests-on-master
Fix test on master
2021-05-29 00:36:19 +02:00
Lukas Reschke b0bdd2dfbc Fix test on master
Regression by https://github.com/nextcloud/server/pull/26410

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-29 00:02:56 +02:00
Lukas Reschke 621a4bc730
Merge pull request #27214 from nextcloud/use-ghcr-acceptance
Use GHCR PHP 7.3 Acceptance Container
2021-05-28 23:58:18 +02:00
Lukas Reschke 3e6e6eeb5b Bump Container Versions
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 23:43:43 +02:00
Lukas Reschke ee2a0f2c1b Use GHCR PHP 7.3 Acceptance Container
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 23:40:45 +02:00
dependabot[bot] 7ed599af57
Bump eslint-plugin-import from 2.22.1 to 2.23.3
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.22.1 to 2.23.3.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.22.1...v2.23.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-28 16:33:24 +00:00
John Molakvoæ 162229dbff
Fix psalm action 2021-05-28 18:17:58 +02:00
John Molakvoæ fb583d5665
Fix psalm action 2021-05-28 18:17:42 +02:00
John Molakvoæ 5495d280a3
Merge pull request #27197 from nextcloud/Valdnet-patch-1 2021-05-28 17:57:36 +02:00
John Molakvoæ 91788cc90e
Merge pull request #27211 from nextcloud/use-ghcr-php7.3 2021-05-28 17:16:01 +02:00
John Molakvoæ 17d0dac906
Merge pull request #27061 from nextcloud/feature/noid/contacts-activity 2021-05-28 17:15:30 +02:00
John Molakvoæ bce941ef77
Merge pull request #27212 from nextcloud/use-gchr-for-services
Use GHCR for services
2021-05-28 17:14:40 +02:00
John Molakvoæ a0f8a5395b
Merge pull request #27213 from nextcloud/use-alpine-git
Use GHCR for Git Pull image
2021-05-28 17:14:26 +02:00
John Molakvoæ 5461f082a0
Merge pull request #27215 from nextcloud/use-ghcr-selenium
Use GHCR Selenium Container
2021-05-28 17:14:12 +02:00
John Molakvoæ 907d98d16a
Merge pull request #27202 from nextcloud/feat/dependabot-reviewers-schedule
Add dependabot reviewer team
2021-05-28 17:13:56 +02:00
Lukas Reschke e904f83816 Use GHCR Selenium Container
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 14:13:01 +02:00
Lukas Reschke 88899dabbe Use GHCR for Git Pull image
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 14:06:47 +02:00
Lukas Reschke 11bd715ecd Use GHCR for services
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 13:58:52 +02:00
Lukas Reschke 87dcde78d0 Use GHCR PHP 7.3 container
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 13:46:54 +02:00
Morris Jobke 77d6611fa0
Merge pull request #27199 from nextcloud/fix/26683/use-noreply-as-share-email
Use noreply@ as email address for share emails
2021-05-28 13:40:12 +02:00
John Molakvoæ f2e731e017
Add dependabot reviewer team and remove saturday for stable branches
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-28 12:36:26 +02:00
John Molakvoæ 018e18bf8a
Fix dependabot config 2021-05-28 12:25:03 +02:00
Morris Jobke fb7899135e
Merge pull request #27187 from Simounet/fix/comments-query-oracle-limit-compliance
Fix Oracle query limit compliance in Comments
2021-05-28 11:19:36 +02:00
Morris Jobke dc9bdd4f39
Use noreply@ as email address for share emails
Fixes #26683

Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-28 11:13:24 +02:00
Morris Jobke 0769b17437
Merge pull request #27125 from nextcloud/use-github-registry
Use GitHub container registry
2021-05-28 11:09:33 +02:00
Valdnet ee48cd9f31
l10n: Remove space from translation
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-05-28 09:20:20 +02:00
John Molakvoæ 11900c741e
Merge pull request #27185 from nextcloud/dependabot/npm_and_yarn/master/node-sass-replace
Replace node-sass with sass & bump css-loader
2021-05-28 08:51:50 +02:00
Simounet a50eba16ad
Fix Oracle query limit compliance in Comments
Signed-off-by: Simounet <contact@simounet.net>
2021-05-28 08:48:01 +02:00
Nextcloud bot 7668d3afcd
[tx-robot] updated from transifex 2021-05-28 02:27:21 +00:00
Joas Schilling b1610e7247
Merge pull request #27188 from nextcloud/bugfix/noid/fix-get-editable-fields-api-endpoint
Fix the get editable fields endpoint without a user id
2021-05-28 00:59:41 +02:00
Lukas Reschke ac8f614d1b Use GitHub container registry
To avoid Docker ratelimit issues.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-27 23:10:03 +02:00
Morris Jobke e3129056c8
Merge pull request #26410 from nextcloud/fix/noid/phpdoc
Add proper PHPDoc tags to files ApiController
2021-05-27 21:00:05 +02:00
dependabot[bot] 83ebcf2a7a
Bump css-loader from 5.2.0 to 5.2.6
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.2.0 to 5.2.6.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.2.0...v5.2.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 19:15:25 +02:00
John Molakvoæ (skjnldsv) fb33652982
Replace node-sass with sass
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-27 19:14:32 +02:00
John Molakvoæ 2607b572ac
Merge pull request #27168 from nextcloud/dependabot/npm_and_yarn/nextcloud/vue-dashboard-2.0.1 2021-05-27 19:06:01 +02:00
Julius Härtl a9d042deb1
Hide duplicate status in menu and bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-27 17:57:17 +02:00
blizzz 6f063c2ee9
Merge pull request #25770 from nextcloud/fix/25742/cli-cache-backend-recursion
Don't allow executing cli if cache backend is unavailable
2021-05-27 17:56:11 +02:00
Joas Schilling 3b6b4c8509
Add integration tests for the editable fields
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-27 14:56:22 +02:00
Joas Schilling 94584ee788
Fix the get editable fields endpoint without a user id
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-27 14:23:04 +02:00
dependabot[bot] c874d89e14
Bump @nextcloud/vue-dashboard from 1.1.0 to 2.0.1
Bumps [@nextcloud/vue-dashboard](https://github.com/nextcloud/nextcloud-vue-dashboard) from 1.1.0 to 2.0.1.
- [Release notes](https://github.com/nextcloud/nextcloud-vue-dashboard/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-vue-dashboard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-vue-dashboard/compare/v1.1.0...v2.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 08:16:40 +00:00
John Molakvoæ 54f8d48c62
Merge pull request #27118 from nextcloud/dependabot/config
Add dependabot config with proper ignore for stable branches
2021-05-27 10:14:02 +02:00
John Molakvoæ 1430d8566f
Merge pull request #27130 from nextcloud/dependabot/npm_and_yarn/nextcloud/vue-3.10.0 2021-05-27 09:50:09 +02:00
dependabot-preview[bot] b563b98fd5
Bump @nextcloud/vue from 3.7.2 to 3.10.0
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 3.7.2 to 3.10.0.
- [Release notes](https://github.com/nextcloud/nextcloud-vue/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/v3.10.0/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v3.7.2...v3.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-05-27 08:16:08 +02:00
Nextcloud bot 6b0859f28e
[tx-robot] updated from transifex 2021-05-27 02:27:52 +00:00
Morris Jobke 21a5cb3c7c
Merge pull request #27126 from nextcloud/fix/noid/circles-shipped
Add circles as shipped app
2021-05-26 21:24:58 +02:00
Morris Jobke be89d72af1
Add circles as shipped app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-26 21:24:30 +02:00
Morris Jobke 2cba82ac22
Merge pull request #27111 from nextcloud/version/22.0.0-beta2
22.0.0 beta 2
2021-05-26 21:09:31 +02:00
Morris Jobke bc7538b088
Update CA bundle
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-26 21:07:24 +02:00
kesselb 1d3a521c12
Merge pull request #27113 from nextcloud/techdebt/noid/remove-migration-commands-unless-in-debug-mode
Remove the migration commands unless in debug mode
2021-05-26 20:41:56 +02:00
kesselb 222ac93774
Merge pull request #27117 from nextcloud/fix/add-exception-doc-to-qbmapper
Add DB exception '@throws' tag to QBMapper PHPDoc
2021-05-26 17:11:49 +02:00
John Molakvoæ (skjnldsv) c3f9f09fb0
Add dependabot config with proper ignore for stable branches
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-26 15:51:11 +02:00
John Molakvoæ 8b0ce8c8a1
Merge pull request #27099 from nextcloud/bugfix/noid/make-user-report-scale 2021-05-26 15:18:41 +02:00
Anna Larch 8fcb3f33c8 Add DB exception throws tag to QBMapper PHPDoc
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-05-26 15:12:41 +02:00
Joas Schilling f9b407d0c9
Make user:report command scale
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-26 11:33:09 +02:00
Thomas Citharel 1c0d975654
Make dav respect disallowing sharing with groups
Closes #25390

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-05-26 11:19:59 +02:00
Joas Schilling e4b5645883
Also make other shares listen to the "Allow sharing with groups"
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-26 11:19:58 +02:00
Richard Steinmetz 0f949eaeb1
Don't allow executing cli if cache backend is unavailable
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2021-05-26 11:02:26 +02:00
Joas Schilling dfedd83f79
Remove the migration commands unless in debug mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-26 10:54:14 +02:00
Morris Jobke 5a04659c9f
22.0.0 beta 2
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-26 09:29:05 +02:00
John Molakvoæ 903b99bd93
Merge pull request #26466 from nextcloud/fix/ocs-api-v2 2021-05-26 08:59:43 +02:00
John Molakvoæ (skjnldsv) f1f8fa1e99
Move remnants of ocs api requests to v2 endpoint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-26 08:25:00 +02:00
Nextcloud bot accfe5b82d
[tx-robot] updated from transifex 2021-05-26 02:28:28 +00:00
Morris Jobke 6ed728d76c
Merge pull request #27043 from nextcloud/storage-info-include-external
fix return value of getStorageInfo when 'quota_include_external_storage' is enabled
2021-05-25 21:57:23 +02:00
blizzz 1b47886abb
Merge pull request #27035 from nextcloud/techdebt/26866/userscontroller-accountmanager-api
do not use private AccountManager in UsersController
2021-05-25 21:22:37 +02:00
Morris Jobke 3d1c78647e
Merge pull request #23065 from TomG736/FixEmptyDisplayName
Fix null displayname crash as described in #21885
2021-05-25 21:13:00 +02:00
kesselb 1b21b173e6
Merge pull request #27104 from nextcloud/properly-name-execute
[Quick Review] executeUpdate is also deprecated
2021-05-25 20:44:51 +02:00
kesselb 7b83daa6a6
Merge pull request #27103 from nextcloud/remove-unused-and-deprecated-consts
[Fast Review] Remove unused constants
2021-05-25 20:31:30 +02:00
Lukas Reschke 4e7b82169c executeUpdate is also deprecated
Ref 1089ad5d9e/lib/private/DB/QueryBuilder/QueryBuilder.php (L312-L323)

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-25 20:25:44 +02:00
Lukas Reschke a521ed874c Remove unused constants
No calls in all of GitHub as per https://sourcegraph.com/search?q=USER_AGENT_OWNCLOUD_&patternType=literal

Deprecation has also been years ago.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-25 19:01:48 +02:00
dependabot-preview[bot] 677dcad257
Merge pull request #26338 from nextcloud/dependabot/npm_and_yarn/nextcloud/browserslist-config-2.1.0 2021-05-25 16:20:03 +00:00
dependabot-preview[bot] 712a10f018
Bump @nextcloud/browserslist-config from 1.0.0 to 2.1.0
Bumps [@nextcloud/browserslist-config](https://github.com/nextcloud/browserslist-config) from 1.0.0 to 2.1.0.
- [Release notes](https://github.com/nextcloud/browserslist-config/releases)
- [Commits](https://github.com/nextcloud/browserslist-config/compare/v1.0.0...v2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-05-25 17:48:30 +02:00
Morris Jobke 726d01843e
Merge pull request #26600 from hosting-de/feature/occ-tags
Add commands to manage tags via OCC
2021-05-25 16:54:06 +02:00
Vincent Petry 0815be1ca8
Merge pull request #27062 from nextcloud/search-limit-offset-jail
properly use limit and offset for search in Jail wrapper
2021-05-25 15:47:09 +02:00
Arthur Schiwon 847ed37afc
do not use private AccountManager in UsersController
- extends IAccountProperty for verificationData getters and setters
- implementation thereof ^
- and of course adaption of UsersController

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-25 14:35:38 +02:00
Johannes Leuker d606799ee2 Add commands to manage tags via OCC
list, add, delete, edit

Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
2021-05-25 11:29:32 +02:00
Morris Jobke 333665b43d
Merge pull request #27040 from nextcloud/FlorentCoppint-master
Avoid reading ~/.aws/config when using S3 provider
2021-05-25 10:19:22 +02:00
Joas Schilling 2a2ca4dba5
Remove since from implementations and fix some more style
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-25 09:28:18 +02:00
Nextcloud bot 3fa2437223
[tx-robot] updated from transifex 2021-05-25 02:27:20 +00:00
Gary Kim 92555b6014
Allow removing apps with app store disabled
Signed-off-by: Gary Kim <gary@garykim.dev>
2021-05-24 10:35:51 -04:00
Nextcloud bot ba6f5a4a2a
[tx-robot] updated from transifex 2021-05-24 02:26:31 +00:00
Nextcloud bot 8d80ee547b
[tx-robot] updated from transifex 2021-05-23 02:25:47 +00:00
dependabot-preview[bot] 259e75568c
Merge pull request #27072 from nextcloud/dependabot/npm_and_yarn/build/jsdoc-3.6.7 2021-05-22 02:32:48 +00:00
Nextcloud bot 41f0cf4fca
[tx-robot] updated from transifex 2021-05-22 02:27:14 +00:00
dependabot-preview[bot] a10fce002f
Bump jsdoc from 3.6.6 to 3.6.7 in /build
Bumps [jsdoc](https://github.com/jsdoc/jsdoc) from 3.6.6 to 3.6.7.
- [Release notes](https://github.com/jsdoc/jsdoc/releases)
- [Changelog](https://github.com/jsdoc/jsdoc/blob/3.6.7/CHANGES.md)
- [Commits](https://github.com/jsdoc/jsdoc/compare/3.6.6...3.6.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-22 01:15:44 +00:00
kesselb 9a80052eeb
Merge pull request #27052 from nextcloud/bugfix/noid/fix-log-entry-readability
Fix log entry readability
2021-05-21 20:45:55 +02:00
Roeland Jago Douma bcf01a1b90
Fix more psalm warnings
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-21 16:58:15 +02:00
Morris Jobke eb1d16d92d
Add proper PHPDoc tags to files ApiController
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-21 16:58:15 +02:00
Morris Jobke 3b230f9928
Merge pull request #26953 from nextcloud/version/22/beta1
22 beta1
2021-05-21 16:16:31 +02:00
Robin Appelman 7ee528fc5a
properly use limit and offset for search in Jail wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-21 15:37:38 +02:00
Morris Jobke f1dbabd910
Merge pull request #26727 from nextcloud/group-exclude-link-share
Add option to exclude groups from creating link shares
2021-05-21 15:35:39 +02:00
Joas Schilling 9626138873
Fix PHP CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-21 15:34:37 +02:00
Joas Schilling 6fff0b81fe
Add activities for creating, updating and deleting contacts
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-21 15:08:35 +02:00
Joas Schilling 2496f83463
Add activities for addressbook management
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-21 15:08:35 +02:00
Joas Schilling 82629f0f55
Add a setting
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-21 15:08:35 +02:00
Joas Schilling 5fb9256acc
Add a contacts filter
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-21 15:08:21 +02:00
Morris Jobke b1ad3faf14
Merge pull request #25679 from nextcloud/drop/ocp-user
Drop \OCP\User
2021-05-21 15:05:38 +02:00
Morris Jobke 9b83995921
Update CA file
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-21 15:02:04 +02:00
Christoph Wurst 8196420063
Drop \OCP\User
Inlines and remaining usages and drops the deprecated public API.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-21 15:00:34 +02:00
Joas Schilling 5ae5729664
Don't throw when comments is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-21 12:04:23 +02:00
Valdnet 77ca79f697
l10n: Spelling unification
Spelling unification in Transifex.

Signed-off-by: Valdnet 47037905+Valdnet@users.noreply.github.com
2021-05-21 11:50:12 +02:00
blizzz 4aae71cd77
Merge pull request #27032 from nextcloud/bugfix/noid/log-rotation-error
Fix filesize error on log rotation, if file does not exist
2021-05-21 11:40:40 +02:00
Julius Härtl b900d64fd4
Merge pull request #26832 from nextcloud/object-close-stream-non-count
explicitly close source stream on object store upload even if count…
2021-05-21 11:30:43 +02:00
Morris Jobke b2c2f32968
Merge pull request #27039 from nextcloud/fix/2973/rename-external-storages
Rename External storages to External storage
2021-05-21 11:09:52 +02:00
Joas Schilling f602c9328e
Fix log entry readability
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-21 09:07:45 +02:00
Nextcloud bot a6cb2973a9
[tx-robot] updated from transifex 2021-05-21 02:27:50 +00:00
Robin Appelman 7e22487278
fix return value of getStorageInfo when 'quota_include_external_storage' is enabled
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-20 13:55:49 +02:00
Florent d4444f2472
Avoid reading ~/.aws/config when using S3 provider
When using S3 storage, we sometimes have open_basedir errors due to aws-sdk-php trying to read ~/.aws/config which is out of open_basedir restrictions.
Christoph Wurst already added csm=false config in #21406 but it wasn't enough, we also need to set use_arn_region=false, added in this commit.

Signed-off-by: Florent <florent@coppint.com>
2021-05-20 12:21:15 +02:00
szaimen 35d978c2fc Rename External storages to External storage
Signed-off-by: szaimen <szaimen@e.mail.de>
2021-05-20 12:13:04 +02:00
Roeland Jago Douma 279799c6ec
22 beta1
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-20 12:05:46 +02:00
Valdnet 7ffee26aa8
Merge pull request #26511 from nextcloud/Valdnet-patch-4
l10n: Unify spelling
2021-05-20 11:27:24 +02:00
Morris Jobke dc981623aa
Fix test
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-20 09:44:56 +02:00
Valdnet e7c7f9da40 l10n: Unify spelling in "Readme"
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-05-20 07:33:20 +00:00
Valdnet 602448a05b
l10n: Unify spelling in test 2021-05-20 09:26:38 +02:00
Valdnet 0e39cef0d9
l10n: Unify spelling in test 2021-05-20 09:26:38 +02:00
Valdnet 1627eb45bb
l10n: Fix test 2021-05-20 09:26:38 +02:00
Valdnet e7648c2fdd
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:26:38 +02:00
Valdnet 11dc65869d
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:26:37 +02:00
Valdnet 998bcad80c
l10n: Unify spelling
Spelling unification in Nextcloud applications.

Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-05-20 09:22:58 +02:00
Valdnet 9749968308
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:08 +02:00
Valdnet 2137480a06
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:07 +02:00
Valdnet 1abb48375a
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:07 +02:00
Valdnet 7bc22370b4
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:07 +02:00
Valdnet b9d00a96b3
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:07 +02:00
Valdnet f9b7625790
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:07 +02:00
Valdnet d27aecebc0
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:07 +02:00
Valdnet ddfb081463
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:07 +02:00
Valdnet 54fd3a480c
l10n: Unify spelling
Spelling unification in Nextcloud applications.
2021-05-20 09:22:06 +02:00
Nextcloud bot 5432c958be
[tx-robot] updated from transifex 2021-05-20 02:27:58 +00:00
Morris Jobke fa28782084
Merge pull request #26936 from nextcloud/external-storage-delete-clean
better cleanup of filecache when deleting an external storage
2021-05-19 20:40:15 +02:00
Robin Appelman ed2396b045
better cleanup of filecache when deleting an external storage
this way it can delete the cache entries even with per-user credentials

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-19 17:08:20 +02:00
dartcafe 40929cba79
typo
Signed-off-by: dartcafe <github@dartcafe.de>
2021-05-19 15:46:01 +02:00
dartcafe 7c77e74314
fix #25813
Signed-off-by: dartcafe <github@dartcafe.de>
2021-05-19 13:55:29 +02:00
Lukas Reschke fd284f428d
Merge pull request #27024 from nextcloud/enh/audit_log/expiration_date_removal
Properly log expiration date removal in audit log
2021-05-19 13:04:34 +02:00
Morris Jobke 7a0cd9da7c
Merge pull request #27025 from nextcloud/fix/26834/refine-version-comparision
Refine version comparision for repair job for major version updates
2021-05-19 12:23:00 +02:00
Morris Jobke a577768aa6
Refine version comparision for repair job for major version updates
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-19 10:12:57 +02:00
Roeland Jago Douma c728b1f070 Properly log expiration date removal in audit log
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-19 10:09:48 +02:00
Joas Schilling b89f4b33f0
Merge pull request #26834 from nextcloud/enh/only_run_once
Inject the repair job only once
2021-05-19 09:51:40 +02:00
Joas Schilling 4a02726f37
Merge pull request #26852 from nextcloud/fix-noauth-cors
fix error when using CORS with no auth credentials
2021-05-19 09:51:28 +02:00
Roeland Jago Douma aa785d266d
Merge pull request #26963 from nextcloud/bugfix/noid/empty-template-error
Fix log error when creating files from an empty template
2021-05-19 08:46:18 +02:00
Roeland Jago Douma c1f244f608
Merge pull request #27019 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-05-19 08:40:17 +02:00
Nextcloud-PR-Bot 42d3dcb147 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-05-19 04:12:09 +00:00
Nextcloud bot c7238e79be
[tx-robot] updated from transifex 2021-05-19 02:31:32 +00:00
Christoph Wurst ab7a117b8b
Merge pull request #26990 from francoisfreitag/rm-unused
Remove unused apps/dav/js/schedule-response.js
2021-05-18 15:19:45 +02:00
Morris Jobke f4d543b2de
Merge pull request #27007 from francoisfreitag/script
Prefer string $file over 1-element array in script()
2021-05-18 10:27:56 +02:00
Julius Härtl b8d0249b0e Fix log error when creating files from an empty template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-18 10:24:14 +02:00
dependabot-preview[bot] 321f01e2c5
Merge pull request #26987 from nextcloud/dependabot/npm_and_yarn/build/node-sass-6.0.0 2021-05-18 08:21:20 +00:00
Roeland Jago Douma 9e1c367e86
Merge pull request #26980 from nextcloud/bugfix/noid/partfile-move-storage
Use parent wrapper to properly handle moves on the same source/target storage
2021-05-18 10:20:20 +02:00
Julius Härtl 35b910cf8e
Merge pull request #26322 from nextcloud/recent-search
Use file search for recent files and optimize getting share types
2021-05-18 09:44:08 +02:00
Morris Jobke 6f31d20f3d
Merge pull request #26580 from castillo92/patch-2
Fix casing of exception string
2021-05-18 09:29:45 +02:00
Roeland Jago Douma e008b7915e
Merge pull request #27000 from nextcloud/enh/apptoken/check_apptoken
Harden apptoken check
2021-05-18 09:28:48 +02:00
François Freitag d887851183 Prefer string $file over 1-element array in script()
The string syntax is more obvious. There should be one (and preferably
only one) way of doing things.

Signed-off-by: François Freitag <mail@franek.fr>
2021-05-18 09:24:05 +02:00
Roeland Jago Douma 83330b8c4c
Merge pull request #26896 from nextcloud/Valdnet-patch-8
l10n: Replace the apostrophe with double quotation
2021-05-18 08:44:09 +02:00
Roeland Jago Douma ee3dc57cbd
Merge pull request #26626 from J0WI/strict-security
Make Security module strict
2021-05-18 08:43:13 +02:00
korelstar b38e8678e4 fix error when using CORS with no auth credentials 2021-05-18 07:11:10 +02:00
Roeland Jago Douma 4a2775a442 Harden apptoken check
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-17 16:05:45 +02:00
Roeland Jago Douma 44a638f961
Merge pull request #26998 from nextcloud/dependabot/npm_and_yarn/babel/core-7.14.2
Bump @babel/core from 7.13.16 to 7.14.2
2021-05-17 15:26:51 +02:00
Lukas Reschke c4fddd9b5c
Merge pull request #26946 from nextcloud/enh/fed_share/respect_default_permissions
Respect default share permissions for federated reshares
2021-05-17 12:01:59 +02:00
dependabot-preview[bot] 93aff09bda
Bump @babel/core from 7.13.16 to 7.14.2
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.16 to 7.14.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.14.2/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-05-17 09:51:33 +02:00
Roeland Jago Douma 3854e7f8f0 Respect default share permissions for federated reshares
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-17 09:48:31 +02:00
Morris Jobke 77a4368418
Merge pull request #26846 from nextcloud/followup/26572/reply-with-json-when-not-accepting-html
Reply with json when not accepting html on LoginException
2021-05-17 09:36:18 +02:00
Nextcloud bot 06377b7df1
[tx-robot] updated from transifex 2021-05-17 02:26:35 +00:00
Nextcloud bot 5ea903d824
[tx-robot] updated from transifex 2021-05-16 02:26:44 +00:00
François Freitag 3f8fe4f35e Remove unused apps/dav/js/schedule-response.js
File is not included in the schedule-response-options template and is
commented out. The commented code relies on the buttonset() jQuery
plugin, which is deprecated.
https://api.jqueryui.com/buttonset/

If this code was to be re-introduced, it would take a different form.

Signed-off-by: François Freitag <mail@franek.fr>
2021-05-15 10:57:50 +02:00
Nextcloud bot 07476fd991
[tx-robot] updated from transifex 2021-05-15 02:29:20 +00:00
dependabot-preview[bot] 53e03a8b4f
Bump node-sass from 5.0.0 to 6.0.0 in /build
Bumps [node-sass](https://github.com/sass/node-sass) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v5.0.0...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-15 01:14:16 +00:00
Julius Härtl bcf38692ae
Use parent wrapper to properly handle moves on the same source/target storage
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-14 09:41:01 +02:00
Nextcloud bot 3e69ed8849
[tx-robot] updated from transifex 2021-05-14 02:24:59 +00:00
blizzz 0ab5b3e265
Merge pull request #26679 from nextcloud/bugfix/noid/fix-unauthorized-ocs-status-in-provisioning
Fix unauthorized OCS status in provisioning
2021-05-13 23:39:20 +02:00
blizzz b8b2e796bf
Merge pull request #26959 from nextcloud/techdebt/noid/verifiyuserdata-iaccountmanager
VerifyUserData shall use IAccountManager, not private API
2021-05-12 23:35:39 +02:00
blizzz a923213b4f
Merge pull request #26961 from nextcloud/techdet/noid/lib-accountmanager-api
ValidatePhoneNumber and PersonalInfo to use public IAccountManager
2021-05-12 23:35:28 +02:00
Arthur Schiwon 9977027321
VerifyUserData shall use IAccountManager, not private API
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-12 22:57:20 +02:00
Arthur Schiwon a49588bbe5
PersonalInfo settings to use public AccoutManager API
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-12 22:55:34 +02:00
Arthur Schiwon 2ee34ff76c
Repair job to use public AccoutManager API
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-12 22:55:28 +02:00
Roeland Jago Douma 9b36252de0
Merge pull request #26958 from nextcloud/enh/MountPublicLinkController/throttling
Throttle MountPublicLinkController when share is not found
2021-05-12 21:20:09 +02:00
Roeland Jago Douma 50517a2622 Throttle MountPublicLinkController when share is not found
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-12 16:26:31 +02:00
Roeland Jago Douma b01c7289ef
Merge pull request #26962 from nextcloud/fix-cs
Fix CS check
2021-05-12 16:25:12 +02:00
Robin Appelman 8d7fae8fae
fmt
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-12 16:11:55 +02:00
Robin Appelman a9eb1f6af3
update public interface with new methods
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-12 16:11:35 +02:00
Robin Appelman 0e6321957d
allow excluding groups from creating link shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-12 16:11:31 +02:00
Robin Appelman b1dca57a1c
load share settings from the share manager in more places
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-12 16:11:28 +02:00
Roeland Jago Douma 749dd1374c Fix CS check
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-12 16:01:05 +02:00
blizzz 7e1c842d96
Merge pull request #26923 from nextcloud/techdebt/noid/provapi-no-private-accountmanager
provisioning API to use only public API of IAccountManager
2021-05-12 14:17:50 +02:00
Roeland Jago Douma 6c741724fb
Merge pull request #26941 from nextcloud/enh/register-multiselect-fileactions
Allow apps to register a file action for multiselect
2021-05-12 10:53:58 +02:00
Roeland Jago Douma a2a96466fc
Merge pull request #26922 from nextcloud/techdebt/noid/dav-no-private-class
dav: Converter & SyncService shall not use private AccountManager
2021-05-12 10:22:49 +02:00
Roeland Jago Douma 024ed97e7e
Merge pull request #26945 from nextcloud/enh/shareinfo/throttle
Add bruteforce protection to the shareinfo endpoint
2021-05-12 10:07:28 +02:00
Julius Härtl 96515d7338
Allow apps to register a file action for multiselect
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-12 09:48:52 +02:00
Roeland Jago Douma 701294520a Add bruteforce protection to the shareinfo endpoint
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-12 09:34:45 +02:00
Joas Schilling b6c6527705
Fix unauthorized OCS status in provisioning
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 08:16:07 +02:00
Joas Schilling 236f1b64f9
Reply with JSON when html is not accepted like in SecurityMiddleware
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 08:02:53 +02:00
Joas Schilling a2d5d2d613
Reply with UNAUTHORIZED like on APIs when login exception was thrown
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 08:02:53 +02:00
Julius Härtl 0599a8060c
Merge pull request #26949 from nextcloud/fix-add-app-password
fix occ command user:add-app-password
2021-05-12 07:24:32 +02:00
Nextcloud bot 0df326ab20
[tx-robot] updated from transifex 2021-05-12 02:26:16 +00:00
Arthur Schiwon 8413ed9475
allow to set valid scopes only in AccountProperty
the auto-fallback to v2-local is removed as well to react on wrong input

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-12 01:31:15 +02:00
Arthur Schiwon 665ffbdf80
remove private AccountManager from SyncService
and fix test

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-11 23:38:31 +02:00
Bjoern Schiessle da21e86a07 use the UID as loginName and not the display name.
Otherwise the app password will not work for users with a display name different to the UID.

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2021-05-11 20:38:54 +02:00
Roeland Jago Douma bf86050c77
Merge pull request #26751 from nextcloud/3rdparty/archive_tar/1.4.13
[3rdparty] Archive tar 1.4.13 bump
2021-05-11 09:17:43 +02:00
Nextcloud bot b2ad201644
[tx-robot] updated from transifex 2021-05-11 02:26:02 +00:00
Roeland Jago Douma ec6df60062 [3rdparty] Archive tar 1.4.13 bump
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-10 12:40:08 +02:00
Roeland Jago Douma ca49ba6441
Merge pull request #26917 from nextcloud/dependabot/npm_and_yarn/build/hosted-git-info-2.8.9
[Security] Bump hosted-git-info from 2.7.1 to 2.8.9 in /build
2021-05-10 10:22:09 +02:00
dependabot-preview[bot] cc3654ce37
[Security] Bump hosted-git-info from 2.7.1 to 2.8.9 in /build
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9. **This update includes a security fix.**
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-10 07:27:01 +00:00
Roeland Jago Douma 87d6b3fa01
Merge pull request #26919 from nextcloud/dependabot/npm_and_yarn/hosted-git-info-2.8.9
[Security] Bump hosted-git-info from 2.8.8 to 2.8.9
2021-05-10 09:25:20 +02:00
Valdnet 99e6849906
Change the values in test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-05-10 09:22:39 +02:00
Valdnet 73a616101b
Change the values in the test 2021-05-10 09:19:50 +02:00
Roeland Jago Douma 42e118776c
Merge pull request #26925 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-05-10 08:20:57 +02:00
Nextcloud-PR-Bot 87fa87f9fb Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-05-10 04:12:20 +00:00
Nextcloud bot 488eea82dc
[tx-robot] updated from transifex 2021-05-10 02:31:42 +00:00
Nextcloud bot df71883c9a
[tx-robot] updated from transifex 2021-05-09 02:25:15 +00:00
Nextcloud bot 461a975749
[tx-robot] updated from transifex 2021-05-08 02:24:54 +00:00
Arthur Schiwon 1e271e9f76
provAPI to use only public API of IAccountManager
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-08 01:20:17 +02:00
Arthur Schiwon 04edd067f4
dav: do not use private AccountManager
- also updates data structure in test

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-05-08 00:18:17 +02:00
blizzz 0ac4563ae4
Merge pull request #26915 from nextcloud/chore/dav-calendar-untyped-events
Drop even more untyped events from the dav code
2021-05-07 22:46:35 +02:00
dependabot-preview[bot] 06b00e1ad5
[Security] Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. **This update includes a security fix.**
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-07 19:44:13 +00:00
Christoph Wurst cebe951b8e
Remove the untyped calendar update event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-07 17:09:37 +02:00
Christoph Wurst 884e34b12a
Remove the untyped calendar create event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-07 16:58:33 +02:00
Christoph Wurst f8c519f5f0
Merge pull request #26913 from nextcloud/chore/dav-calendar-object-untyped-events
Drop some more untyped events from the dav code
2021-05-07 16:47:44 +02:00
Morris Jobke ed2d6eee1e
Merge pull request #26848 from nextcloud/bugfix/noid/add-datetime-support-to-qbmapper
Add datetime support to QBMapper
2021-05-07 16:02:53 +02:00
Christoph Wurst 6a14f82c1f
Merge pull request #26914 from nextcloud/fix/caldav-get-shares-unused-param
Drop the unused second parameter on \OCA\DAV\CalDAV\CalDavBackend::getShares
2021-05-07 14:59:47 +02:00
Christoph Wurst f5462650f1
Clean up reminder actions and call methods directly
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-07 12:13:47 +02:00
Christoph Wurst 257613e6ef
Remove the \OCA\DAV\CalDAV\CalDavBackend::createCalendarObject event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-07 12:13:45 +02:00
Christoph Wurst f808267949
Remove the \OCA\DAV\CalDAV\CalDavBackend::updateCalendarObject event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-07 12:10:58 +02:00
Christoph Wurst 08a4b24926
Drop the unused second parameter on \OCA\DAV\CalDAV\CalDavBackend::getShares
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-07 11:57:31 +02:00
Christoph Wurst d512a5629e
Remove the \OCA\DAV\CalDAV\CalDavBackend::deleteCalendarObject event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-07 10:53:45 +02:00
Nextcloud bot df685b4b59
[tx-robot] updated from transifex 2021-05-07 02:26:47 +00:00
dependabot-preview[bot] d45462fcf3
Merge pull request #26907 from nextcloud/dependabot/npm_and_yarn/build/lodash-4.17.21 2021-05-06 18:33:08 +00:00
dependabot-preview[bot] f2a2cc7c66
[Security] Bump lodash from 4.17.19 to 4.17.21 in /build
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21. **This update includes a security fix.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-06 17:52:36 +00:00
Valdnet 2349df4ca5
l10n: Replace the apostrophe with double quotation
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-05-06 14:55:35 +02:00
Valdnet c5a4668c88
l10n: Replace the apostrophe with double quotation
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-05-06 14:45:33 +02:00
Nextcloud bot 42f0f27240
[tx-robot] updated from transifex 2021-05-06 02:25:32 +00:00
Morris Jobke 1089ad5d9e
Merge pull request #26877 from nextcloud/chore/query-builder-execute-statement
Rename IQueryBuilder::executeUpdate to IQueryBuilder::executeStatement
2021-05-05 14:19:02 +02:00
Joas Schilling 4d82a9446d
Merge pull request #26878 from nextcloud/bugfix/noid/dont-break-occ-when-an-app-is-breaking-in-application-class
Don't break OCC if an app is breaking in it's Application class
2021-05-05 11:50:40 +02:00
Joas Schilling 20b34875d9
Merge pull request #26869 from nextcloud/Valdnet-patch-8
l10n: Spelling unification
2021-05-05 10:59:52 +02:00
Joas Schilling 784b059a01
Don't break OCC if an app is breaking in it's Application class
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-05 10:41:18 +02:00
Christoph Wurst 99f2fa73d1
Fix usage of rename executeUpdate
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-05 10:35:25 +02:00
Christoph Wurst 865661ed75
Rename IQueryBuilder::executeUpdate to IQueryBuilder::executeStatement
Because executeUpdate wasn't a great name. And in DBAL they also use
executeStatement more consistently now.

Ref https://github.com/doctrine/dbal/issues/4607

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-05 10:31:54 +02:00
Valdnet 4df8fec0c3
Fix test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-05-04 11:38:45 +02:00
Valdnet 48d12b6441
l10n: Spelling unification
Spelling unification in Transifex.

Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-05-04 09:38:46 +02:00
Nextcloud bot 6d3aef1849
[tx-robot] updated from transifex 2021-05-04 02:26:15 +00:00
Morris Jobke 68c8fa8235
Merge pull request #26845 from nextcloud/fix/noid/import-card-fix-string-value
fix creating vcards with multiple string values
2021-05-03 15:49:43 +02:00
Christoph Wurst 7c3f8331ef
Merge pull request #24835 from nextcloud/enhancement/composer-ext-zip
Add ext-zip as platform dependency
2021-05-03 13:29:12 +02:00
Christoph Wurst bf7a7b3f07
Merge pull request #26860 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-05-03 11:07:36 +02:00
Christoph Wurst ab3424ad44
Add ext-zip as platform dependency
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-05-03 10:10:28 +02:00
dependabot-preview[bot] a312746238
Merge pull request #26858 from nextcloud/dependabot/submodules/3rdparty-44e7240 2021-05-03 07:24:33 +00:00
Nextcloud-PR-Bot 2b50f580d9 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-05-03 04:11:45 +00:00
Nextcloud bot ea05e1a6ae
[tx-robot] updated from transifex 2021-05-03 02:25:36 +00:00
dependabot-preview[bot] 032016b53b
Merge pull request #26859 from nextcloud/dependabot/composer/vimeo/psalm-4.7.2 2021-05-03 01:54:21 +00:00
dependabot-preview[bot] 626192eb3e
Bump vimeo/psalm from 4.7.1 to 4.7.2
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.7.1...4.7.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-03 01:24:13 +00:00
dependabot-preview[bot] 1e9410f6ba
Bump 3rdparty from `3fad2ce` to `44e7240`
Bumps [3rdparty](https://github.com/nextcloud/3rdparty) from `3fad2ce` to `44e7240`.
- [Release notes](https://github.com/nextcloud/3rdparty/releases)
- [Commits](3fad2cede2...44e7240812)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-03 01:18:16 +00:00
Nextcloud bot a5faa98e6e
[tx-robot] updated from transifex 2021-05-02 02:25:23 +00:00
Joas Schilling 5c4c527245
Add datetime support to QBMapper
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-01 11:59:19 +02:00
Nextcloud bot 5cccbbdd45
[tx-robot] updated from transifex 2021-05-01 02:26:34 +00:00
Arthur Schiwon a9f39aab29
fix creating vcards with multiple string values
Internally it is valid to provide multiple values for a property as
plain string. An exampe is given in the PhpDoc of
AddressBookImpl::search().

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-30 21:36:05 +02:00
blizzz 36c9441c37
Merge pull request #26593 from nextcloud/bugfix/noid/getMountsForFileId-performance
Filter mounts for file id before trying to get user information
2021-04-30 10:52:44 +02:00
Julius Härtl 1e2cf820c8
Filter mounts for file id before trying to get user information
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-30 07:55:38 +02:00
Nextcloud bot f3baab3159
[tx-robot] updated from transifex 2021-04-30 02:27:46 +00:00
Roeland Jago Douma 3b074c811a Inject the repair job only once
Since we backproted we should do a better check. Else we run the code
again for everybody upgrading to 22.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-29 20:23:12 +02:00
Robin Appelman ef6f2e68f0
explicitly close source stream on object store upload even if count wrapper isn't needed
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-29 17:01:19 +02:00
Morris Jobke 22ba8fa78d
Merge pull request #26826 from nextcloud/refactor/dav-typed-calendar-deleted-events
Exclusively use the typed calendar deletion events for DAV
2021-04-29 16:14:10 +02:00
Christoph Wurst 63eb3694e4
Exclusively use the typed calendar deletion events for DAV
We had both in places, but the old one isn't used anywhere outside this
app, so it's time to migrate the code.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-04-29 15:31:19 +02:00
dependabot-preview[bot] fdf54e9e43
Merge pull request #26736 from nextcloud/dependabot/npm_and_yarn/babel/core-7.13.16 2021-04-29 07:15:26 +00:00
Morris Jobke abb5b5d983
Merge pull request #26820 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-04-29 06:51:53 +02:00
Nextcloud-PR-Bot 6ce115cb2a Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-04-29 04:11:28 +00:00
Nextcloud bot e0f700b1bd
[tx-robot] updated from transifex 2021-04-29 02:26:26 +00:00
Morris Jobke b971f69e26
Merge pull request #26461 from nextcloud/bugfix/noid/only-return-editable-displayname-field-when-allowed-by-backend
Only return display name as editable when the user backend allows it
2021-04-28 20:27:40 +02:00
Morris Jobke d93b001e27
Merge pull request #26811 from nextcloud/enh/lookupserver/do_not_send_if_not_needed
Do not try to contact lookup server if not needed
2021-04-28 17:13:16 +02:00
dependabot-preview[bot] c9b6f42c1a Bump @babel/core from 7.13.15 to 7.13.16
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.15 to 7.13.16.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.16/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-28 12:47:31 +00:00
Roeland Jago Douma 758a662b23 Do not try to contact lookup server if not needed
In some cases (for example you never send data to the lookup server)
there is no need for this job to even try.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-28 14:27:46 +02:00
rakekniven 48f05158e5
Merge pull request #26784 from nextcloud/Valdnet-patch-8
l10n: Change to a capital letter
2021-04-28 10:11:32 +02:00
Christoph Wurst 6a5d89c1ac
Merge pull request #26758 from J0WI/more-strict
Some more strict_types
2021-04-28 09:28:19 +02:00
Valdnet c79aba9865
Change size of the letter in test 2021-04-28 08:57:53 +02:00
Roeland Jago Douma a058377169
Merge pull request #26804 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-04-28 07:45:40 +02:00
Nextcloud-PR-Bot c5e99c3349 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-04-28 04:12:29 +00:00
Nextcloud bot be4f665d2d
[tx-robot] updated from transifex 2021-04-28 02:25:44 +00:00
Robin Appelman ed2d02d5f1
better cleanup of user files on user deletion
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-27 20:29:51 +02:00
kesselb 9658bc9dd0
Merge pull request #26785 from nextcloud/fix/noid/ldap-beyond-last-page
LDAP: do not bother to search after the last page
2021-04-27 19:38:18 +02:00
Joas Schilling 0e6e80aaec
Merge pull request #26781 from nextcloud/bugfix/noid/more-auto-add-cleanup
More cleaning after auto-add removal
2021-04-27 15:56:17 +02:00
kesselb d52ee8929c
Merge pull request #26776 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-04-27 15:41:10 +02:00
Christoph Wurst 99f0b10421
Merge pull request #26591 from nextcloud/techdebt/noid/less-ilogger
Less ILogger
2021-04-27 15:38:12 +02:00
Joas Schilling 03b467bd23
Also check implementsAction method
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 15:28:02 +02:00
Joas Schilling 48c50277a9
Merge pull request #26718 from nextcloud/bugfix/noid/fix-ratelimit-template
Fix ratelimit template
2021-04-27 15:18:02 +02:00
Joas Schilling f67a10e8d0
Only return display name as editable when the user backend allows it
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 15:01:30 +02:00
Joas Schilling c52a026f55
Merge pull request #26572 from nextcloud/bugfix/noid/throw-401-when-authentication-is-provided-and-invalid
Throw "401 Unauthenticated" when authentication is provided but invalid
2021-04-27 14:37:28 +02:00
Joas Schilling 2d75868935
Fix PHP CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:33 +02:00
Joas Schilling 29a66a5e49
Fix PHP CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:32 +02:00
Joas Schilling 167efa19d7
Fix psalm errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:32 +02:00
Joas Schilling df47445c01
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:32 +02:00
Joas Schilling 56ae87c281
Less ILogger
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:32 +02:00
Joas Schilling 13b37a5255
Do not allow to overwrite some variables
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 13:55:35 +02:00
Joas Schilling 174f4dd043
Fix ratelimit template
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 13:55:34 +02:00
Joas Schilling bf1c875425
Merge pull request #26764 from nextcloud/feature/noid/add-geo-location-as-ROS-type
Add geo location as ROS type
2021-04-27 13:54:28 +02:00
Arthur Schiwon 2a5473e146
do not try to search after the last page
- saves an LDAP requests in these cases
- prevents a Protocol Error logged on < 7.3 API (for backports)

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-27 12:52:26 +02:00
Valdnet 505863c55e
l10n: Change to a capital letter
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-04-27 12:38:28 +02:00
Julius Härtl 9de6efd14e
Merge pull request #26774 from nextcloud/techdebt/noid/ldap-remove-pre73-paged-results 2021-04-27 07:00:28 -01:00
Joas Schilling 1029abc8f6
More cleaning after auto-add removal
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 08:13:47 +02:00
Joas Schilling 3f0b7fd289
Merge pull request #26765 from nextcloud/td/no_more_add_auto_trusted
No longer add trusted servers on federated share creation
2021-04-27 08:06:59 +02:00
John Molakvoæ b8cde2c8b6
Merge pull request #26775 from robottod/patch-1
Remove some deprecated calls from ShareByMailProvider.php
2021-04-27 07:59:27 +02:00
Nextcloud-PR-Bot 65d9ba620f Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-04-27 04:12:15 +00:00
Nextcloud bot 2aad4bbed6
[tx-robot] updated from transifex 2021-04-27 02:25:33 +00:00
Arthur Schiwon 5e8f43a55e
removes PagedResults adapter for PHP < 7.3
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-26 22:57:42 +02:00
robottod 0451927994
Remove some deprecated calls from ShareByMailProvider.php
This moves the execute calls to the executeQuery and executeUpdate calls
Resulting in less calls to deprecated functions

Signed-off-by: rtod <robottod@protonmail.com>
2021-04-26 21:53:56 +02:00
Roeland Jago Douma 71e05b1fd3 No longer add trusted servers on federated share creation
It was disabled by default for ages. And often resulted in unwanted
behavior. If admins want trusted servers they just have to do it
manually.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-26 19:47:55 +02:00
Roeland Jago Douma 10df6b93c1
Merge pull request #26763 from nextcloud/enh/federation/improve_permissions
Improve federated permission handling
2021-04-26 17:23:12 +02:00
Joas Schilling 303d689001
Merge pull request #26762 from nextcloud/bugfix/noid/respect-the-error-level-on-logging
Respect the error level when logging
2021-04-26 17:10:52 +02:00
Joas Schilling 7d3c135146
Add geo location as ROS type
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-26 16:47:01 +02:00
Joas Schilling 21ed3419f3
Log deprecation only as debug
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-26 16:19:03 +02:00
Roeland Jago Douma 70f12e7332 Improve federated permission handling
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-26 16:10:44 +02:00
Joas Schilling 8d9e5e0b91
Respect the error level when logging
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-26 14:18:18 +02:00
Joas Schilling aa651fd629
Merge pull request #26259 from nextcloud/feature/noid/validate-website-to-be-valid
Validate the website field input to be a valid URL
2021-04-26 13:56:01 +02:00
J0WI 8323cbb9e5 Use strict
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-26 12:45:12 +02:00
Lukas Reschke e1a3000cbe
Merge pull request #26747 from nextcloud/php8-libxml
Fix installer deprecation warnings for PHP 8
2021-04-26 12:44:38 +02:00
J0WI d1f23b0428 core: add more strict_types
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-26 12:44:37 +02:00
J0WI a369933084 Fix ini_set() type
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-26 12:44:05 +02:00
J0WI efc5c57a79 Some more strict_types
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-26 12:33:45 +02:00
Christoph Wurst 8f3a0705d4
Merge pull request #26755 from yan12125/bugfix/yan12125/caldav-truncation
Correctly truncate multibyte strings to fit into the database
2021-04-26 11:56:26 +02:00
Chih-Hsuan Yen fea5b4a8b9
Correctly truncate multibyte strings to fit into the database
Closes: #26174

Signed-off-by: Chih-Hsuan Yen <yan12125@gmail.com>
2021-04-26 16:54:50 +08:00
Roeland Jago Douma bf9ed2d3cd
Merge pull request #26721 from nextcloud/fix/noid/final-private
private cannot be final
2021-04-26 09:04:18 +02:00
Roeland Jago Douma 8238abd34a
Merge pull request #26750 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-04-26 08:43:58 +02:00
Nextcloud-PR-Bot d6f3a6feb9 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-04-26 04:13:05 +00:00
Nextcloud bot 4ded8a08b7
[tx-robot] updated from transifex 2021-04-26 02:24:39 +00:00
dependabot-preview[bot] 835643b19d
Merge pull request #26749 from nextcloud/dependabot/composer/vimeo/psalm-4.7.1 2021-04-26 01:47:41 +00:00
dependabot-preview[bot] 5a876f5a9d
Bump vimeo/psalm from 4.7.0 to 4.7.1
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.7.0...4.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-26 01:17:16 +00:00
acsfer 3d900b1e58
PHP 8+ deprecates openssl_free_key 2021-04-25 13:50:23 +02:00
acsfer 5882648cac
Only use libxml_disable_entity_loader on PHP<8 2021-04-25 13:45:14 +02:00
Nextcloud bot da17db0fdc
[tx-robot] updated from transifex 2021-04-25 02:24:52 +00:00
Nextcloud bot 39764b05b1
[tx-robot] updated from transifex 2021-04-24 02:26:38 +00:00
Daniel Calviño Sánchez 8fc8451004
Merge pull request #25417 from nextcloud/fix-account-data-visibility-after-disabling-public-addressbook-upload
Fix account data visibility after disabling public addressbook upload
2021-04-23 16:48:36 +02:00
Joas Schilling 04c15e7835
Merge pull request #26719 from nextcloud/chore/dav-cleanup-query-usage
Clean up DB code in the CalDAV backend
2021-04-23 15:38:09 +02:00
Christoph Wurst 323f95693c
Close open cursors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-04-23 14:35:02 +02:00
Maxence Lange bb32880ec4 private cannot be final
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2021-04-23 11:00:10 -01:00
Christoph Wurst 72a4f21efe
Use the new executeQuery and executeUpdate methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-04-23 13:21:25 +02:00
Christoph Wurst 94bf14a8dc
Drop default fetch mode parameter
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-04-23 13:21:25 +02:00
Christoph Wurst 1a1ea4e3ea
Merge pull request #26717 from nextcloud/fix/copy-etag-node-not-found
Only set copy etag if the destination source can be found
2021-04-23 13:20:08 +02:00
Daniel Calviño Sánchez da84ed7d4c Fix active scope not visible in the menu if excluded
Depending on some settings (for example, if lookup server upload is
disabled) some items can be hidden in the scope menu. However, if the
user selected an scope in the past once the settings were changed the
scope was no longer visible in the menu. Now the active scope will be
always visible in the menu, although if it is an excluded scope it will
be disabled. Selecting any other scope will then hide the excluded and
no longer active one.

When upload to the lookup server is disabled the scope menu was hidden
for display name and email in the personal information settings; now the
menu will be always shown to enable the above described behaviour.

Note that the menu will be shown even if there is a single available
scope so the user can read its description.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:42 +02:00
Daniel Calviño Sánchez 7159a70894 Guard against null phone number value
"parsePhoneNumber()" expects a string, so a TypeError would be thrown if
the phone number value is null.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:42 +02:00
Daniel Calviño Sánchez e2c4a174f2 Add integration tests for searching users in contacts menu
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:42 +02:00
Daniel Calviño Sánchez 67dd087ce4 Fix deleting properties of user settings when not given explicitly
The controller can receive an optional subset of the properties of the
user settings; values not given are set to "null" by default. However,
those null values overwrote the previously existing values, so in
practice any value not given was deleted from the user settings. Now
only non null values overwrite the previous values.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:41 +02:00
Daniel Calviño Sánchez ac0c18327e Fix TypeError when "email" is not given in the controller request
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:41 +02:00
Daniel Calviño Sánchez a7431817b9 Respect additional user settings not covered by the controller
"AccountManager::updateUser()" wipes previous user data with whichever
user data is given (except for some adjustments, like resetting the
verified status when needed). As the controller overrode the properties
those properties would lose some of their attributes even if they are
not affected by the changes made by the controller. Now the controller
only modifies the attributes set ("value" and "scope") to prevent that.

Note that with this change the controller no longer removes the
"verified" status, but this is not a problem because, as mentioned,
"AccountManager::updateUser()" resets them when needed (for example,
when the value of the website property changes).

This change is a previous step to fix overwritting properties with null
values, and it will prevent the controller from making unexpected
changes if more attributes are added in the future.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:41 +02:00
Daniel Calviño Sánchez c5e3d2e5c2 Add more unit tests for setting user settings
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:41 +02:00
Daniel Calviño Sánchez 190ffd75b7 Change default test data to values less similar to empty values
Right now it makes no difference, but this should make future tests
clearer, specially in case of failure.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:40 +02:00
Daniel Calviño Sánchez ef5d538448 Extract default test data to a helper getter
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:40 +02:00
Daniel Calviño Sánchez 8cae515daa Use constants from interface rather than class
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:40 +02:00
Christoph Wurst 1722044992
Only set copy etag if the destination source can be found
The etag is only set for files, but it's also possible that in edge
cases the copy destination node can't be found. In that case we don't
need to set any etag.

Required for #26083

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-04-23 10:53:24 +02:00
Roeland Jago Douma 513aba623e
Merge pull request #26715 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-04-23 08:03:54 +02:00
Nextcloud-PR-Bot 797448d2b3 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-04-23 04:11:54 +00:00
Nextcloud bot 539c065e8e
[tx-robot] updated from transifex 2021-04-23 02:26:10 +00:00
Morris Jobke 012f791c8f
Merge pull request #26375 from nextcloud/techdebt/noid/symfony-component-translation-pluralization-rules-is-deprecated
"Symfony\Component\Translation\PluralizationRules" is deprecated
2021-04-22 21:20:16 +02:00
blizzz 6d25c3c7fe
Merge pull request #26627 from nextcloud/smb-341
update icewind/smb to 3.4.1
2021-04-22 19:58:02 +02:00
blizzz 47c9c00b8e
Merge pull request #26700 from nextcloud/bugfix/noid/fix-oci-ci
FIx Oracle by testing on Ubuntu 20.04 until oci8.so is available for …
2021-04-22 19:49:59 +02:00
blizzz 88ef393d7b
Merge pull request #26699 from nextcloud/fix/noid/iresult-php-doc
remove undefined parameter, add description
2021-04-22 19:11:37 +02:00
Joas Schilling 6a43948a6e
FIx Oracle by testing on Ubuntu 20.04 until oci8.so is available for 21.04
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-22 16:57:00 +02:00
Joas Schilling d80cc76ee7
Validate the website field input to be a valid URL
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-22 16:34:13 +02:00
Arthur Schiwon e7691ef6ab
remove undefined parameter, add description
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-22 16:23:01 +02:00
Joas Schilling 83e10b7a73
Adjust integration test
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-22 15:43:57 +02:00
Joas Schilling 4ed296db9f
Fix Authentication test
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-22 15:36:34 +02:00
Joas Schilling 521bb30541
Throw "401 Unauthenticated" when authentication is provided but invalid
E.g. with an AppToken that has been revoked

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-22 15:28:43 +02:00
Joas Schilling da043e52c8
Merge pull request #26586 from nextcloud/bugfix/noid/handle-device-login-like-an-alternative-login
Handle device login like an alternative login
2021-04-22 15:27:58 +02:00
Morris Jobke a011b7021e
Merge pull request #26692 from nextcloud/redirect-forum
Redirect users to forum for questions
2021-04-22 14:05:19 +02:00
Morris Jobke 393309b98f
Merge pull request #25714 from nextcloud/fix/23197/explicitly_check_hex2bin_input
Explicitly check hex2bin input
2021-04-22 13:23:39 +02:00
acsfer 2e41939ece
Typo 2021-04-22 13:15:10 +02:00
acsfer 9f56646694
Redirect users to forum for questions
Be more specific so more users will go directly to the forum instead using Github for non-bug reports.
2021-04-22 13:13:06 +02:00
Nextcloud bot 634b6b8b57
[tx-robot] updated from transifex 2021-04-22 02:26:21 +00:00
Roeland Jago Douma 4e39d1ce93
Merge pull request #26609 from nextcloud/Valdnet-patch-6
l10n: Improve styling
2021-04-21 19:56:41 +02:00
John Molakvoæ 3da956bcdc
Merge pull request #23529 from Simounet/feat/23397-settings-new-user-modal
Settings: new user row replaced by a modal
2021-04-21 16:38:46 +02:00
Morris Jobke 3e7f7e5f9b
Merge pull request #26474 from nextcloud/caugner-patch-mariadb-in-mysql-support-warning
Mention MariaDB in MySQL support warning
2021-04-21 16:26:37 +02:00
kesselb d1db7ab59e
Merge pull request #26575 from nextcloud/s3-set-mimetype
set mimetype for objects uploaded to object storages
2021-04-21 16:16:10 +02:00
Robin Appelman effb7dc8ba
set mimetype for objects uploaded to object storages
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-21 15:25:58 +02:00
Simounet 45c3b2a478
Settings: new user row replaced by a modal
Signed-off-by: Simounet <contact@simounet.net>
2021-04-21 14:42:46 +02:00
Robin Appelman 0d5f4edc22
adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-21 14:09:07 +02:00
Morris Jobke d2ea068552
Merge pull request #26669 from nextcloud/nickvergessen-patch-1
Fix PHP CS
2021-04-21 14:07:17 +02:00
Robin Appelman 907e997c99
optimize getting share types for recent files
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-21 13:56:11 +02:00
Robin Appelman e8221303e9
use search query for Folder::getRecent
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-21 13:56:04 +02:00
Roeland Jago Douma a384cb4e5a
Merge pull request #26648 from nextcloud/Valdnet-patch-7
l10n: Spelling unification
2021-04-21 11:15:54 +02:00
John Molakvoæ 31d88209f7
Merge pull request #25991 from nextcloud/update-acceptance-tests-to-selenium3 2021-04-21 09:31:29 +02:00
Joas Schilling 2a11713337 Update CredentialsManagerTest.php
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-21 08:33:10 +02:00
Roeland Jago Douma db2aea2f04
Merge pull request #26673 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-04-21 08:24:28 +02:00
Nextcloud-PR-Bot 1ac183fb05 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-04-21 04:11:37 +00:00
Nextcloud bot e58344fb2a
[tx-robot] updated from transifex 2021-04-21 02:25:58 +00:00
Morris Jobke 9e8690d912
Merge pull request #26654 from nextcloud/bugfix/noid/fix-security-credentials-manager-test
Fix security credentials manager test
2021-04-20 22:03:52 +02:00
Morris Jobke 5448306238
Merge pull request #26658 from nextcloud/bugfix/noid/continue-on-denied-acls
Do not stop directory listing when ACL is blocking access
2021-04-20 21:35:19 +02:00
Morris Jobke ea0f022816
Merge pull request #26661 from nextcloud/bugfix/noid/fix-ldap-unit-test
Fix LDAP unit tests
2021-04-20 21:34:21 +02:00
Morris Jobke 6c0bb2c338
Merge pull request #26594 from nextcloud/enh/2fa/bootstrap
Move 2FA registration to IBootstrap
2021-04-20 21:30:15 +02:00
Morris Jobke 25406ebba2
Merge pull request #26652 from nextcloud/bugfix/noid/fix-broken-test
Fix broken Expiration test
2021-04-20 21:28:36 +02:00
Roeland Jago Douma a34085e1a2 Move 2fa backupscode to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-20 21:01:16 +02:00
Roeland Jago Douma 5ee9e1f784 Move 2FA registration to IBootstrap
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-20 21:01:16 +02:00
Roeland Jago Douma 46872e3921
Merge pull request #26617 from nextcloud/fix/oracle-column-check-unrelated-migrations
Do not check Oracle column constraints in unrelated migrations
2021-04-20 20:49:06 +02:00
Roeland Jago Douma f31d24dd7a
Merge pull request #26647 from nextcloud/bugfix/noid/empty-filename
Fail when creating new files with an empty path
2021-04-20 20:47:16 +02:00
Roeland Jago Douma 85bdf6c0fc
Merge pull request #26660 from nextcloud/bugfix/noid/fix-twofactor-backupcodes-tests
Fix twofactor backup code tests
2021-04-20 20:44:33 +02:00
Roeland Jago Douma d34d3d168d
Merge pull request #26659 from nextcloud/bugfix/noid/fix-updatenotification-test
Fix update notification tests
2021-04-20 20:43:56 +02:00
Roeland Jago Douma 1e767b4f44
Merge pull request #26662 from nextcloud/bugfix/noid/fix-dav-unit-tests
Fix DAV unit tests
2021-04-20 20:43:24 +02:00
Roeland Jago Douma cd5dd31ab0
Merge pull request #26663 from nextcloud/bugfix/noid/fix-support-test
Fix support tests
2021-04-20 20:42:32 +02:00
Joas Schilling 7f70f3e182
Fix support tests
2) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #0 (35, 15, 2, false)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

3) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #1 (35, 45, 15, false)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

4) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #2 (35, 45, 5, true)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

5) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #3 (35, 45, 55, false)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

Had to use the Database user backend, as using multiple interfaces is deprecated:
https://github.com/sebastianbergmann/phpunit/issues/3955
> This functionality should be deprecated as "having to use it" is almost always a symptom of bad design.
> More importantly, though, the support for the creation of test doubles that implement multiple interfaces
> resulted in code that is hard to maintain.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 17:36:15 +02:00
Joas Schilling 379664974c
Fix DAV unit tests
6) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAccept
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

7) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptSequence
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

8) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptRecurrenceId
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

9) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptTokenNotFound
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

10) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptExpiredToken
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

11) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testDecline
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

12) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testProcessMoreOptionsResult
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

13) OCA\DAV\Tests\unit\CalDAV\CalendarTest::testConfidentialClassification with data set #0 (3, false)
No method rule is set

14) OCA\DAV\Tests\unit\DAV\Migration\RefreshWebcalJobRegistrarTest::testRun
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 17:30:21 +02:00
Joas Schilling 39e248d330
Fix LDAP unit tests
20) OCA\user_ldap\tests\Jobs\UpdateGroupsTest::testHandleKnownGroups
Trying to configure method "fetchAll" which cannot be configured because it does not exist, has not been specified, is final, or is static

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 17:22:52 +02:00
Joas Schilling fe8d98f84b
Fix twofactor backup code tests
16) OCA\TwoFactorBackupCodes\Tests\Unit\Listener\ActivityPublisherTest::testHandleCodesGeneratedEvent
Method publish may not return value of type Mock_IEvent_11bf8381, its return declaration is ": void"

17) OCA\TwoFactorBackupCodes\Tests\Unit\Controller\SettingsControllerTest::testCreateCodes
Method getBackupCodesState may not return value of type string, its return declaration is ": array"

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 17:18:15 +02:00
Julius Härtl 8f01bc65f1
Continue iterating over diretory contents and just hide file if denied by acl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-20 17:17:09 +02:00
Joas Schilling 42140ab53f
Fix update notification tests
18) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #1 ('app2', '1.0.1', '1.0.0', '1.0.0', true, array('user1'), array(array('user1')))
Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void"

19) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #2 ('app3', '1.0.1', false, false, true, array('user2', 'user3'), array(array('user2'), array('user3')))
Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void"

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 17:15:31 +02:00
Joas Schilling c6978bac80
Fix security credentials manager test
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 17:04:24 +02:00
Joas Schilling fc6fbb6499
Fix broken Expiration test
15) Warning
The data provider specified for OCA\Files_Trashbin\Tests\ExpirationTest::testGetMaxAgeAsTimestamp is invalid.
PHPUnit\Util\Exception: Method timestampTestData does not exist

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:53:00 +02:00
Joas Schilling 79ebc7f24c
Fix test by defining plurals
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:43:43 +02:00
Joas Schilling 2228b285c5
Only check translations insteda of the full file
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:43:43 +02:00
Joas Schilling 3cf447ac44
Fix PHP CS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:43:43 +02:00
Joas Schilling 2b8e47dcac
Correclty use plural for share exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:43:40 +02:00
Joas Schilling 5a514a9a41
Correctly replace all PHP placeholders with the parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:42:05 +02:00
Joas Schilling 439457d2b4
Fix languages that miss a string in the translation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:42:04 +02:00
Joas Schilling a4c6749b02
Add a check for the pipe character
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:42:04 +02:00
Joas Schilling 157147cb8e
"Symfony\Component\Translation\PluralizationRules" is deprecated
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 16:42:04 +02:00
Morris Jobke 94322971a5
Merge pull request #26550 from nextcloud/fix/noid/prefer-cloudshare-over-mail-take2
hide mail share if a cloud share is possible – backend only solution
2021-04-20 14:26:14 +02:00
blizzz 92ca49d21d
save a whitespace today
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-20 14:03:01 +02:00
Arthur Schiwon f8d1ee5cfa
ignore mail shares of related remote share results
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-20 14:02:35 +02:00
Jan C. Borchardt 9d1e2c5082
Merge pull request #26548 from nextcloud/design/files-accessibility
Files & Core accessibility fixes
2021-04-20 13:51:40 +02:00
Valdnet a923761acb
l10n: Spelling unification
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2021-04-20 11:33:31 +02:00
Julius Härtl 8398762d78
Fail when creating new files with an empty path
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-20 11:20:20 +02:00
Morris Jobke 67ab4dd6c7
Merge pull request #26624 from nextcloud/enh/sharing/readperm
Consider read permission in sharing tab
2021-04-20 09:27:45 +02:00
Joas Schilling 69290781ff Handle device login like an alternative login
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-20 09:11:33 +02:00
Julius Härtl 59f8685af2
Merge pull request #26633 from nextcloud/enh/sharee/lookup_later
Make lookup search explicit
2021-04-20 05:38:00 -01:00
Nextcloud bot 79116e825c
[tx-robot] updated from transifex 2021-04-20 02:25:58 +00:00
Morris Jobke a67f0b0c47
Merge pull request #26615 from nextcloud/enh/ffs/require_read
Require read permissions for federated shares
2021-04-19 21:50:48 +02:00
Jan C. Borchardt 738ac612d2
Fix accessibility of federation menu privacy buttons
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 21:02:54 +02:00
Jan C. Borchardt 64e90cdc66
Fix accessibility of profile picture section
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 21:02:54 +02:00
Jan C. Borchardt f86a2239e7
Fix missing label of Files navigation sublist toggles
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 21:02:53 +02:00
Jan C. Borchardt abedc275d9
Fix missing label of grid view toggle
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 21:02:53 +02:00
Jan C. Borchardt 34396091e8
Fix screenreader label of search icon
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 21:02:53 +02:00
Jan C. Borchardt 749a266f78
Add proper labels for personal settings privacy toggles
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 20:34:47 +02:00
Jan C. Borchardt 317c77f70f
Improve focus feedback for file list actions
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 20:34:46 +02:00
Jan C. Borchardt a649fbc404
Fix summary footer position and text contrast
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-19 20:34:46 +02:00
Roeland Jago Douma 2ef326d6b6
Merge pull request #26618 from nextcloud/bugfix/noid/fix-english-language
Fix English source string
2021-04-19 20:08:04 +02:00
Roeland Jago Douma dcd45427a6 Make lookup search explicit
Speedsup sharee lookup quite a bit.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-19 20:05:21 +02:00
Roeland Jago Douma adab9deb3e
Merge pull request #26601 from nextcloud/dependabot/npm_and_yarn/nextcloud/dialogs-3.1.2
Bump @nextcloud/dialogs from 3.1.1 to 3.1.2
2021-04-19 19:53:14 +02:00
J0WI ca7b37ce5a Make Security module strict
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-19 17:31:12 +02:00
Daniel Calviño Sánchez 4b376a107b Add automatic handling of "ElementNotInteractable" exceptions
In the WebDriver protocol, when a command fails because it can not
interact with the target element, an "element not interactable" error is
generated. It can be a transitive issue (for example, due to an
animation), so when the error is received the command should be tried
again, just like done, for example, with "ElementNotVisible" exceptions.

However, the last version of the "instaclick/php-webdriver" library
compatible with the Selenium Driver of Mink did not support yet that
WebDriver error. And even if Chrome is run using the old protocol an
unknown "element not interactable" error can be received anyway in some
cases. When an unknown error is received by the
"instaclick/php-webdriver" library it is thrown as a generic Exception
so, until the library can be updated, the message of generic exceptions
is checked and the command is retried if it matched.

For the time being "element not interactable" errors are handled like
"ElementNotVisible" exceptions; this may need to change once the error
is better understood.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-19 16:35:11 +02:00
Robin Appelman eeb72c3338
update icewind/smb to 3.4.1
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-19 16:00:47 +02:00
Roeland Jago Douma 68dadc01af Consider read permission in sharing tab
When updating a share we should make sure to use all the old permissions
(and only change what we actually changed). So the READ permission in
this case should also be fetched instead of always granted.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-19 15:10:51 +02:00
Roeland Jago Douma 9a69b88393
Merge pull request #26613 from nextcloud/enh/no_add_to_your_nc_file_drop
Do not allow adding file drop shares to your own cloud
2021-04-19 14:56:19 +02:00
dependabot[bot] 5370c54084 Bump @nextcloud/dialogs from 3.1.1 to 3.1.2
Bumps [@nextcloud/dialogs](https://github.com/nextcloud/nextcloud-dialogs) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/nextcloud/nextcloud-dialogs/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-dialogs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-dialogs/compare/v3.1.1...v3.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-19 11:37:24 +00:00
Joas Schilling 422ecdeb20
Fix English source string
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-19 13:11:34 +02:00
Christoph Wurst 2ab8268128
Do not check Oracle column constraints in unrelated migrations
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-04-19 13:05:34 +02:00
Roeland Jago Douma 5c42c303e4 Require read permissions for federated shares
Else they end up as weird shares that can't be properly utilized by
other parties anyway.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-19 12:53:49 +02:00
Morris Jobke 2866f4f7d2
Merge pull request #26614 from nextcloud/crl/noid/update-crl-revoked-news
Update root.crl due to revoked news.crt
2021-04-19 12:29:29 +02:00
Roeland Jago Douma 241dfab33f Do not allow adding file drop shares to your own cloud
There is no reason for this and you can't create such shares normally
anyway.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-19 12:17:58 +02:00
Morris Jobke 49dfb8721d
Update root.crl due to revoked news.crt
See https://github.com/nextcloud/app-certificate-requests/pull/382

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-04-19 11:56:37 +02:00
Julius Härtl dd2f3e36b0
Merge pull request #26605 from nextcloud/dependabot/npm_and_yarn/ssri-6.0.2
[Security] Bump ssri from 6.0.1 to 6.0.2
2021-04-19 06:16:08 -01:00
Joas Schilling 751be29c73
Merge pull request #26555 from nextcloud/techdebt/noid/run-migrator-tests-on-OCI
Run migrator tests on OCI
2021-04-19 08:57:41 +02:00
Nextcloud bot 8c82dd37b4
[tx-robot] updated from transifex 2021-04-19 02:26:04 +00:00
Valdnet 2445c82750
l10n: Improve styling
"Empty field" information shifted to the end of the sentence. It looks more stylistic.
2021-04-18 11:39:46 +02:00
Nextcloud bot 286acbedef
[tx-robot] updated from transifex 2021-04-18 02:24:11 +00:00
Nextcloud bot 3ab7d6cf3e
[tx-robot] updated from transifex 2021-04-17 02:24:04 +00:00
dependabot-preview[bot] b0b22e3b41
[Security] Bump ssri from 6.0.1 to 6.0.2
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2. **This update includes a security fix.**
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-16 22:58:18 +00:00
Daniel Calviño Sánchez 9e1246eba5 Update acceptance tests to Selenium 3
The acceptance tests used the last Selenium 2 Docker container
available, which provides a rather old Firefox version (Firefox 47).
Nevertheless, despite some rendering issues, most things still worked as
expected due to the JavaScript files being built with support for older
browsers. However, now that support for Internet Explorer 11 and older
browsers will be dropped things could start to fail, so a newer browser
(and thus a newer Selenium version) should be used in the acceptance
tests.

Selenium has been standardized by the W3C, and the protocol to
communicate between the Selenium server and the browser has changed due
to that. Firefox >= 48 only supports the new W3C protocol, but the
Selenium driver for Mink does not support it yet.

The old protocol can still be used in recent Chromium/Chrome versions by
explicitly forcing it, so for the time being the acceptance tests will
need to be run on Chrome instead (although Firefox provides some
interesting features like the fake streams that would be needed to test
calls in Talk, so they should be moved again to Firefox once possible).

Finally, the default shm size of Docker is 64 MiB. This does not seem
enough to run newer Chrome releases and causes the browser to randomly
crash during the tests ("unknown error: session deleted because of page
crash" is shown in the logs). Due to this "disable-dev-shm-usage" needs
to be used so Chrome writes shared memory files into "/tmp" instead of
"/dev/shm" (the default shm size of Docker could have been increased
instead using "docker run --shm-size...", but that seems to be
problematic when the container is run in current Drone releases).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-16 20:00:15 +02:00
Daniel Calviño Sánchez 14b85f4eec Replace carriage return with WebDriver "ENTER" constant
When the value is set in some input fields a carriage return was sent to
simulate pressing the enter key and thus confirming the input. However,
different browsers use different keys (Firefox uses "\r", but Chrome
uses "\n"), so the carriage return was replaced with the WebDriver
"ENTER" constant which is common to both browsers.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-16 20:00:15 +02:00
Daniel Calviño Sánchez 38b88422a8 Do not send "enter" key when not needed
Sending the "enter" key is not needed in those input fields that auto
save while the user is typing or when the focus is lost (which since
version 1.4.0 the Selenium driver for Mink is automatically done after
setting the value).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-16 20:00:15 +02:00
Roeland Jago Douma d311e08f97
Merge pull request #26592 from nextcloud/enh/2fa_backup/fancy_new_events
Listen to proper UserDeletedEvent
2021-04-16 18:06:50 +02:00
Roeland Jago Douma 9b86e6f829 Listen to proper UserDeletedEvent
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 14:31:40 +02:00
Roeland Jago Douma 874eff9aaa
Merge pull request #26553 from nextcloud/enh/bootstrap/notifiers
Move NotifierService registration to IBootstrap
2021-04-16 14:27:19 +02:00
Roeland Jago Douma 0593b039fc Move over notification to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 13:56:28 +02:00
Roeland Jago Douma fc11617222 Deprecate the old way
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 13:56:28 +02:00
Roeland Jago Douma 808e589035 Allow registering NotifierServices trough IBootstrap
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 13:56:28 +02:00
Roeland Jago Douma 403388269a
Merge pull request #26581 from nextcloud/bugfix/noid/fix-device-login
Fix constraint violation detection in QB Mapper
2021-04-16 11:12:41 +02:00
Roeland Jago Douma ec66943efd
Merge pull request #26559 from J0WI/updno-strict
Updatenotification: add missing strict_types
2021-04-16 10:16:25 +02:00
Roeland Jago Douma bddb3dfcac
Merge pull request #26567 from nextcloud/techdebt/noid/adjust-jquery-deprecation-message
Don't mentioned we will do something with an already released version
2021-04-16 10:15:36 +02:00
Roeland Jago Douma 3d1015c87a
Merge pull request #26560 from J0WI/backupcodes-strict
2FA backupcodes: add strict typing
2021-04-16 10:14:53 +02:00
Roeland Jago Douma 7d8ff27928
Merge pull request #26558 from J0WI/dashboard-strict
Dashboard: add missing strict_types
2021-04-16 10:13:02 +02:00
Joas Schilling 25d11b5197
Fix constraint violation detection in QB Mapper
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-16 10:12:17 +02:00
Joas Schilling 1670d00452 Integer 0 is not stored as Null and therefor works
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-16 09:57:27 +02:00
Joas Schilling 8b4ecdcc88 Test that oracle throws on EmptyValues in a NotNull columns
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-16 09:57:27 +02:00
Joas Schilling e88bad4b0a Run migrator tests on OCI
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-16 09:57:27 +02:00
Roeland Jago Douma 657ee534a8
Merge pull request #26583 from nextcloud/fix/unit-test
Fix unit test
2021-04-16 09:56:18 +02:00
Roeland Jago Douma b5ffca00f7 Fix unit test
* Fix namespace
* Fix test

Was broken after https://github.com/nextcloud/server/pull/26529

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 09:47:52 +02:00
castillo92 12948aa217
Update ShareAPIController.php
Change to capital letters in an abbreviation.

Signed-off-by: castillo92 javiercizquierdo@gmail.com
2021-04-16 08:56:20 +02:00
Nextcloud bot 07278ed57d
[tx-robot] updated from transifex 2021-04-16 02:25:50 +00:00
J0WI 899413b506 Format header
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-15 16:57:06 +02:00
J0WI 09368e7cf5 2FA backupcodes: add strict typing
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-15 16:57:06 +02:00
Julius Härtl 1c35b3801e
Merge pull request #25320 from nextcloud/bugfix/noid/save-fed-share-expiration 2021-04-15 12:06:54 -01:00
Vincent Petry af61486aea
Separate settings for remote share expiration
Added separate settings for default and enforced expiration date for
remote shares.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-15 10:06:09 +02:00
Vincent Petry 2650da70ca
Unit tests for federated share expiration date
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-15 10:02:03 +02:00
Vincent Petry b0aaafe259
Fix expire date capability for federated shares
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-15 10:02:03 +02:00
Vincent Petry 8680bafc5c
Implement expiration date for federated shares
Add expiration date field in UI.
Save expiration date when creating or updating federated share.
Read expiration date from DB in federated share provider.
Applies to both federated user and group shares.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-15 10:02:00 +02:00
npmbuildbot-nextcloud[bot] 48a78aabea Compile assets
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-15 07:32:59 +00:00
Joas Schilling cbca27867a
Don't mentioned we will do something with an already released version
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-15 08:53:17 +02:00
Nextcloud bot 8ef920fdf9
[tx-robot] updated from transifex 2021-04-15 02:25:10 +00:00
J0WI 684a0da48a Dashboard: add missing strict_types
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-14 16:46:25 +02:00
J0WI 8fd2be9655 Updatenotification: add missing strict_types
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-14 16:46:02 +02:00
Roeland Jago Douma f031dd61c1
Merge pull request #26551 from nextcloud/fix/noid/redis-exists-bool
ensure redis returns bool for hasKey
2021-04-14 13:37:23 +02:00
Roeland Jago Douma 644ce9e4f0
Merge pull request #26529 from J0WI/getSystemValue-type
Use correct getSystemValue type
2021-04-14 13:36:56 +02:00
John Molakvoæ 857a40b334
Merge pull request #26533 from nextcloud/fix/add-share-resolve-default
Fix undefined error on add-share
2021-04-14 08:32:26 +02:00
Nextcloud bot 7081c63d09
[tx-robot] updated from transifex 2021-04-14 02:26:51 +00:00
Arthur Schiwon 9f5480eef4
ensure redis returns bool for hasKey
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-13 23:07:54 +02:00
John Molakvoæ 23b8e4a1d4
Merge pull request #26521 from nextcloud/design/login-accessibility 2021-04-13 09:26:08 +02:00
Joas Schilling 421914b4d0
Merge pull request #26467 from nextcloud/feature/noid/allow-apps-to-log-to-audit
Allow apps to log actions into the audit_log
2021-04-13 08:52:08 +02:00
John Molakvoæ (skjnldsv) 4b9991a4f2 Fix undefined error on add-share
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-13 06:21:48 +00:00
Nextcloud bot bab06b9abb
[tx-robot] updated from transifex 2021-04-13 02:24:57 +00:00
J0WI 74a7c2eefc Use correct getSystemValue type
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-04-12 22:54:50 +02:00
Jan C. Borchardt bdd5667ff6
Fix 'Log in with a device' link focusability
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-12 15:01:01 +02:00
Jan C. Borchardt 294ddf741e
Fix log in button hover/focus feedback
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-12 14:59:59 +02:00
Jan C. Borchardt dcf044a7a6
Fix password visibility toggle alt text and hover/focus feedback
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2021-04-12 14:59:31 +02:00
Roeland Jago Douma 4be2e1601e
Merge pull request #26486 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.13.15
Bump @babel/preset-env from 7.13.10 to 7.13.15
2021-04-12 13:33:24 +02:00
Roeland Jago Douma 789bb0d0ac
Merge pull request #26266 from nextcloud/future-proof-networking
Improve networking checks
2021-04-12 12:42:33 +02:00
Joas Schilling 6d502041e0
Fix version
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-12 10:31:10 +02:00
Roeland Jago Douma b07a8fd1fe
Merge pull request #26230 from nextcloud/Valdnet-patch-4
l10n: Add word user in FederatedShareProvider.php
2021-04-12 08:35:50 +02:00
Nextcloud bot ac893e843b
[tx-robot] updated from transifex 2021-04-12 02:24:55 +00:00
Valdnet 6da17a6fab l10n: Add word user in FederatedShareProvider.php
Standardizing text strings with other Nextcloud applications.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-11 13:52:54 +02:00
Roeland Jago Douma 295fee91a8
Merge pull request #26477 from nextcloud/fix/old-handlebar-template
Remove old unused handlebar systemtags template
2021-04-11 13:43:34 +02:00
Roeland Jago Douma 8fc1fff550
Merge pull request #26475 from nextcloud/Valdnet-patch-6
l10n: Correct spelling
2021-04-11 13:34:56 +02:00
Roeland Jago Douma 20b4d0ab11
Merge pull request #26487 from nextcloud/dependabot/npm_and_yarn/nextcloud/capabilities-1.0.4
Bump @nextcloud/capabilities from 1.0.2 to 1.0.4
2021-04-11 13:31:45 +02:00
dependabot-preview[bot] cc7e02c4ff
Bump @babel/preset-env from 7.13.10 to 7.13.15
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.13.10 to 7.13.15.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.15/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-11 11:29:57 +00:00
Roeland Jago Douma d0ffd00cfe
Merge pull request #26483 from nextcloud/dependabot/npm_and_yarn/babel/core-7.13.15
Bump @babel/core from 7.13.13 to 7.13.15
2021-04-11 13:27:09 +02:00
Nextcloud bot d942a5b2be
[tx-robot] updated from transifex 2021-04-11 02:24:42 +00:00
Nextcloud bot bbee01117e
[tx-robot] updated from transifex 2021-04-10 02:31:13 +00:00
dependabot-preview[bot] 523faee823
Bump @nextcloud/capabilities from 1.0.2 to 1.0.4
Bumps [@nextcloud/capabilities](https://github.com/nextcloud/nextcloud-capabilities) from 1.0.2 to 1.0.4.
- [Release notes](https://github.com/nextcloud/nextcloud-capabilities/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-capabilities/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-capabilities/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-10 01:21:15 +00:00
dependabot-preview[bot] cf0851fd97
Bump @babel/core from 7.13.13 to 7.13.15
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.13 to 7.13.15.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.15/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-10 01:17:59 +00:00
John Molakvoæ (skjnldsv) cd8bfbe09c
Remove old unused handlebar systemtags template
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-04-09 14:43:40 +02:00
Valdnet 7cbb2bb595 l10n: Correct spelling
Unify the spelling in applications.

Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-09 11:01:01 +00:00
Joas Schilling 99e5367208
Move to another namespace and class name
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-09 12:51:57 +02:00
Claas Augner 17963ea089
Mention MariaDB in MySQL support warning 2021-04-09 12:31:16 +02:00
Roeland Jago Douma 1f0fddbc69
Merge pull request #26334 from nextcloud/dependabot/npm_and_yarn/sinon-chai-3.6.0
Bump sinon-chai from 3.5.0 to 3.6.0
2021-04-09 11:48:48 +02:00
Joas Schilling ca939214bd
Allow apps to log actions into the audit_log
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-09 10:32:45 +02:00
Roeland Jago Douma 4d390770d1
Merge pull request #26418 from nextcloud/dependabot/npm_and_yarn/webpack-cli-4.6.0
Bump webpack-cli from 4.5.0 to 4.6.0
2021-04-09 09:43:24 +02:00
Roeland Jago Douma 30ac98cdcd
Merge pull request #26462 from nextcloud/dependabot/npm_and_yarn/core-js-3.10.1
Bump core-js from 3.9.1 to 3.10.1
2021-04-09 09:42:56 +02:00
Nextcloud bot 9de329a4c2
[tx-robot] updated from transifex 2021-04-09 02:25:11 +00:00
Roeland Jago Douma b43e21d186
Merge pull request #26401 from nextcloud/enh/handle-avatar-upload-errors
Show informative errors on avatar upload error
2021-04-08 16:12:36 +02:00
dependabot-preview[bot] e2645a5e70 Bump core-js from 3.9.1 to 3.10.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.9.1 to 3.10.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.10.1/packages/core-js)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-08 15:50:13 +02:00
Roeland Jago Douma 2bedbc1793
Merge pull request #26439 from nextcloud/increase-subnet-matcher
Increase subnet matcher
2021-04-08 14:48:27 +02:00
Roeland Jago Douma 521a0b0ad3
Merge pull request #26448 from nextcloud/3rdparty/master/phpseclib-2.0.31
[3rdparty] phpseclib-2.0.31
2021-04-08 13:56:00 +02:00
Roeland Jago Douma 1c35507fc1
Merge pull request #26432 from nextcloud/add-node-and-make-to-default-
Add npm/nodejs/make to .devcontainer
2021-04-08 13:14:33 +02:00
Joas Schilling ba5c99729f
Merge pull request #26458 from nextcloud/bugfix/noid/show-phone-icon-when-setting-is-on-private
Show icon-phone when setting is set to private instead of local
2021-04-08 13:03:22 +02:00
Roeland Jago Douma 3ab659ccaa
Merge pull request #26433 from nextcloud/limit-max-length-of-properties
Limit size of properties to 2048 characters
2021-04-08 12:38:15 +02:00
Lukas Reschke 2befac662c Limit size of properties to 2048 characters
It is unreasonable to expect that one of these fields would be longer
than 2048 characters. Whilst some have definitely lower limits (such as
for phone numbers or domain names), a upper bound as sanity check makes
sense.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-08 11:55:51 +02:00
Roeland Jago Douma bae1dde8fd [3rdparty] phpseclib-2.0.31
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-08 11:31:38 +02:00
Roeland Jago Douma 365569f51c
Merge pull request #26452 from nextcloud/revert-26070-path-prefix-index
Revert "add a prefix index to filecache.path"
2021-04-08 11:27:51 +02:00
Joas Schilling aee1f7253c
Show icon-phone when setting is set to private instead of local
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-08 11:17:52 +02:00
Roeland Jago Douma 14ee17e5c5
Revert "add a prefix index to filecache.path" 2021-04-08 10:09:13 +02:00
Nextcloud bot 41216e68bf
[tx-robot] updated from transifex 2021-04-08 02:24:01 +00:00
Lukas Reschke e5a4236e68 Increase subnet matcher
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-07 12:28:59 +00:00
John Molakvoæ b9907df702
Merge pull request #26252 from Maxopoly/master
Add force option to app install command
2021-04-07 10:09:48 +02:00
Nextcloud bot c391e8692b
[tx-robot] updated from transifex 2021-04-07 02:24:14 +00:00
blizzz f12fab23db
Merge pull request #26431 from nextcloud/fix/comments-load-state
Fix comments maxAutoCompleteResults initial state
2021-04-06 22:36:40 +02:00
Lukas Reschke 4b4971ab52
Merge pull request #24966 from nextcloud/jknockaert-patch-1
avoid fread on directories and unencrypted files
2021-04-06 13:45:10 +02:00
Lukas Reschke 5fe1f134f9 Strictify null check
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-06 11:39:24 +00:00
Lukas Reschke d5c7bb2188 Generate autoload files
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-06 11:37:47 +00:00
Lukas Reschke 9dab851931 Adjust test
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-06 11:37:47 +00:00
Lukas Reschke 5f3abffe6f Improve networking checks
Whilst we currently state that SSRF is generally outside of our threat model, this is something where we should invest to improve this.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-06 11:37:47 +00:00
Lukas Reschke 1e08cd353b Add npm/nodejs/make to .devcontainer
This is required to build some apps such as the spreed app.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-04-06 11:35:00 +00:00
John Molakvoæ (skjnldsv) cd3b3a6fdf
Fix comments maxAutoCompleteResults initial state
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-04-06 12:22:30 +02:00
Roeland Jago Douma 2056b76c5f
Merge pull request #26415 from nextcloud/dependabot/npm_and_yarn/jsdom-16.5.2
Bump jsdom from 16.5.1 to 16.5.2
2021-04-06 09:48:43 +02:00
Nextcloud bot e9075b02cd
[tx-robot] updated from transifex 2021-04-06 02:25:33 +00:00
Nextcloud bot bb3ba96b37
[tx-robot] updated from transifex 2021-04-05 02:24:46 +00:00
Nextcloud bot bfd926938f
[tx-robot] updated from transifex 2021-04-04 02:24:48 +00:00
Nextcloud bot 6f55d2e293
[tx-robot] updated from transifex 2021-04-03 02:25:32 +00:00
dependabot-preview[bot] d0879fd7a5
Bump webpack-cli from 4.5.0 to 4.6.0
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.5.0 to 4.6.0.
- [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.5.0...webpack-cli@4.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-03 01:23:09 +00:00
dependabot-preview[bot] 42987ba66d
Bump jsdom from 16.5.1 to 16.5.2
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.5.1 to 16.5.2.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.5.1...16.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-03 01:19:10 +00:00
Nextcloud bot 4bea123c7a
[tx-robot] updated from transifex 2021-04-02 02:26:04 +00:00
Morris Jobke 5fb909faa5
Merge pull request #24055 from nextcloud/bugfix/noid/enfore-no-notnull-for-boolean-to-store-false
Enforce no notnull for boolean to store false
2021-04-01 18:30:26 +02:00
Roeland Jago Douma 507facda8b
Merge pull request #26396 from nextcloud/bugfix/noid/ro-root-template
Get the parent directory before creating a file from a template
2021-04-01 15:11:25 +02:00
Roeland Jago Douma 037411b381
Merge pull request #26403 from nextcloud/fix-26198-csrf
remove leftover debug @NoCSRFRequired introduced with #26198
2021-04-01 15:09:10 +02:00
Robin Appelman c232a40bdf
remove leftover debug @NoCSRFRequired introduced with #26198
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-01 13:51:53 +02:00
Julius Härtl 6fd571461c
Properly handle creating the template directory in a subfolder (fixes #25787)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-01 13:48:21 +02:00
Julius Härtl 37591f05dc
Get the parent directory before creating a file from a template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-01 13:48:21 +02:00
Roeland Jago Douma bd2e6309b5
Merge pull request #25605 from nextcloud/trusted-proxy-warning-localhost
dont show trusted proxy warning when the proxy and remote are both localhost
2021-04-01 13:27:26 +02:00
Julien Veyssier 7b69897474
show informative errors in log and UI on avatar upload error in user settings
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-04-01 11:55:13 +02:00
Roeland Jago Douma 68d3640076
Merge pull request #26390 from nextcloud/techdebt/noid/increase-php-cs-speed
Increase PHP CS speed
2021-04-01 11:18:55 +02:00
Julius Härtl bbc64cfabc
Merge pull request #26394 from nextcloud/feature/noid/updatable-account-data
Allow apps to write/update account data
2021-04-01 08:05:54 +02:00
Nextcloud bot f016cbe914
[tx-robot] updated from transifex 2021-04-01 02:24:40 +00:00
Morris Jobke 6a81477ffe
Merge pull request #25326 from nextcloud/ldap-factory-no-ldap
make ILDAPProviderFactory usable when there is no ldap setup
2021-03-31 21:23:23 +02:00
blizzz ecf287a094
Merge pull request #26260 from hosting-de/feature/ldap-config-json
Add json, yaml output options to ldap:show-config
2021-03-31 21:12:29 +02:00
Robin Appelman 65b78515bd
make ILDAPProviderFactory usable when there is no ldap setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-31 15:23:33 +02:00
Joas Schilling fcedbc85d0
Allow apps to write/update account data
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 15:18:25 +02:00
John Molakvoæ 91ae7f22b0
Merge pull request #24743 from nextcloud/feat/js-licenses 2021-03-31 13:05:53 +02:00
Johannes Leuker 9660a3fa90 Add json, yaml output options to ldap:show-config
Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
2021-03-31 12:36:22 +02:00
John Molakvoæ (skjnldsv) 11437223e9
Compile node
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-31 12:34:13 +02:00
John Molakvoæ (skjnldsv) 3e624dc399
Bump js licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-31 12:17:18 +02:00
John Molakvoæ (skjnldsv) 91510d95f1
Add js files to license
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-31 12:17:18 +02:00
Joas Schilling 89cf1cb33a
Merge pull request #26386 from nextcloud/bugfix/noid/also-check-default-phone-region-when-no-country-code
Also check the default phone region when the number has no country code
2021-03-31 10:28:51 +02:00
Joas Schilling f9d4fa2d38
Rename the method to match what it does
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:18 +02:00
Joas Schilling 3696ef5b96
Don't allow Notnull for boolean columns
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:17 +02:00
Joas Schilling 133a6f4fe4
Document the constraints we test against
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:17 +02:00
Joas Schilling c98cab137c
Fix exception messages spacing
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:10 +02:00
Joas Schilling c83d9cafb4
Increase PHP CS speed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:09:18 +02:00
Joas Schilling 2f99ae1120
Also check the default phone region when the number has no country code
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 08:45:32 +02:00
Roeland Jago Douma b67ac4ec9b
Merge pull request #26385 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-31 07:27:35 +02:00
Nextcloud-PR-Bot aa7dd1839c Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-31 04:12:05 +00:00
Nextcloud bot 855b5fc638
[tx-robot] updated from transifex 2021-03-31 02:24:50 +00:00
kesselb 2212a67fbc
Merge pull request #25961 from nextcloud/enh/events/2fa_provider
Add real events for enabled 2fa providers for users
2021-03-30 23:13:36 +02:00
Roeland Jago Douma f3738eeff7
Merge pull request #25280 from nextcloud/explicit-file-permissions
Set umask before operations that create local files
2021-03-30 21:55:50 +02:00
Roeland Jago Douma 0a6416f84f
Merge pull request #23444 from nextcloud/notify-dry-run
add dry-run option to files_external:notify
2021-03-30 21:46:27 +02:00
Roeland Jago Douma 7c30d1aa2d
Merge pull request #26219 from nextcloud/relative-path-null
getRelativePath can return null
2021-03-30 21:10:05 +02:00
Roeland Jago Douma 06ae9c3dc7
Merge pull request #26372 from nextcloud/fix/noid/calm-down-recipient-not-in-grp
gracefully handle deleteFromSelf when share is already gone
2021-03-30 20:52:17 +02:00
Roeland Jago Douma 071a38a22f
Merge pull request #26292 from nextcloud/smb-directory-readonly
ignore readonly flag for directories
2021-03-30 13:20:11 +02:00
Arthur Schiwon be3ae9a44b
gracefully handle deleteFromSelf when share is already gone
- handling race conditions

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-30 12:59:40 +02:00
Roeland Jago Douma 08209e649c
Merge pull request #26324 from J0WI/crypt-drop-openssl-09
Drop OpenSSL 0.9.8 workaround
2021-03-30 11:43:44 +02:00
Christoph Wurst c9e18218c8
Merge pull request #25318 from hho/patch-1
Fix "searchUsers" usage in Group_LDAP.php
2021-03-30 11:34:45 +02:00
Joas Schilling 76b4976f37
Merge pull request #26370 from nextcloud/bugfix/noid/kill-notifications-when-retesting
Remove notifications when retesting profile field input
2021-03-30 11:25:27 +02:00
John Molakvoæ 582ab4129d
Merge pull request #25983 from nextcloud/update-acceptance-tests-dependencies 2021-03-30 10:31:37 +02:00
Joas Schilling ebc3b1f802
Remove notifications when retesting
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-30 10:18:23 +02:00
Roeland Jago Douma 663f314aae
Merge pull request #26336 from nextcloud/dependabot/npm_and_yarn/css-loader-5.2.0
Bump css-loader from 5.1.3 to 5.2.0
2021-03-30 09:49:48 +02:00
Roeland Jago Douma 739fb89c3e
Merge pull request #26368 from nextcloud/dependabot/composer/vimeo/psalm-4.7.0
Bump vimeo/psalm from 4.6.4 to 4.7.0
2021-03-30 09:23:40 +02:00
Daniel Calviño Sánchez f216b9307a
Update Mink from 1.7.1 to 1.8.1 in acceptance tests
Since version 1.8.0 of Mink "Mink::getSession()" no longer starts the
session automatically (see https://github.com/minkphp/Mink/pull/705), so
it now needs to be explicitly started.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-30 08:35:16 +02:00
Daniel Calviño Sánchez 7625a87412
Update Selenium driver for Mink from 1.3.1 to 1.4.0 in acceptance tests
Since version 1.4.0 the Selenium driver for Mink uses again the element
on which the value was set (see
https://github.com/minkphp/MinkSelenium2Driver/pull/286). When creating
a new folder or renaming one sending a new line ("\r") caused the
element on which the value was set to be removed, so the element was no
longer attached to the DOM when the driver tried to use it again, and
thus a "StaleElementReference" exception was thrown.

Due to this now it is needed to explicitly click the confirm button when
creating a new folder. In the case of the renaming, on the other hand,
nothing else besides not sending the new line is needed, as the Selenium
driver now unfocuses the element (that is why it uses again the element
after setting the value) which triggers the renaming.

Besides that, the Selenium driver for Mink uses a library to simulate
certain events, bitovi/syn. In version 1.4.0 that library was updated to
version 0.0.3, which seems to somehow break pressing the "escape" key.
Due to this now the sharing menu has to be closed by pressing "enter" on
the share menu button instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-30 08:35:16 +02:00
Daniel Calviño Sánchez 223b36e851
Update Behat from 3.7.0 to 3.8.1 in acceptance tests
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-30 08:35:16 +02:00
Daniel Calviño Sánchez b53f49b940
Update PHPUnit from 4.X to 6.X in acceptance tests
The PHPUnit update also required an update of "symfony/yaml", so besides
the changes needed for PHPUnit the "behat.yml" file also had to be
adjusted.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-30 08:35:15 +02:00
Julius Härtl 59d567e864
Merge pull request #26367 from nextcloud/dependabot/npm_and_yarn/y18n-4.0.1
[Security] Bump y18n from 4.0.0 to 4.0.1
2021-03-30 08:10:10 +02:00
Nextcloud bot a9ff9670fa
[tx-robot] updated from transifex 2021-03-30 02:24:18 +00:00
dependabot-preview[bot] e7f1ebaf29
Bump vimeo/psalm from 4.6.4 to 4.7.0
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.6.4 to 4.7.0.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.6.4...4.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-30 01:14:32 +00:00
dependabot-preview[bot] 6e2972fb65
[Security] Bump y18n from 4.0.0 to 4.0.1
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. **This update includes a security fix.**
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-29 19:17:12 +00:00
Roeland Jago Douma 30e2233354
Merge pull request #26355 from nextcloud/bugfix/noid/wording-fixes-for-phone-number-integration
Fix working for phone number integration
2021-03-29 21:03:57 +02:00
Roeland Jago Douma e77088c7e8
Merge pull request #26361 from nextcloud/dependabot/npm_and_yarn/build/y18n-4.0.1
[Security] Bump y18n from 4.0.0 to 4.0.1 in /build
2021-03-29 20:49:55 +02:00
Roeland Jago Douma 2dd565a253
Merge pull request #26335 from nextcloud/dependabot/npm_and_yarn/babel/core-7.13.13
Bump @babel/core from 7.13.10 to 7.13.13
2021-03-29 20:44:02 +02:00
Roeland Jago Douma 60835646be
Merge pull request #26333 from nextcloud/dependabot/npm_and_yarn/debounce-1.2.1
Bump debounce from 1.2.0 to 1.2.1
2021-03-29 20:41:25 +02:00
Roeland Jago Douma d8160fb2ad
Merge pull request #26325 from J0WI/crypt-config-sample
Update cipher defaults
2021-03-29 20:38:10 +02:00
dependabot-preview[bot] c7b83a8d4a
[Security] Bump y18n from 4.0.0 to 4.0.1 in /build
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. **This update includes a security fix.**
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-29 17:30:08 +00:00
Joas Schilling 6ae3de247d
Fix working for phone number integration
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-29 17:04:32 +02:00
Morris Jobke f8bad86097
Merge pull request #26342 from pirate/cal-invite-email-use-pngs
Fix broken Calendar Event Invite email icons in Gmail by using PNGs instead of SVGs
2021-03-29 11:01:46 +02:00
Joas Schilling 8d3fdf24c8
Merge pull request #26353 from nextcloud/techdebt/noid/make-testcase-class-compatible-with-phpunit-9.5
Make Testcase class compatible with phpunit-9.5
2021-03-29 10:47:37 +02:00
Julius Härtl 6bef9e71da
Merge pull request #26337 from nextcloud/dependabot/npm_and_yarn/url-search-params-polyfill-8.1.1
Bump url-search-params-polyfill from 8.1.0 to 8.1.1
2021-03-29 10:33:38 +02:00
Joas Schilling cd35a5c71d
Make Testcase class compatible with phpunit-9.5
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-29 09:43:08 +02:00
dependabot-preview[bot] e2216d44fd Bump url-search-params-polyfill from 8.1.0 to 8.1.1
Bumps [url-search-params-polyfill](https://github.com/jerrybendy/url-search-params-polyfill) from 8.1.0 to 8.1.1.
- [Release notes](https://github.com/jerrybendy/url-search-params-polyfill/releases)
- [Commits](https://github.com/jerrybendy/url-search-params-polyfill/compare/v8.1.0...v8.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-29 07:41:21 +00:00
Joas Schilling 602de272c0
Merge pull request #26243 from nextcloud/enh/noid/avatar-privacy-new-scope
Avatar privacy and new scope
2021-03-29 09:01:12 +02:00
Nextcloud bot 4564121c56
[tx-robot] updated from transifex 2021-03-29 02:23:55 +00:00
Roeland Jago Douma 1175c0d832
Merge pull request #26348 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-28 08:45:22 +02:00
Nextcloud-PR-Bot 3b5cb333e4 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-28 04:12:03 +00:00
Nextcloud bot be83a32411
[tx-robot] updated from transifex 2021-03-28 02:24:04 +00:00
Morris Jobke 83c7b54ba6
Merge pull request #26327 from nextcloud/fix-get-return
fix return value of Root::get
2021-03-27 22:26:32 +01:00
Nick Sweeting 8c6f0aa3d2 change calendar invite emails to use pngs instead of svgs
Signed-off-by: Nick Sweeting <git@sweeting.me>
2021-03-26 23:57:48 -04:00
Nextcloud bot aec9c8437a
[tx-robot] updated from transifex 2021-03-27 02:24:25 +00:00
dependabot-preview[bot] b561bac2a7
Bump css-loader from 5.1.3 to 5.2.0
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.1.3 to 5.2.0.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.1.3...v5.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-27 02:23:19 +00:00
dependabot-preview[bot] a2d0f06645
Bump @babel/core from 7.13.10 to 7.13.13
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.10 to 7.13.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.13/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-27 02:22:05 +00:00
dependabot-preview[bot] 754b8e017f
Bump sinon-chai from 3.5.0 to 3.6.0
Bumps [sinon-chai](https://github.com/domenic/sinon-chai) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/domenic/sinon-chai/releases)
- [Changelog](https://github.com/domenic/sinon-chai/blob/master/CHANGELOG.md)
- [Commits](https://github.com/domenic/sinon-chai/compare/3.5.0...3.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-27 02:20:51 +00:00
dependabot-preview[bot] afa4354c22
Bump debounce from 1.2.0 to 1.2.1
Bumps [debounce](https://github.com/component/debounce) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/component/debounce/releases)
- [Changelog](https://github.com/component/debounce/blob/master/History.md)
- [Commits](https://github.com/component/debounce/compare/1.2.0...1.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-27 02:19:33 +00:00
Robin Appelman c8736e7a23
fix return value of Root::get
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-26 21:29:24 +01:00
J0WI fdd1ff2686 Update cipher defaults
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-03-26 19:39:08 +01:00
J0WI 21494a5b7b Drop OpenSSL 0.9.8 workaround
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2021-03-26 19:23:10 +01:00
Vincent Petry 00d83a5db0
Capability for federated scope
Added additional capability in the provisioning API to signal whether
the federation scope values can be used.

This is based on whether the lookup server upload is enabled or not.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 16:54:47 +01:00
Vincent Petry 5a8b7c1cb2
Update autoloader for PlaceholderAvatar
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:10 +01:00
Vincent Petry 98e4ac39bc
Int tests for provisioning API scopes
Added integration tests for the scope attributes in the provisioning
API.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:10 +01:00
Vincent Petry cc54f718f5
Add known user check in avatar when v2-private scope
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:10 +01:00
Vincent Petry 5b7a94f84c
Update psalm-baseline for Avatar API quirks
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:10 +01:00
Vincent Petry aac7b52c66
Change account property capability
Include version number in capability

Signed-off-by: Vincent Petry <vincent@nextcloud.com>

Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2021-03-26 13:07:10 +01:00
Vincent Petry bb008be28a
Added PlaceholderAvatar with own cached images
When avatar scope is private, the PlaceholderAvatar is used to deliver a
placeholder avatar based on the user's initials.

This was implemented as a separate class for now to avoid messing with
the existing UserAvatar implementation and its generated vs
non-generated logic.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:09 +01:00
Vincent Petry b66af8a432
Add capability for editable scopes in provisioning API
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:09 +01:00
Vincent Petry b73df5846c
Add property scope tests for AccountManager
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:09 +01:00
Vincent Petry cb9d25c162
Enhance UsersControllerTest of provisioning API with scopes
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:09 +01:00
Vincent Petry 2a312fe4e3
Expose avatarScope through provisioning API
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:09 +01:00
Vincent Petry 266a6fb5f8
OCS allow reading and writing account property scopes
Extends the provisioning API to allow a user to get and set their own
account property scopes.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:08 +01:00
Vincent Petry 5d14fd4396
Make extra user profile fields always editable
The fields for phone number, address, website and twitter are now
editable regardless whether federated sharing and the lookup server
are enabled or not.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:08 +01:00
Vincent Petry 278a73789e
Map old account scope properties to new names
Use new scope values in settings page.
Adjust all consumers to use the new constants.
Map old scope values to new ones in account property getter.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:08 +01:00
Vincent Petry 9fb447ea42
Adjust scopes menu based on conditions
Now not all fields have the "v2-private" option in place.
Fix dropdown issue when a scope was stored that is not listed after
disabling the lookup server.
Whenever the lookup server upload is disabled, the scope menu is now
displayed where it makes sense to allow switching between the two private
scopes.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:08 +01:00
Vincent Petry b81a1c1bdb
Add new v2-private account scope
Added new v2-private account manager scope that restricts the scope
further by excluding public link access.

Avatars with v2-private account scope are now showing the guest avatar
instead of the real avatar.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-26 13:07:05 +01:00
Roeland Jago Douma a75f0e62fa
Merge pull request #26308 from nextcloud/enhancement/timed-job-interval-description
Document that the TimedJob interval is in seconds
2021-03-26 10:45:50 +01:00
Roeland Jago Douma 9fd29173cf
Merge pull request #26281 from hosting-de/fix/email
Change my email address
2021-03-26 09:59:35 +01:00
Christoph Wurst 389623a910
Document that the TimedJob interval is in seconds
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-26 09:13:05 +01:00
John Molakvoæ fbbcf26099
Merge pull request #22201 from cweiske/20492-move-contacts-with-birthday
Delete old birthday calendar object when moving contact to another ad…
2021-03-26 07:59:16 +01:00
Christian Weiske 8ee995f214
Delete old birthday calendar object when moving contact to another address book
When an contact is moved to another address book, the contact is copied to
the second address book.
During copying, the birthday event is created - but it gets the same UID
as the contact's birthday event in the first address book.

To prevent the "Calendar object with uid already exists" error that followed,
we need to delete the old entry before the new one is created.

Resolves: https://github.com/nextcloud/server/issues/20492
Signed-off-by: Christian Weiske <cweiske@cweiske.de>
2021-03-26 07:31:16 +01:00
Morris Jobke 09718c20aa
Merge pull request #26304 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-26 07:08:10 +01:00
Nextcloud-PR-Bot 3319ed8aca Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-26 04:16:04 +00:00
Nextcloud bot 630eddf41b
[tx-robot] updated from transifex 2021-03-26 02:25:32 +00:00
Morris Jobke c25daf5df7
Merge pull request #26299 from nextcloud/enh/noid/log-storage-unavailable
Log when a storage is marked as unavailable
2021-03-25 17:08:13 +01:00
Morris Jobke 81fef4ddee
Log when a storage is marked as unavailable
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-25 16:19:08 +01:00
Roeland Jago Douma 570c25c861
Merge pull request #26287 from nextcloud/Valdnet-patch-6
Fix l10n
2021-03-25 13:14:15 +01:00
Robin Appelman 43f70e5817
ignore readonly flag for directories
see http://support.microsoft.com/kb/326549

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-25 12:03:09 +01:00
Roeland Jago Douma f97491eb8f
Merge pull request #26285 from nextcloud/techdebt/noid/cleanup-update-events
Remove event listener to udpate events that are not present anymore
2021-03-25 11:12:34 +01:00
Valdnet 107bbebb6c
Fix l10n
Issue: #26286
2021-03-25 10:26:50 +01:00
Christoph Wurst fab7c84b92
Merge pull request #26283 from nextcloud/revert-25721-do-not-target-vue-buttons
Revert "Do not target vue buttons with server rules"
2021-03-25 09:16:34 +01:00
Morris Jobke ad16b19ec7
Merge pull request #21484 from nextcloud/better-forbidden-path-errors
show better error messages when a file with a forbidden path is encountered
2021-03-25 09:15:52 +01:00
Morris Jobke 3388758d04
Remove event listener to udpate events that are not present anymore
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-25 09:01:09 +01:00
Roeland Jago Douma c15172bc4e
Merge pull request #21641 from nextcloud/techdebt/noid/bye-bye-database-xml
Bye bye database xml
2021-03-25 08:58:07 +01:00
Nextcloud bot 9af8c0b380
[tx-robot] updated from transifex 2021-03-25 02:25:39 +00:00
Morris Jobke ab48d5e8cb
Cleanup unneeded code around database.xml
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-24 22:15:44 +01:00
Morris Jobke 2a749882e7
Merge pull request #26282 from nextcloud/psalm/avatar/data
improve type handling of Avatar::generateAvatarFromSvg
2021-03-24 21:46:21 +01:00
Joas Schilling bb0c50717c
Bye bye database.xml
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-24 20:04:12 +01:00
Greta 6078eab30b Revert "Do not target vue buttons with server rules"
Signed-off-by: GretaD <gretadoci@gmail.com>
2021-03-24 20:03:57 +01:00
Robin Appelman aee4caed07
show better error messages when a file with a forbidden path is encountered
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-24 17:13:09 +01:00
Robin Appelman db0e198fe0
improve type handling of Avatar::generateAvatarFromSv
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-24 17:09:53 +01:00
Joas Schilling 6e40c2fb52
Merge pull request #26274 from nextcloud/bugfix/noid/make-debugging-easier
Make debugging easier which header is being set
2021-03-24 15:24:49 +01:00
Johannes Leuker e9ca59ef0a Change my email address
Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
2021-03-24 15:13:56 +01:00
Robin Appelman 8a92229485
getStorage can also return null
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-24 14:56:40 +01:00
Robin Appelman e8184eaaad
proper error for search results outside user folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-24 14:33:35 +01:00
Robin Appelman f842608c95
getRelativePath can return null
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-24 14:30:29 +01:00
Robin Appelman 98c3eb6cad
add dry-run option to files_external:notify
and add some additional logging

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-24 14:28:04 +01:00
Joas Schilling 4406092fd6
Merge pull request #26265 from nextcloud/bugfix/noid/fix-php8-setup-failures
Fix casing of core test folder, bring back missing tests
2021-03-24 13:25:03 +01:00
Joas Schilling 02c011c4f7
Make debugging easier which header is being set
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-24 13:22:44 +01:00
John Molakvoæ 057c72d38b
Merge pull request #26270 from nextcloud/fix/invalid-source-storage-path
Catch invalid cache source storage path
2021-03-24 12:01:46 +01:00
John Molakvoæ (skjnldsv) 2074d87d0c
Catch invalid cache source storage path
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-24 10:36:51 +01:00
Vincent Petry 39a6d99526
Fix language codes test result order
Fixes issue with Oracle by enforcing the order of the results to check.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 10:26:06 +01:00
John Molakvoæ da6019df67
Merge pull request #26255 from nextcloud/Valdnet-patch-6
l10n: Separate ellipsis
2021-03-24 09:13:20 +01:00
Vincent Petry 8b92776be4
Bring back forgotten tests
Remove "ocs-provider" test folder reference as it doesn't exist any
more.
Added back "Test" test subdir and fixed the tests inside.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 09:07:54 +01:00
Vincent Petry 95e03fba2d
Fix more controller tests in Core subdir
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 09:02:19 +01:00
Vincent Petry 9b8ca1697a
Fix more tests in the Core subdir
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-24 08:48:28 +01:00
Roeland Jago Douma 04e98bf0d6
Merge pull request #26269 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-24 07:16:03 +01:00
Nextcloud-PR-Bot 80409b2181 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-24 04:10:58 +00:00
Nextcloud bot bb8a71266e
[tx-robot] updated from transifex 2021-03-24 02:25:07 +00:00
Vincent Petry c467f64848
Fix core tests command for app enabling/disabling
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-23 20:40:28 +01:00
Vincent Petry e210e8e35a
Fix casing of core test folder
It seems Phpunit < 9 was case insensitive.
Fixed the phpunit config to target the correct name for the "Core" test
directory.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-23 18:12:46 +01:00
Robin Appelman e5dc1a8085
Set umask before operations that create local files
this solves issues where "other php stuff" is messing with the umask

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-23 14:52:31 +01:00
Valdnet 21db5bf9b9
l10n: Separate ellipsis
Unifying the text string with the others.
2021-03-23 09:12:52 +01:00
Roeland Jago Douma a219fa587a
Merge pull request #25776 from nextcloud/fix/sabre-file-checksum-no-file-info
Only write checksum if we have a valid file info
2021-03-23 08:59:21 +01:00
Christoph Wurst 24ec924586
Merge pull request #26033 from nextcloud/enh/comments/to_initialstate
Move comments to initial state
2021-03-23 08:33:42 +01:00
Roeland Jago Douma 9c9cac6689
Merge pull request #26253 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-23 07:26:13 +01:00
Nextcloud-PR-Bot 069af5931f Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-23 04:35:21 +00:00
Nextcloud bot a81408a8e1
[tx-robot] updated from transifex 2021-03-23 02:24:02 +00:00
Maxopoly 1f93721097 Add force option to app install command
Signed-off-by: Maxopoly <max@dermax.org>
2021-03-22 23:49:13 +01:00
Morris Jobke 1c074e7602
Merge pull request #26198 from nextcloud/unified-search-node
Handle limit offset and sorting in files search
2021-03-22 21:48:51 +01:00
Roeland Jago Douma 8988406789 Move comments to initial state
* Do not extend the jssettings
* Just use the proper intial state
* Use it in the js code as well

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-22 20:31:56 +00:00
Morris Jobke 1eb084cfd3
Merge pull request #25498 from Worteks/feat-federatedfilesharing-logging
feat(federatedfilesharing): log errors, as suggested by @maxbes
2021-03-22 21:21:53 +01:00
Christoph Wurst 8152189b09 Only write checksum if we have a valid file info
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-22 21:11:07 +01:00
Morris Jobke 268acd301d
Merge pull request #25529 from nextcloud/fix-non-lgc-glyphs-in-avatars-and-txt-file-previews
Fix non LGC glyphs in avatars and txt file previews
2021-03-22 21:06:22 +01:00
Roeland Jago Douma 3c5cf825b3 Add real events for enabled 2fa providers for users
* Shiny new events
* Listener to still emit the old event

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-22 20:57:10 +01:00
Roeland Jago Douma 90909ab9b9
Merge pull request #26149 from nextcloud/fix/ownership-transfer-ready-encryption
Only perform login check during ownership transfer for encryption
2021-03-22 20:28:25 +01:00
Roeland Jago Douma 51823ade26
Merge pull request #26247 from nextcloud/bugfix/noid/product-name-on-updater
Bugfix/noid/product name on updater
2021-03-22 19:44:06 +01:00
Joas Schilling f35d7adf7d
Don't hardcode the product name to Nextcloud but use the theming value
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-22 16:32:35 +01:00
Joas Schilling 7f3a5de20c
Use the product name in the updater screen
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-22 16:31:50 +01:00
John Molakvoæ 6b4cfc5805
Merge pull request #26231 from nextcloud/Valdnet-patch-6
l10n: Add words user and because in ShareByMailProvider.php
2021-03-22 09:42:01 +01:00
Roeland Jago Douma 1de45da3b6
Merge pull request #26223 from nextcloud/dependabot/npm_and_yarn/mocha-8.3.2
Bump mocha from 8.3.0 to 8.3.2
2021-03-22 09:19:26 +01:00
Valdnet 1dab60a79d
l10n: Add changes to text string for user 2021-03-22 09:01:45 +01:00
Roeland Jago Douma d3647dcc17
Merge pull request #24364 from nextcloud/fix/sharing-mail-link-parity
Sharing link & mail parity
2021-03-22 07:56:10 +01:00
John Molakvoæ (skjnldsv) 15767643f2
Fix sharebymail tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-22 06:50:47 +01:00
Daniel Calviño Sánchez f99876997a
Remove duplicated query for email shares
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-22 06:50:47 +01:00
John Molakvoæ (skjnldsv) 0f3f6a6c54
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-22 06:50:47 +01:00
John Molakvoæ (skjnldsv) a100186e5e
Sharing link & mail parity
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-22 06:50:45 +01:00
John Molakvoæ (skjnldsv) 5e519fe17a
Clear the input after adding a new share
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-22 06:41:33 +01:00
John Molakvoæ (skjnldsv) c47e79fc67
Handle enforced password for mail shares in the WebUI
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-22 06:40:43 +01:00
John Molakvoæ (skjnldsv) c8e0809d43
Extract GeneratePassword function to its own file
This is needed to be able to use the function from other components.

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-22 06:40:41 +01:00
John Molakvoæ (skjnldsv) 100d5d9a47
Add labels to mail shares
Now the email is shown on a second line if a label is set.

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-22 06:34:09 +01:00
Nextcloud bot ae19cb168f
[tx-robot] updated from transifex 2021-03-22 02:23:45 +00:00
Morris Jobke 9e9b014e31
Merge pull request #26046 from nextcloud/smb-3.4.0
update icewind/smb to 3.4.0
2021-03-21 21:05:57 +01:00
Morris Jobke fac3c1d278
Merge pull request #26229 from nextcloud/dependaroeland/libphonnumber
[3rdparty] Bump giggsey/libphonenumber-for-php to 8.12.20
2021-03-21 21:03:19 +01:00
Nextcloud bot 8c7e246d98
[tx-robot] updated from transifex 2021-03-21 02:23:12 +00:00
Roeland Jago Douma 1341dc329f
Merge pull request #26098 from nextcloud/dependabot/npm_and_yarn/marked-2.0.1
Bump marked from 2.0.0 to 2.0.1
2021-03-20 18:01:41 +01:00
Valdnet 4b4b1f6ff1
l10n: Add word user in ShareByMailProvider.php
Standardizing text strings with other Nextcloud applications.
2021-03-20 15:37:32 +01:00
dependabot-preview[bot] c5c6d19676 Bump marked from 2.0.0 to 2.0.1
Bumps [marked](https://github.com/markedjs/marked) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v2.0.0...v2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-20 15:35:43 +01:00
Roeland Jago Douma 16b1c02848
Merge pull request #26101 from nextcloud/dependabot/npm_and_yarn/babel/core-7.13.10
Bump @babel/core from 7.13.8 to 7.13.10
2021-03-20 15:01:29 +01:00
dependabot-preview[bot] 7cc982df54
Merge pull request #26103 from nextcloud/dependabot/npm_and_yarn/clipboard-2.0.8 2021-03-20 13:18:33 +00:00
dependabot-preview[bot] 017537ab95 Bump clipboard from 2.0.6 to 2.0.8
Bumps [clipboard](https://github.com/zenorocha/clipboard.js) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/zenorocha/clipboard.js/releases)
- [Commits](https://github.com/zenorocha/clipboard.js/compare/v2.0.6...v2.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-20 12:46:13 +00:00
Roeland Jago Douma 7baa7e7597 [3rdparty] Bump giggsey/libphonenumber-for-php to 8.12.20
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-20 13:36:14 +01:00
dependabot-preview[bot] ed86c2c651
Bump mocha from 8.3.0 to 8.3.2
Bumps [mocha](https://github.com/mochajs/mocha) from 8.3.0 to 8.3.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.3.0...v8.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-20 12:22:42 +00:00
dependabot-preview[bot] 004789fd36
Merge pull request #26102 from nextcloud/dependabot/npm_and_yarn/jsdom-16.5.1 2021-03-20 12:19:52 +00:00
dependabot-preview[bot] 875c41f954
Merge pull request #26104 from nextcloud/dependabot/npm_and_yarn/dompurify-2.2.7 2021-03-20 11:42:39 +00:00
dependabot-preview[bot] 387370fd37 Bump dompurify from 2.2.6 to 2.2.7
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.2.6 to 2.2.7.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/2.2.6...2.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-20 11:43:39 +01:00
Roeland Jago Douma 78e5120d98
Merge pull request #26213 from nextcloud/wiswedel/fix/style/files/settingsDisplacement
Removed unnecessary padding
2021-03-20 10:54:27 +01:00
Roeland Jago Douma bebc6a4bd2
Merge pull request #26222 from nextcloud/dependabot/npm_and_yarn/css-loader-5.1.3
Bump css-loader from 5.1.2 to 5.1.3
2021-03-20 10:50:00 +01:00
Nextcloud bot cb2745a541
[tx-robot] updated from transifex 2021-03-20 02:23:44 +00:00
dependabot-preview[bot] 350c8f1e33
Bump css-loader from 5.1.2 to 5.1.3
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.1.2 to 5.1.3.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.1.2...v5.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-20 02:19:15 +00:00
Morris Jobke f2969dc9ca
Merge pull request #26212 from nextcloud/fix-dashboard-background
Make background cover whole viewport
2021-03-19 20:30:49 +01:00
Morris Jobke 2cae541a1a
Merge pull request #26070 from nextcloud/path-prefix-index
add a prefix index to filecache.path
2021-03-19 20:21:36 +01:00
Robin Appelman b28f0a0e94
add a prefix index to filecache.path
The reason that `filecache.path` hasn't had an index added is the mysql limitation of ~1kb for indexeded fields,
which is to small for the `path`, however mysql supports indexing only the first N bytes of a column instead of the entire column,
allowing us to add an index even if the column is to long.

Because the index doesn't cover the entire column it can't be used in all situations where a normal index would be used, but it does cover the `path like 'folder/path/%'` queries that are used in various places.

Sqlite and Postgresql don't support prefix indexes, but they also don't have the 1kb limit and DBAL handles the differences in index creation.

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 18:52:25 +01:00
Vincent Petry cdb1d3468b
Merge pull request #26061 from nextcloud/bugfix/noid/encryption-update-failure
Log and continue when failing to update encryption keys during for individual files
2021-03-19 17:36:34 +01:00
Robin Appelman b38618c813
use node search api for legacy file search endpoint
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 16:08:01 +01:00
Robin Appelman a0fb6d2518
pass order from unified search to file search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 16:07:57 +01:00
Robin Appelman bfe3712372
handle ordering in folder search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 16:07:54 +01:00
Morris Jobke fb09f3d31d
Merge pull request #26145 from nextcloud/smb-force-write-option
add (hidden) option to always show smb root as writable
2021-03-19 15:31:04 +01:00
Vincent Petry e6fd9b2f55
Merge pull request #25129 from nextcloud/bugfix/smb-notify-subpath
Fix files_external:notify command when running withing a subdirectory
2021-03-19 14:53:16 +01:00
Sascha Wiswedel 8b145c7858 Removed unnecessary padding
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2021-03-19 14:24:10 +01:00
Vincent Petry 82891cd498
Fix phpcs issues in encryption update
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-19 14:12:10 +01:00
Julius Härtl 76170a58eb
Log and continue when failing to update encryption keys during for individual files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-19 14:12:07 +01:00
Jo Sprague dc1413cad9
Make background cover whole viewport
Without a min-height, wider viewports can result in a blank white space at the bottom of the screen. This CSS ensures that doesn't happen.

Signed-off-by: Jo Sprague <git@josprague.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-19 14:06:22 +01:00
Robin Appelman feed42dd6d
folder filtering in sql
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 13:41:00 +01:00
Roeland Jago Douma 1286848731
Merge pull request #23718 from nextcloud/already-shared-error-message
expand 'path is already shared' error message
2021-03-19 13:39:22 +01:00
Robin Appelman de713967c0
cleanup fileinfo creation
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 13:35:37 +01:00
Julien Veyssier 086cf56b21
Merge pull request #26196 from nextcloud/fix/app-sidebar-description-slot
Adapt files and app settings to @nc/vue changes
2021-03-19 13:32:46 +01:00
Julien Veyssier 3c172ce600 adapt files and app settings sidebar 'primary-actions' slot that became 'description' in @nc/vue v3.3.0
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-19 12:56:35 +01:00
Christoph Wurst e68c4a4ed3
Only perform login check during ownership transfer for encryption
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-19 11:25:56 +01:00
Vincent Petry 7bf5adb1fa
Merge pull request #26200 from nextcloud/bugfix/26197/fix-expiration-validation-confusion
Update user share must use correct expiration validation
2021-03-19 10:51:21 +01:00
Nextcloud bot 9e70b83f13
[tx-robot] updated from transifex 2021-03-19 02:24:56 +00:00
Robin Appelman a428f7d1e0
format
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 17:44:30 +01:00
Robin Appelman bd229e7548
handle limit and offset in folder file search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 17:38:31 +01:00
Robin Appelman 50e374c12f
only require user to be set in a query that handles tags
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 17:16:28 +01:00
Vincent Petry a9e3d2a10f
Update user share must use correct expiration validation
Updating a user or group share now uses the correct method for the
validation of the expiration date. Instead of using the one from links
it uses the one for internal shares.

To avoid future confusion, the method "validateExpirationDate" has been
renamed to "validateExpirationDateLink".

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-18 17:12:28 +01:00
John Molakvoæ 6ade109b60
Merge pull request #26194 from nextcloud/techdebt/noid/remove-duplicate-sharing-unit-integration-tests-group-permission
Remove duplicate unit test in sharing that checks for group permission updates
2021-03-18 16:37:29 +01:00
Robin Appelman f8bca545df
unify handling of Folder::search methods into "new" query objects
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 16:35:41 +01:00
Robin Appelman 14a1b5063e
use "newer" node search api directly in unified search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 16:22:29 +01:00
Roeland Jago Douma 8f22d48f7a
Merge pull request #26189 from nextcloud/techdept/qbmapper-execute-update-query
Use executeQuery and executeUpdate in the QBMapper
2021-03-18 16:17:54 +01:00
Christoph Wurst 0d8b3baf61
Use executeQuery and executeUpdate in the QBMapper
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-18 15:40:18 +01:00
Morris Jobke b34035f845
Merge pull request #26193 from nextcloud/techdebt/noid/remove-sharing-duplicate-unit-integration-tests
Permission tests for the sharing are fully covered in sharing v1 integration tests
2021-03-18 11:34:15 +01:00
Morris Jobke d650de13a4
Remove duplicate unit test in sharing that checks for group permission updates
* it was skipped before anyways
* it is covered for example in build/integration/sharing_features/sharing-v1-part3.feature#L517-L548 (see 54f8f75f6f/build/integration/sharing_features/sharing-v1-part3.feature (L517-L548))
* more permission updates are tested in the webdav section, where an OCS API is called and the WebDAV response is checked for the properly changed permission

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-18 10:31:56 +01:00
Morris Jobke e6bd23acf9
Permission tests for the sharing are fully covered in sharing v1 integration tests
See build/integration/sharing_features/sharing-v1*.features for the exact same tests. Especially part3 that covers most of the different permission setups over webdav.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-18 10:15:42 +01:00
kesselb dd39f5e871
Merge pull request #25112 from nextcloud/repair-exception
dont error the entire repair process when a repair step errors
2021-03-18 10:14:47 +01:00
Morris Jobke 6401d88283
Merge pull request #25331 from nextcloud/fix-valid-storages-removed-when-cleaning-remote-storages
Fix valid storages removed when cleaning remote storages
2021-03-18 08:57:09 +01:00
Robin Appelman 9e3775618b
log full expection during repair step
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 08:45:17 +01:00
Robin Appelman 9135a42781
make repair errors more visible
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 08:45:16 +01:00
Robin Appelman c75b82adbb
dont error the entire repair process when a repair step errors
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 08:45:16 +01:00
Morris Jobke 5cdc3e9c9d
Merge pull request #26188 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-18 08:30:44 +01:00
Nextcloud-PR-Bot 3959313b2c Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-18 04:34:21 +00:00
Nextcloud bot a186d08471
[tx-robot] updated from transifex 2021-03-18 02:25:02 +00:00
Tom Grant 23dbbca1a0 Fix indentation error
Signed-off-by: tgrant <tom.grant760@gmail.com>
2021-03-17 23:04:15 +00:00
tgrant f1710b57bc Fix null displayname crash as described in #21885
Signed-off-by: tgrant <tom.grant760@gmail.com>
2021-03-17 23:04:15 +00:00
Morris Jobke 37feee4e87
Merge pull request #24384 from nextcloud/cleanup/remove-old-migration-check
Remove dead code from checking core/apps before upgrades
2021-03-17 21:29:19 +01:00
Julius Härtl a2f3077ee8
Skip db migration simulation for core schema changes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-17 21:08:22 +01:00
Morris Jobke 459e0b311b
Merge pull request #25924 from nextcloud/bugfix/noid/only-mark-migrations-as-installed-after-executing-them-in-case-the-developer-broke-them
Only mark migrations as installed after execution
2021-03-17 20:29:28 +01:00
Morris Jobke f56e5bb0db
Merge pull request #25676 from nextcloud/drop/utl-is-ie
Drop \OCP\Util::isIe
2021-03-17 20:18:11 +01:00
John Molakvoæ f1fefd91df
Merge pull request #26160 from nextcloud/enh/eslint 2021-03-17 18:14:31 +01:00
Morris Jobke 6867ba8e33
Merge pull request #24580 from nextcloud/enh/noid/db-convert
DB conversion: improve console output
2021-03-17 17:52:42 +01:00
Joas Schilling 0d46fafd41
Merge pull request #26161 from nextcloud/bugfix/noid/improve-matching-of-phonebook-searches
Improve search results when only phonebook-matches can we autocompleted
2021-03-17 15:22:03 +01:00
John Molakvoæ (skjnldsv) 87d39375d8
Fix comments filesplugin
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-17 14:45:29 +01:00
Morris Jobke d011df6aa7
Merge pull request #26076 from nextcloud/enh/noid/ldap-occ-user-reset
adds ldap user:reset command
2021-03-17 14:36:18 +01:00
Simon Spannagel 244e13cd43
DB conversion: improve console output
Signed-off-by: Simon Spannagel <simonspa@kth.se>
2021-03-17 14:35:40 +01:00
Morris Jobke 2445b9491e
Merge pull request #26172 from nextcloud/techdebt/noid/code-checker-is-noop
occ app:check-code is noop
2021-03-17 13:45:09 +01:00
John Molakvoæ (skjnldsv) 043b5a9de4
Fix TerserPlugin
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-17 13:03:39 +01:00
John Molakvoæ (skjnldsv) 5d9bb5e247
Lint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-17 13:03:38 +01:00
John Molakvoæ (skjnldsv) fb183b457c
Add eslint testing
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-17 13:03:38 +01:00
dependabot-preview[bot] 1b5db252c5
Merge pull request #26165 from nextcloud/dependabot/composer/vimeo/psalm-4.6.4 2021-03-17 10:47:44 +00:00
Joas Schilling 68a402d889
occ app:check-code is noop
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-17 11:29:53 +01:00
Arthur Schiwon 1b0355f2c6
adds ldap user:reset command
- allows to delete data of existing LDAP users, which otherwise is safe
  guarded
- ensures that the user is not being deleted on LDAP through a plugin

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-17 11:23:48 +01:00
Joas Schilling cf434d5107
Also limit to user group in case enumeration is enabled for groups and phonenumbers
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-17 11:20:30 +01:00
Vincent Petry ab5c19bb08
Merge pull request #26131 from nextcloud/fix/initialstate-templates
Fix default missing initial state for templates
2021-03-17 10:18:03 +01:00
dependabot-preview[bot] 958d6e2f34
Bump vimeo/psalm from 4.6.2 to 4.6.4
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.6.2 to 4.6.4.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.6.2...4.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-17 09:05:25 +00:00
Joas Schilling 3379e69ecc
Fix parameter types in docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-17 09:51:31 +01:00
Joas Schilling 47e14c9a79
Add missing index on the user column
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-17 09:51:31 +01:00
Joas Schilling 9a189bc710
Improve search results when only phonebook-matches can we autocompleted
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-17 09:51:31 +01:00
Vincent Petry 98fb265e9f
Merge pull request #26153 from nextcloud/psalm/26111/fix-undefined-exception-class
Use correct exception type hint in catch statement
2021-03-17 09:41:47 +01:00
Nextcloud bot 096806087c
[tx-robot] updated from transifex 2021-03-17 02:24:19 +00:00
Morris Jobke 0f2c4ff64c
Use correct exception type hint in catch statement
Found by psalm update 4.6.2 to 4.6.3 in #26111

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-03-16 22:06:07 +01:00
Robin Appelman 5938da8d20
Merge pull request #26137 from nextcloud/block-__groupfolders-uid
dont allow creating users with __groupfolders as uid
2021-03-16 18:47:40 +00:00
Robin Appelman dd477d30f9
dont allow creating users with __groupfolders as uid
Fixes https://github.com/nextcloud/groupfolders/issues/338

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 19:03:10 +01:00
Robin Appelman f1e2fb426e
Merge pull request #26013 from nextcloud/object-store-copy-cache-id
Return the fileid from `copyFromCache` and use it instead of doing an extra query
2021-03-16 16:11:17 +00:00
Robin Appelman 5ffaa94fbc
add (hidden) option to always show smb root as writable
some smb servers are very insistent in reporting that the root of the share is readonly, even if it isn't.

This works around the problem by adding a hidden option to overwrite the permissions of the root of the share.

This can be enabled using

```bash
occ files_external:config <mount id> root_force_writable true
```

where you can find your mount id using

```bash
occ files_external:list
```

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16 15:35:35 +01:00
Joas Schilling 7a09b7d60e
Merge pull request #26143 from nextcloud/techdebt/noid/fix-cs
Fix CS in CacheTest
2021-03-16 12:50:07 +01:00
Joas Schilling ccaa131e96
Merge pull request #26144 from nextcloud/funding
Add funding info
2021-03-16 12:49:06 +01:00
tobiasKaminsky bfb535b2b2
Add funding info
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2021-03-16 11:44:59 +01:00
Vincent Petry c6d2d8746c
Fix CS in CacheTest
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-16 11:43:53 +01:00
Nextcloud bot 72e6201869
[tx-robot] updated from transifex 2021-03-16 02:24:42 +00:00
Vincent Petry e559afb8d4
Merge pull request #25136 from nextcloud/cachejail-search-filter
do cachejail search filtering in sql
2021-03-15 17:45:30 +01:00
John Molakvoæ (skjnldsv) 223fe2aae6
Fix default missing initial state for templates
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-15 17:23:30 +01:00
Robin Appelman a550649708
expand 'path is already shared' error message
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-15 15:55:08 +01:00
Morris Jobke f512705f8f
Merge pull request #26003 from nextcloud/enh/simplefile/getid
Add getID function to the simplefile implementation
2021-03-15 14:41:15 +01:00
kesselb 2a55a892f0
Merge pull request #26115 from nextcloud/enh/noid/log-share-exceptions
Log exceptions when creating share
2021-03-15 14:15:06 +01:00
Vincent Petry 6997344931
Log exceptions when creating share
Because the exceptions don't always contain a useful message for the UI,
but also because in some cases we need to find out what went wrong.

In some setups, a ShareNotFoundException might happen during creation
when we try to re-read the just written share. Usually related to Galera
Cluster where node syncing wait is not enabled.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-15 12:00:41 +01:00
Nextcloud bot f82edda9c1
[tx-robot] updated from transifex 2021-03-15 02:23:58 +00:00
Nextcloud bot 44ce623923
[tx-robot] updated from transifex 2021-03-14 02:23:41 +00:00
dependabot-preview[bot] 51a03f4114
Merge pull request #26097 from nextcloud/dependabot/npm_and_yarn/css-loader-5.1.2 2021-03-13 06:06:40 +00:00
dependabot-preview[bot] 2530bb6357
Bump @babel/core from 7.13.8 to 7.13.10
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.13.8 to 7.13.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.10/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-13 04:35:43 +00:00
dependabot-preview[bot] 0a1fc21c8a
Merge pull request #26100 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.13.10 2021-03-13 04:32:58 +00:00
dependabot-preview[bot] 324dcc4c1b
Bump css-loader from 5.1.1 to 5.1.2
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.1.1...v5.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-13 04:15:33 +00:00
dependabot-preview[bot] ee6262305a
Merge pull request #26099 from nextcloud/dependabot/npm_and_yarn/chai-4.3.4 2021-03-13 04:12:49 +00:00
Nextcloud bot 0869c75d5a
[tx-robot] updated from transifex 2021-03-13 02:22:53 +00:00
dependabot-preview[bot] c5eb4b12a2
Bump jsdom from 16.4.0 to 16.5.1
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.4.0 to 16.5.1.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.4.0...16.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-13 02:21:23 +00:00
dependabot-preview[bot] 62141eda47
Bump @babel/preset-env from 7.13.9 to 7.13.10
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.13.9 to 7.13.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.10/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-13 02:19:52 +00:00
dependabot-preview[bot] 0ec4ac2c21
Bump chai from 4.3.3 to 4.3.4
Bumps [chai](https://github.com/chaijs/chai) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/4.3.3...v4.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-13 02:17:13 +00:00
Robin Appelman d7748e2b4d
verify that cache entry is valid
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-12 17:23:02 +01:00
Robin Appelman c2fc3195dd
also implement for FailedCache and NullCache
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-12 17:22:43 +01:00
Robin Appelman ad636ae12d
use returned file id for object store copy
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-12 17:22:40 +01:00
Robin Appelman d2bcb57a54
add ICopyFromCache trait to expose existing implementation
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-12 17:22:36 +01:00
Robin Appelman 32551b9ff7
Merge pull request #25722 from nextcloud/objectstore-copy-cross
apply object store copy optimization when 'cross storage' copy is wit…
2021-03-12 16:10:18 +00:00
Roeland Jago Douma bf39adb49b
Merge pull request #26049 from nextcloud/search-file-limit-results
limit constructing of result objects in file search
2021-03-12 12:58:49 +01:00
Roeland Jago Douma 7ac6eee129
Merge pull request #26079 from nextcloud/bugfix/noid/chunk-phone-search
Chunk the array of phone numbers
2021-03-12 11:20:35 +01:00
blizzz 812bc83b56
Merge pull request #26080 from nextcloud/bugfix/noid/only-clear-known-users-when-we-had-at-least-one-phonebook-entry
Only clear known users when we had at least one phonebook entry
2021-03-12 10:45:36 +01:00
Joas Schilling 5c3551cf2f
Only clear known users when we had at least one phonebook entry
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-12 09:04:13 +01:00
Joas Schilling a609074c18
Fix Test class name
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-12 08:53:43 +01:00
Joas Schilling 2e08c8b5a1
Chunk the array of phone numbers
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-12 08:49:23 +01:00
Roeland Jago Douma 98d2f3bc5c
Merge pull request #26072 from nextcloud/s3-no-explicit-close
remove explicit fclose from S3->writeStream
2021-03-12 08:21:54 +01:00
Roeland Jago Douma d7011582cd
Merge pull request #26078 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-12 07:29:44 +01:00
Nextcloud-PR-Bot 0baf262aba Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-12 04:34:04 +00:00
Nextcloud bot cd3ef614be
[tx-robot] updated from transifex 2021-03-12 02:22:44 +00:00
Roeland Jago Douma a1757f83a3
Merge pull request #26067 from nextcloud/techdept/psalm/trashbin/execute
Cleanp execute usage in the trashbin
2021-03-11 21:03:15 +01:00
Roeland Jago Douma 2cbc2710ec
Merge pull request #26066 from nextcloud/techdept/psalm/type_error
Fix type error in CheckBackupCodes bg job
2021-03-11 21:02:35 +01:00
John Molakvoæ c8368af3cb
Merge pull request #26068 from nextcloud/bugfix/noid/fix-comments-value-update
Fix comments field value update
2021-03-11 19:32:25 +01:00
Robin Appelman 3eb764e65d
remove explicit fclose from S3->writeStream
streams get closed automatically when dropped, and in some cases the stream seems to be already closed by the S3 library, in which case trying to close it again will raise an error

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-11 18:05:04 +01:00
Robin Appelman b62ee577d7
implement PagedProvider for file search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-11 17:18:38 +01:00
Roeland Jago Douma a3b1c1cea3
Merge pull request #26064 from nextcloud/techdept/psalm/type_oauth_db
Add psalm annotation to the DB handlers of OAuth2
2021-03-11 16:46:08 +01:00
Roeland Jago Douma 8008b33b8d Cleanp execute usage in the trashbin
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-11 15:39:42 +01:00
Vincent Petry a60127acc8
Fix comments field value update
Fixes issue where the comment field value was not properly read out of
the rich content field.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-11 15:39:33 +01:00
Roeland Jago Douma c19708a85e Fix type error in CheckBackupCodes bg job
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-11 15:33:15 +01:00
dependabot-preview[bot] 69c4578b5b
Merge pull request #26057 from nextcloud/dependabot/npm_and_yarn/nextcloud/vue-3.7.2 2021-03-11 14:11:40 +00:00
Robin Appelman 424db15dea
limit constructing of result objects in file search
even thought we currently have no proper way of limiting the search itself, we can at least limit the construction of the result objects.

this saves about 40% of the time spend in the search request in my local testing

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-11 14:49:57 +01:00
Roeland Jago Douma c2f7c417b2 Add psalm annotation to the DB handlers of OAuth2
* Psalm annotations
* To new executeUpdate

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-11 14:33:15 +01:00
Christoph Wurst 95cddb84e2
Merge pull request #25569 from nextcloud/JakubOnderka-patch-1
file-upload: Correctly handle error responses for HTTP2
2021-03-11 13:54:55 +01:00
John Molakvoæ (skjnldsv) 31ddfb0294
Fix SharingInput Multiselect
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-11 12:30:15 +01:00
John Molakvoæ (skjnldsv) 7f06a0cf8e
Compile js
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-11 12:14:48 +01:00
dependabot-preview[bot] 12a1d4a908
Bump @nextcloud/vue from 3.2.0 to 3.7.2
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 3.2.0 to 3.7.2.
- [Release notes](https://github.com/nextcloud/nextcloud-vue/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v3.2.0...v3.7.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-11 12:14:39 +01:00
Roeland Jago Douma f90090d2b3
Merge pull request #26019 from ste101/patch-1
Allow webp as background image
2021-03-11 10:52:31 +01:00
Roeland Jago Douma dd1248d672
Merge pull request #26047 from nextcloud/JakubOnderka-patch-2
Fix warning in AppFetcher.php when appstore is disabled
2021-03-11 10:51:35 +01:00
Christoph Wurst ba369c134e
Merge pull request #25911 from nextcloud/bugfix/noid/fix-share-password-saving
Only clear share password model when actually saved
2021-03-11 10:48:34 +01:00
Vincent Petry 65bb949376
Merge pull request #26032 from nextcloud/techdept/psalm/requesthandlerController_loggerinterface
Move requesthandler controller to LoggerInterface
2021-03-11 10:37:41 +01:00
Vincent Petry b78dc6a6bf
Merge pull request #26050 from nextcloud/view-search-reuse-usermanager
reuse usermanager instance when processing search results
2021-03-11 10:27:30 +01:00
Vincent Petry 3462444def
Only clear share password model when actually saved
Instead of always clearing the password in the share model, now only do
it when it was actually saved.

Fixes an issue where saving another field would clear the password too
early and prevent it to be saved when the dropdown closed.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-11 09:07:30 +01:00
Christoph Wurst 6db7731742
Merge pull request #26015 from nextcloud/dependabot/composer/psr/container-1.1.1
Bump psr/container from 1.0.0 to 1.1.1
2021-03-11 08:50:32 +01:00
Joas Schilling 56b08c04c7
Merge pull request #26031 from nextcloud/feature/noid/allow-autocomplete-based-on-phone-sync
Allow autocomplete based on phone sync
2021-03-11 08:29:21 +01:00
Nextcloud bot 31cc0741cb
[tx-robot] updated from transifex 2021-03-11 02:23:08 +00:00
Joas Schilling b4f6aca624
Clean up the logic of the contacts store a bit
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 20:48:17 +01:00
Joas Schilling 61ed57b757
Rename some parameters and methods to make the API more clear
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 20:30:29 +01:00
Joas Schilling 45dbc471d9
Bump version to run migration
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 20:05:39 +01:00
Roeland Jago Douma 1efa54827c
Merge pull request #26048 from nextcloud/urlgenerator-cache-base-url
cache baseurl in url generator
2021-03-10 19:58:03 +01:00
Roeland Jago Douma a6447a5c03
Merge pull request #25940 from nextcloud/dependabot/npm_and_yarn/css-loader-5.1.1
Bump css-loader from 5.0.1 to 5.1.1
2021-03-10 19:56:40 +01:00
Christoph Wurst 7287a15acb
Bump psr/container from 1.0.0 to 1.1.1
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-10 19:44:09 +01:00
Joas Schilling 07095fd122
Also clear the knownUser when changing via the settings endpoint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 19:37:10 +01:00
Robin Appelman f98fed3f8a
reuse usermanager instance when processing search results
saves some time when processing large search results

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-10 19:35:13 +01:00
Joas Schilling 1683e0289b
Also execute the new tests on drone
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 19:10:24 +01:00
Joas Schilling cf8f9c16df
Change label also in the acceptance tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 18:55:01 +01:00
Joas Schilling 78efabb073
Fix CS hopefully
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:51:28 +01:00
Joas Schilling 5b53b6f977
Add a setting to restrict returning a full match unless in phonebook or same group
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:25:57 +01:00
Robin Appelman c048f0100f
cache baseurl in url generator
Servers don't tend to change their url in the middle of a request

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-10 17:22:31 +01:00
Joas Schilling 177ae33ba1
Add a hint that the settings are OR based
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:19:56 +01:00
Joas Schilling a310a2adc7
Add integration tests for autocomplete/get (similar to sharees API)
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:19:56 +01:00
Joas Schilling 236aa194e2
Restrict autocompletion also based on the phonebook known users
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:19:55 +01:00
Joas Schilling b71268e38b
Add a config setting to restrict autocompletion to phonebook matches
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:19:55 +01:00
Joas Schilling c7be18c0d6
Add a service to find out if a user knows another user
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 17:19:55 +01:00
dependabot-preview[bot] 613a5760f1 Bump css-loader from 5.0.1 to 5.1.1
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 5.0.1 to 5.1.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v5.0.1...v5.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-10 16:47:32 +01:00
Jakub Onderka 296ffc7d34 file-upload: Correctly handle error responses for HTTP2
Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
2021-03-10 16:30:37 +01:00
Jakub Onderka 1992d11d7d Fix warning in AppFetcher.php when appstore is disabled
Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
2021-03-10 16:30:02 +01:00
Robin Appelman 66781e74ad
update icewind/smb to 3.4.0
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-10 15:31:09 +01:00
Joas Schilling 7baefcfc74
Delete matches when the user is being deleted
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 15:05:49 +01:00
Joas Schilling 55a5d26c56
Delete matches when a user changes their phone number
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 15:05:48 +01:00
Joas Schilling f62d9b50fd
Store when a user knows another user based on phone number
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 15:05:48 +01:00
Joas Schilling f1bb4e5699
Add a KnownUsers database with model
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 15:05:48 +01:00
kesselb 62929cc646
Merge pull request #26029 from nextcloud/enh/boostrap/provisioning_api
Provisioning API to IBootstrap
2021-03-10 14:34:02 +01:00
Joas Schilling a1e5090b3f
Fix some psalm warnings
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 13:02:08 +01:00
Roeland Jago Douma d090f970dd
Merge pull request #25537 from nextcloud/dependabot/npm_and_yarn/marked-2.0.0
[Security] Bump marked from 1.2.8 to 2.0.0
2021-03-10 10:37:45 +01:00
Roeland Jago Douma e5b1d59dfd Provisioning API to IBootstrap
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-10 09:39:47 +01:00
Roeland Jago Douma cb232001a8
Merge pull request #26030 from nextcloud/techdept/psalm/scss-deprecations
Fix SCSS compiler deprecated function usages
2021-03-10 09:22:03 +01:00
Julius Härtl 2608dec387
Merge pull request #25916 from nextcloud/bugfix/noid/trashbin-delete-all
Remove trash items from other trash backends when deleting all
2021-03-10 08:57:41 +01:00
Roeland Jago Douma f421fd25ba Move requesthandler controller to LoggerInterface
* LoggerInterface
* executeUpdate
* log exception when there is one (just so we ahve the trace)

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-10 08:50:38 +01:00
dependabot-preview[bot] c5783194e6 Bump marked from 1.2.8 to 2.0.0
Bumps [marked](https://github.com/markedjs/marked) from 1.2.8 to 2.0.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v1.2.8...v2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-10 08:36:09 +01:00
Roeland Jago Douma 72dd2c96c8
Merge pull request #26037 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-10 07:43:54 +01:00
Nextcloud-PR-Bot 4a915843ca Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-10 04:29:06 +00:00
Nextcloud bot 310e6550b1
[tx-robot] updated from transifex 2021-03-10 02:22:57 +00:00
Joas Schilling de05eab802
Merge pull request #26021 from nextcloud/dependabot/composer/giggsey/libphonenumber-for-php-8.12.19
Bump libphonenumber
2021-03-09 20:53:10 +01:00
Roeland Jago Douma 321085d0a7 Fix SCSS compiler deprecated function usages
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-09 20:39:40 +01:00
Roeland Jago Douma 2f70397b03
Merge pull request #25721 from nextcloud/do-not-target-vue-buttons
Do not target vue buttons with server rules
2021-03-09 20:31:57 +01:00
Robin Appelman c87b1a50d9 apply object store copy optimization when 'cross storage' copy is within the same object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-09 20:31:27 +01:00
Christoph Wurst 7f3051e5bf Drop \OCP\Util::isIe
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-09 20:29:42 +01:00
Roeland Jago Douma 5063745cac
Merge pull request #25728 from nextcloud/dependabot/npm_and_yarn/handlebars-4.7.7
Bump handlebars from 4.7.6 to 4.7.7
2021-03-09 20:20:19 +01:00
dependabot-preview[bot] 34e8f2f40d Bump handlebars from 4.7.6 to 4.7.7
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-09 18:53:30 +00:00
Roeland Jago Douma fad86afd26
Merge pull request #25533 from nextcloud/resend-share-notifications-on-recreate
send share notification instead of erroring on duplicate share
2021-03-09 19:44:22 +01:00
Joas Schilling 61f16e7a43
Bump libphonenumber
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-09 19:41:11 +01:00
Roeland Jago Douma 61f13583a2
Merge pull request #25677 from nextcloud/drop/cache-factory-create
Drop \OC\Memcache\Factory::create
2021-03-09 19:37:34 +01:00
Robin Appelman 3da33ce3fc send share notification instead of erroring on duplicate share
when creating a share that already exists, instead of erroring, resend the notifications

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-09 19:20:37 +01:00
Julius Härtl 95af966f60
Merge pull request #26017 from nextcloud/enh/boostrap/initialstate
Move initialstate bootstrap to proper types classes
2021-03-09 16:28:59 +01:00
Julius Härtl bd79d7b918
Merge pull request #25933 from nextcloud/bugfix/noid/remove-unsupported-remote-share-expiration
Hide expiration date field for remote shares
2021-03-09 16:26:27 +01:00
Roeland Jago Douma 45cfeefd1b
Merge pull request #25930 from nextcloud/techdept/psalm/25839/RedundantPropertyInitializationCheck
Fix RedundantPropertyInitializationCheck
2021-03-09 13:06:55 +01:00
Roeland Jago Douma 8985290cd2
Merge pull request #26004 from nextcloud/enh/publicsharecontroller/isauthenticatedoverwrite
Allow overwriting isAuthenticated
2021-03-09 10:56:53 +01:00
Vincent Petry 77401e8c1c
Hide expiration date field for remote shares
Remote shares currently do not support expiration date.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-09 10:40:14 +01:00
ste101 d41e12f2e2
Allow webp as background image 2021-03-09 10:17:06 +01:00
Roeland Jago Douma 618805b14f Fix RedundantPropertyInitializationCheck
For #25839

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-09 09:49:45 +01:00
Roeland Jago Douma f5da1ec51d
Merge pull request #25998 from nextcloud/techdept/psalm/personalsettings
Fix some types in the Settings Personal pages
2021-03-09 09:41:18 +01:00
Roeland Jago Douma 05b5715f41
Merge pull request #25970 from nextcloud/dependabot/npm_and_yarn/nextcloud/vue-dashboard-1.1.0
Bump @nextcloud/vue-dashboard from 1.0.1 to 1.1.0
2021-03-09 09:35:21 +01:00
Roeland Jago Douma 2e6cab4d82 Move initialstate bootstrap to proper types classes
For more type safety

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-09 09:19:23 +01:00
Roeland Jago Douma 30e096f3f5 Allow overwriting isAuthenticated
* Some implementations might check for different things
* IT will not change how the current ones work

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-09 09:17:30 +01:00
Roeland Jago Douma 7198bed22d
Merge pull request #26018 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-09 08:54:53 +01:00
Nextcloud-PR-Bot d49630e850 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-09 04:34:03 +00:00
Nextcloud bot 73bf04c2f5
[tx-robot] updated from transifex 2021-03-09 02:23:53 +00:00
Roeland Jago Douma 3e72d29f67
Merge pull request #26012 from nextcloud/dependabot/npm_and_yarn/elliptic-6.5.4
[Security] Bump elliptic from 6.5.3 to 6.5.4
2021-03-08 20:44:04 +01:00
dependabot-preview[bot] 95bddaf36f [Security] Bump elliptic from 6.5.3 to 6.5.4
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. **This update includes a security fix.**
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-08 18:47:16 +00:00
Christoph Wurst db1e117da7
Merge pull request #25839 from nextcloud/dependabot/composer/vimeo/psalm-4.6.2
Bump vimeo/psalm from 4.2.1 to 4.6.2
2021-03-08 19:42:32 +01:00
Roeland Jago Douma bf5d5c57a3
Merge pull request #26005 from nextcloud/techdept/psalm/fix_invalid_check
Fix invalid check after constructing DateTime
2021-03-08 19:38:31 +01:00
Roeland Jago Douma 0c33fc706c
Merge pull request #26007 from nextcloud/docs/config/session_lifetime
Add hint about possible limit when setting a session_lifetime
2021-03-08 19:30:05 +01:00
Lukas Reschke bb590347d2
Merge pull request #25996 from nextcloud/dependabot/composer/sabre/dav-4.1.5
Bump sabre/dav from 4.1.4 to 4.1.5
2021-03-08 17:19:35 +01:00
Julius Härtl 296332efa3
Add hint about possible limit when setting a session_lifetime
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-08 16:49:30 +01:00
Lukas Reschke 7ba89c13e7
Merge pull request #25960 from nextcloud/techdept/admin_audit
Pimp admin audit
2021-03-08 16:48:36 +01:00
Roeland Jago Douma c38069fab3 Update baseline
The rest we will just fix as we go

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 16:34:15 +01:00
dependabot-preview[bot] 10ec495682 Bump vimeo/psalm from 4.2.1 to 4.6.2
Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.2.1 to 4.6.2.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.2.1...4.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-08 16:34:15 +01:00
Roeland Jago Douma 988b9f49c5 Fix invalid check after constructing DateTime
We construct an object. Either that works on not.But the result can't be
false.

Found by psalm

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 16:32:34 +01:00
Roeland Jago Douma a63b709bed
Merge pull request #25910 from nextcloud/enh/allow_login_block
Allow admins to hide the login form
2021-03-08 16:27:47 +01:00
Roeland Jago Douma 4076dfb019 Allow admins to disable the login form
In case they want to not allow this because they use SSO (and do not
want the users to enter their credentials there by accident).

?direct=1 still works.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 15:36:47 +01:00
Roeland Jago Douma cc2beee872 Add getID function to the simplefile implementation
Sometimes it is useful to get the actual fileid

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 14:59:36 +01:00
Lukas Reschke 43b333331d
Merge pull request #25997 from nextcloud/techdept/psalm/redundantcast
Fix some redundant casts
2021-03-08 14:28:11 +01:00
dependabot-preview[bot] c386e59446 Bump @nextcloud/vue-dashboard from 1.0.1 to 1.1.0
Bumps [@nextcloud/vue-dashboard](https://github.com/nextcloud/nextcloud-vue-dashboard) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/nextcloud/nextcloud-vue-dashboard/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-vue-dashboard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-vue-dashboard/compare/v1.0.1...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-08 11:54:04 +00:00
Roeland Jago Douma e44be839bb Fix some types in the Settings Personal pages
* Fix types
* Typed the code

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 11:05:41 +01:00
kesselb 2ddf3c9df0
Merge pull request #25990 from nextcloud/do-not-try-to-add-an-existing-user-again-in-acceptance-tests
Do not try to add an existing user again in acceptance tests
2021-03-08 10:18:46 +01:00
Christoph Wurst 1730f2ca3b
Bump sabre/dav from 4.1.4 to 4.1.5
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-08 10:16:07 +01:00
Roeland Jago Douma 615721df82
Merge pull request #25925 from nextcloud/techdept/psalm/ActionProviderStore
Pimp ActionProviderStore
2021-03-08 09:20:45 +01:00
Roeland Jago Douma 109b84b025 Add return type to functions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 08:56:53 +01:00
Roeland Jago Douma 43c8298dec
Merge pull request #25948 from nextcloud/techdebt/noid/depreate-getHTMLName
Deprecate getHTMLName on \OCP\Defaults
2021-03-08 08:54:42 +01:00
Roeland Jago Douma f8c7ce5d48
Merge pull request #25975 from nextcloud/add-missing-waits-and-asserts-in-acceptance-tests
Add missing waits and asserts in acceptance tests
2021-03-08 08:52:08 +01:00
Roeland Jago Douma 69b26c73f3 Fix some redundant casts
Happier psalm

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-08 08:51:08 +01:00
Roeland Jago Douma e148a151c1
Merge pull request #25988 from nextcloud/ci/fixup/action
Move fixup check to action
2021-03-08 07:18:24 +01:00
Nextcloud bot e8f087d7d1
[tx-robot] updated from transifex 2021-03-08 02:23:08 +00:00
Roeland Jago Douma da652ded26 Move fixup check to action
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-07 19:42:40 +01:00
Daniel Calviño Sánchez c51c3c771f Remove unneeded steps to add already existing user
User "user1" is added when installing and configuring the server, so it
is already added in all tests.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-07 18:34:10 +01:00
Daniel Calviño Sánchez 0e6401933b Fix acceptance test for searching just added users in contacts menu
User "user1" is added when installing and configuring the server, so it
is already added in all tests. As the test verifies that just added
users can be searched in the contacts menu a new user should be actually
added.

The test did not fail because it assumed that "user1" did not exist and
just checked that it existed after "adding" it, but not whether adding
it failed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-07 18:27:45 +01:00
Nextcloud bot c28542ef7f
[tx-robot] updated from transifex 2021-03-07 02:22:07 +00:00
dependabot-preview[bot] 5db40a37a1
Merge pull request #25966 from nextcloud/dependabot/npm_and_yarn/babel/plugin-proposal-class-properties-7.13.0 2021-03-06 09:52:03 +00:00
Roeland Jago Douma e72f92b777
Merge pull request #25959 from nextcloud/techdept/logger/AccessibilityController
AccessibilityController to LoggerInterface
2021-03-06 10:51:34 +01:00
Roeland Jago Douma 28d963cd86
Merge pull request #25972 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-06 08:41:25 +01:00
Nextcloud-PR-Bot a0ac2dd80c Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-06 04:33:39 +00:00
dependabot-preview[bot] 97d6609273
Merge pull request #25969 from nextcloud/dependabot/npm_and_yarn/chai-4.3.3 2021-03-06 03:07:49 +00:00
Nextcloud bot 41f9fdab1c
[tx-robot] updated from transifex 2021-03-06 02:22:22 +00:00
dependabot-preview[bot] bb29621297
Bump chai from 4.3.0 to 4.3.3
Bumps [chai](https://github.com/chaijs/chai) from 4.3.0 to 4.3.3.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/4.3.0...4.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-06 02:21:11 +00:00
dependabot-preview[bot] 3b29c4b320
Bump @babel/plugin-proposal-class-properties from 7.12.13 to 7.13.0
Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-class-properties) from 7.12.13 to 7.13.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.0/packages/babel-plugin-proposal-class-properties)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-06 02:17:12 +00:00
Daniel Calviño Sánchez ee1f8104a0 Find directly the label instead of falling back to it
The input element is always hidden, so the check always ended falling
back to the label. Moreover, the label is the element that the user
interacts with, so it must be the one used.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-06 01:34:43 +01:00
Daniel Calviño Sánchez 7b6946d2d2 Assert also element visibility instead of just finding it
Although if the element could not be found an exception would be thrown
and the test aborted if an element is in the DOM but hidden it would be
found and the test would pass.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-06 01:34:43 +01:00
Daniel Calviño Sánchez 78faf0105d Add explicit locator for "Enable all" bundle button
Instead of looking for the bundle button and then checking its value now
the expected value is included in the locator and the button is checked
similarly to other elements.

No "Disable all" locator was added as it was not currently needed
anywhere.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-06 01:34:43 +01:00
Daniel Calviño Sánchez f87473e410 Find elements through the actor rather than the driver
"Actor::find" is a more robust way to look for elements, as it handles
some exceptions that may be thrown. Therefore, even if the elements are
not actually used and it is only checked whether they exist or not using
the actor is the preferred way when possible (and it also makes it
consistent with the rest of the acceptance tests).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-06 01:34:43 +01:00
Daniel Calviño Sánchez 6d145ea54a Add locator for apps list
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-06 01:34:42 +01:00
Daniel Calviño Sánchez 4c23d24277 Fix identation
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-06 01:34:42 +01:00
Daniel Calviño Sánchez bc084070c8 Fix delete user acceptance test
Adding some missing asserts showed that the "delete user" acceptance
test was silently failing, as the deletion was not being confirmed in
the dialog and thus the user was not being deleted.

The dialog button contains a single quote ("user0's"), so the XPath
expression had to be adjusted (it seems that it is not possible to
escape a single quote in a string enclosed in single quotes in XPath
1.0).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-06 01:29:54 +01:00
Daniel Calviño Sánchez d5586ec437 Verify WaitFor::element... results with an assertion
WaitFor::element... calls only perform the waiting and return whether
the condition succeeded or not, but that result needs to be explicitly
checked to prevent further steps from being executed if the wait failed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-05 22:06:05 +01:00
Daniel Calviño Sánchez caa2246568 Add missing waits when finding elements in the acceptance tests
As no timeout was specified the elements were tried to be found just
once. This caused the steps to fail if the elements did not appear yet
in the page when they were tried to be found.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-05 22:06:05 +01:00
Julius Härtl b6e434f02a
Merge pull request #25945 from nextcloud/dependabot/npm_and_yarn/core-js-3.9.1
Bump core-js from 3.8.3 to 3.9.1
2021-03-05 15:21:35 +01:00
Julius Härtl b4160f367b
Merge pull request #25735 from francoisfreitag/npm-ci
Remove Makefile rule clean-dev
2021-03-05 15:18:35 +01:00
Roeland Jago Douma f5dc657e94 Move background job to DI
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 14:57:07 +01:00
Roeland Jago Douma 5ec2323f25 Move admin_audit to LoggerInterface
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 14:51:55 +01:00
Roeland Jago Douma 900e7f99aa AccessibilityController to LoggerInterface
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 14:38:36 +01:00
Roeland Jago Douma c7c5150ddb
Merge pull request #25932 from nextcloud/bugfix/noid/fix-fed-share-add-to-nc
Skip empty obsolete owner when adding to own NC
2021-03-05 14:33:16 +01:00
Joas Schilling f92d21e80e
Merge pull request #25870 from nextcloud/techdept/settings/move_group_activity_events
Move group activities to events
2021-03-05 13:05:06 +01:00
dependabot-preview[bot] 6c8650d414 Bump core-js from 3.8.3 to 3.9.1
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.8.3 to 3.9.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/commits/v3.9.1/packages/core-js)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 11:34:26 +01:00
Christoph Wurst e47bd8324d
Merge pull request #25928 from nextcloud/enh/contactsmenu/entry
Type Entry and IEntry
2021-03-05 09:46:40 +01:00
Christoph Wurst 11e2286a82
Merge pull request #25588 from nextcloud/techdept/custom-psr-logger
Migrate custom loggers to PSR
2021-03-05 09:46:07 +01:00
Roeland Jago Douma b1ca746395
Merge pull request #25947 from nextcloud/fix/provisioning_api/logger
Fixed error after merge in UsersController
2021-03-05 09:37:38 +01:00
Julius Härtl 9dc5b8274e
Deprecate getHTMLName on \OCP\Defaults
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-05 09:34:24 +01:00
Marco Ambrosini 8691084f17 Do not target vue buttons with server rules
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-03-05 08:16:20 +00:00
Roeland Jago Douma 128b682b7c Fixed error after merge in UsersController
This was moved to the LoggerInterface so the recent merge of #25589
broke master.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-05 09:14:01 +01:00
Roeland Jago Douma ca1eed96be
Merge pull request #25731 from nextcloud/dependabot/npm_and_yarn/mocha-8.3.0
Bump mocha from 8.2.1 to 8.3.0
2021-03-05 09:05:06 +01:00
Roeland Jago Douma 4a9f3ef232
Merge pull request #25589 from nextcloud/provisioning-api-invalid-argument
forward invalid argument message to frontend when creating a user fails
2021-03-05 08:59:50 +01:00
dependabot-preview[bot] ffdacf813e
Merge pull request #25726 from nextcloud/dependabot/npm_and_yarn/build/handlebars-4.7.7 2021-03-05 07:57:01 +00:00
Roeland Jago Douma 54cffefed4
Merge pull request #25660 from hosting-de/feature/add-backend-list-groups
Show group backends in occ group:list --info and group:info
2021-03-05 08:49:43 +01:00
Roeland Jago Douma e6ef096e52
Merge pull request #25659 from nextcloud/smb-getmetadata-catch
catch notfound and forbidden exception in smb::getmetadata
2021-03-05 08:49:23 +01:00
Roeland Jago Douma 3c9a62721f
Merge pull request #25725 from lmamane/master
token login: emit preLogin event with LoginName
2021-03-05 08:46:46 +01:00
Roeland Jago Douma 85e48d796c
Merge pull request #25929 from nextcloud/techdept/psalm/25839/redundantcasts
Remove Redundantcasts
2021-03-05 08:42:54 +01:00
dependabot-preview[bot] 54b843cfc0
Bump mocha from 8.2.1 to 8.3.0
Bumps [mocha](https://github.com/mochajs/mocha) from 8.2.1 to 8.3.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.2.1...v8.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-05 07:23:24 +00:00
dependabot-preview[bot] c1105b3fda
Bump handlebars from 4.7.6 to 4.7.7 in /build
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-05 07:23:03 +00:00
Roeland Jago Douma cfb337dc01
Merge pull request #25942 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-05 07:22:03 +01:00
Nextcloud-PR-Bot df2fea444c Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-05 04:33:46 +00:00
Nextcloud bot a6c9688fd6
[tx-robot] updated from transifex 2021-03-05 02:22:00 +00:00
Joas Schilling 5c9dacf786
Merge pull request #25941 from nextcloud/techdept/CompositeExpression
Type CompositeExpression and ICompositeExpression
2021-03-04 22:38:31 +01:00
Roeland Jago Douma d7f7d3bc51 Type CompositeExpression and ICompositeExpression
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 21:47:44 +01:00
Robin Appelman b844293536 catch notfound and forbidden exception in smb::getmetadata
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-04 21:34:54 +01:00
Christoph Wurst b0fe408d1f
Merge pull request #25927 from nextcloud/enh/sharebymail/set_expiration_on_creation
Sharebymail: set expiration on creation
2021-03-04 18:17:54 +01:00
Vincent Petry 9da935c62b
Merge pull request #25926 from nextcloud/enh/activity/hidden_files
Activity: show if files are hidden or not
2021-03-04 16:44:02 +01:00
Vincent Petry 5be9acab84
Skip empty obsolete owner when adding to own NC
The owner field is nowadays always empty when adding a federated share
using "Add to your Nextcloud", so don't check for it.

Fixes an issue where "Add to your Nextcloud" doesn't add anything.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-04 15:54:21 +01:00
Roeland Jago Douma 7b7358868d
Merge pull request #23665 from nextcloud/enh/querybuilder/execute_query_update
Add executeQuery and executeUpdate
2021-03-04 15:46:17 +01:00
Roeland Jago Douma c3f1eb4f7f Remove Redundantcasts
For #25839

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 14:44:04 +01:00
Roeland Jago Douma b14be34689 Type Entry and IEntry
* Fixed a docblock
* Typed the entries

Psalm happier, Roeland happier

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 14:30:21 +01:00
Roeland Jago Douma 76a6328d10 Add executeQuery and executeUpdate
Names shamelessly copied from Doctrine itself.
Internally it is still using the same flow. But I added some checks
around it.

This should make static analysis a bit more happy. Which in turn makes
me more happy.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 14:03:31 +01:00
Roeland Jago Douma d247a5fb47 Sharebymail: set expiration on creation
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 13:49:21 +01:00
Roeland Jago Douma 997259d1cd Activity: show if files are hidden or not
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 13:14:52 +01:00
Roeland Jago Douma 3bbacb2f54
Merge pull request #25881 from nextcloud/techdept/psalm/sharesplugin
Fix the SharesPlugin
2021-03-04 12:33:20 +01:00
Christoph Wurst cdc9a1efd9
Merge pull request #25912 from nextcloud/techdept/psalm/sharedstorage_some_types
Add some typing to SharedStorage
2021-03-04 12:31:17 +01:00
Roeland Jago Douma f04a2ce19f Pimp ActionProviderStore
* Fix paradoxale condition
* Add types
* Move away from ILogger

Makes psalm happy, and thus me happy

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 12:29:49 +01:00
blizzz c3361a2b13
Merge pull request #25915 from nextcloud/bugfix/noid/option-always-show-unique-label
Add appconfig to always show the unique label of a sharee
2021-03-04 12:11:28 +01:00
Roeland Jago Douma 7b9ca4f7c2 Add some typing to SharedStorage
Makes psalm a bit more happy.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 10:49:42 +01:00
Julius Härtl 69c2864aca
Add appconfig to always show the unique label of a sharee
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-04 09:25:45 +01:00
Joas Schilling 1e5fea0460
Only mark migrations as installed after execution
The problem is that if a developer creates a structural error in their migration file,
they will already be marked as executed and an not be rerun.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-04 08:49:42 +01:00
Roeland Jago Douma 9b573c6bd5
Merge pull request #25923 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-04 07:25:57 +01:00
Nextcloud-PR-Bot efdb881372 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-04 04:32:47 +00:00
Nextcloud bot 365d31743f
[tx-robot] updated from transifex 2021-03-04 02:22:10 +00:00
Roeland Jago Douma 5325c3002c
Merge pull request #25917 from nextcloud/techdept/kill_deprecated/ocp_api
Remove deprecated \OCP\API
2021-03-03 21:57:34 +01:00
Roeland Jago Douma a58b4ceaab
Merge pull request #25889 from nextcloud/techdept/psalm/fix_group_manager_function_return_type
Fix types in the Group Manager
2021-03-03 20:55:52 +01:00
Roeland Jago Douma cc744740b7 Remove deprecated \OCP\API
Time to remove this forgood now.
Remaining constant moved over
The world is a tiny bit better

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-03 20:54:32 +01:00
Julius Härtl 895e6a57b9
Merge pull request #25805 from nextcloud/bugfix/23468/clear-share-after-select
Clear multiselect after selection in share panel
2021-03-03 17:25:31 +01:00
Roeland Jago Douma 0829fea5e7
Merge pull request #25896 from nextcloud/techdept/qbmapper
Move DirectMapper to QBMapper
2021-03-03 14:58:51 +01:00
Roeland Jago Douma 68ec18323d Fix types in the Group Manager
Psalm found an issue. However the issue found was because of lying
docblocks. Fixed those and did some typing to make it all better.

For #25839

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-03 14:52:47 +01:00
Julius Härtl 930b40bd8a
Remove trash items from other trash backends when deleting all
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-03 14:26:35 +01:00
Roeland Jago Douma b87e54bb1c
Merge pull request #25902 from nextcloud/techdept/psalm/loggerinterface/part2
LoggerInterface for provisioning API Controllers
2021-03-03 12:53:15 +01:00
Roeland Jago Douma ee7702e5f0 Move DirectMapper to QBMapper
Mapper has been deprecated for some time now.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-03 12:35:14 +01:00
Lukas Reschke f109cf0136
Merge pull request #25890 from nextcloud/techdept/psalm/check_input_command
Check command input
2021-03-03 11:50:08 +01:00
Vincent Petry c541094be0 Clear multiselect after selection in share panel
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-03 11:38:00 +01:00
Joas Schilling a6246be34c
Merge pull request #25656 from nextcloud/enh/type/expressionbuilder
Type the experssionbuilders
2021-03-03 11:37:16 +01:00
Joas Schilling 11858a3d66
Merge pull request #25816 from nextcloud/iquerybuilder-join-conditions
allow non string join conditions in query builder
2021-03-03 11:34:56 +01:00
Roeland Jago Douma f492a6aac3 Move group activities to events
Use the fancy events.
Nicer code
Nicely isolated code

win-win

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-03 11:33:33 +01:00
Roeland Jago Douma 74f36173bc
Merge pull request #25882 from nextcloud/bug/25748/filter-other-tables
Filter out tables that does not belong to Nextcloud
2021-03-03 11:24:47 +01:00
Roeland Jago Douma ce430c3613
Merge pull request #25892 from nextcloud/techdept/initialstate/part1
Move some settings over to the IInitialState
2021-03-03 11:08:42 +01:00
Roeland Jago Douma 4bdf9f5849 Type the experssionbuilders
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-03 10:44:09 +01:00
Robin Appelman 47dd8e54b5
allow non string join conditions in query builder
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-03 10:43:15 +01:00
Roeland Jago Douma 49c46493d1
Merge pull request #25850 from nextcloud/techdept/js/timezonedetect
Kill jstimezonedetect from bundle
2021-03-03 10:32:38 +01:00
Roeland Jago Douma a1be5f33af
Merge pull request #25895 from nextcloud/techdept/psalm/pimp_sharingcheckmiddleware
Pimp sharingcheckmiddleware
2021-03-03 10:28:32 +01:00
Roeland Jago Douma 3c83604e58 Kill jstimezonedetect from bundle
Taking up space while it is not needed.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-03 08:43:53 +01:00
Roeland Jago Douma ed772cd889
Merge pull request #25818 from nextcloud/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2021-03-03 08:39:21 +01:00
Roeland Jago Douma 252d2d3958
Merge pull request #25898 from nextcloud/fix/jsunit
Fix the jsunit tests
2021-03-03 07:18:44 +01:00
Roeland Jago Douma f09eba51a9
Merge pull request #25904 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-03 07:17:52 +01:00
Nextcloud-PR-Bot 19b2d621d2 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-03 04:28:22 +00:00
Nextcloud bot e11be3b693
[tx-robot] updated from transifex 2021-03-03 02:21:24 +00:00
Roeland Jago Douma dc7eb2bd85 LoggerInterface for provisioning API Controllers
Sweep swoop swaap swuup
away with the deprecated stuff

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 21:46:51 +01:00
blizzz ef5389603c
Merge pull request #25860 from nextcloud/fix/noid/ldap-bind-expired
do not die after LDAP auth failed with expired acc
2021-03-02 21:34:03 +01:00
Roeland Jago Douma 5ae5aae324 Fix the jsunit tests
Followup to #25874

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 21:30:32 +01:00
kesselb 85fe0222ed
Merge pull request #25893 from nextcloud/techdept/psalm/fix_return-type
Fix docblock return type for IShareProvider
2021-03-02 21:21:37 +01:00
Roeland Jago Douma bc961baa40 Move some settings over to the IInitialState
The old one has been deprecated. Part one of many.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 21:11:56 +01:00
Daniel Kesselberg bc91eb7c64
Filter tables with other table prefix
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-03-02 21:09:33 +01:00
dependabot-preview[bot] 7d279f8527 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-02 20:51:19 +01:00
Valdnet 3b5c8d792d
Merge pull request #25874 from nextcloud/Valdnet-patch-4
l10n: Correct text strings
2021-03-02 20:46:55 +01:00
Roeland Jago Douma 5c952e83fc Pimp sharingcheckmiddleware
Reported by psalm

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 20:36:04 +01:00
Roeland Jago Douma 1531414e8d Fix docblock return type for IShareProvider
All the implementations already returned an array of array of shares. So
better to make sure the docblock also doesn't lie.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 20:12:46 +01:00
Roeland Jago Douma 5b0dc6dad0 Check command input
For #25839

We should check this else it crashed hard. Better to be gracefull.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 19:41:35 +01:00
Roeland Jago Douma 04dc321ee7
Merge pull request #25884 from nextcloud/techdept/psalm/no_cast
Remove redundant casts
2021-03-02 18:52:44 +01:00
Roeland Jago Douma 15f00dfa74
Merge pull request #25885 from nextcloud/enh/autoloader_update
Update autoloader files
2021-03-02 18:47:31 +01:00
Roeland Jago Douma 19e2136963 Update autoloader files
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 16:36:21 +01:00
Roeland Jago Douma 4f37e0ce55 Remove redundant casts
For #25839

In short with the connection adapter we now have the function is typed
to int (and casts itself). So it is not needed anymore.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 16:32:13 +01:00
Roeland Jago Douma c40228a65a Fix the SharesPlugin
Another attempt to fix all the typing and handling in the sharesplugin.
In short we should probably have a lot more type hinting in several
places.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 16:29:06 +01:00
Roeland Jago Douma 2afa1c5739
Merge pull request #25862 from nextcloud/techdept/psalm/some_loggers
Move away some ILoggers
2021-03-02 15:01:44 +01:00
Robin Appelman a2ecac7197
Merge pull request #25568 from nextcloud/move-storage-disable-cache
disable trasbin during the moveFromStorage fallback
2021-03-02 13:23:58 +00:00
Julius Härtl cfa2d22f4e
Merge pull request #25797 from nextcloud/bugfix/noid/templates-fileactions
Do not trigger a full filelist reload after creating a new file from a template
2021-03-02 14:15:19 +01:00
Lukas Reschke 41dc18342f
Merge pull request #25854 from nextcloud/techdept/psalm/checksetupcontroller
Fix lying docblocks
2021-03-02 13:33:21 +01:00
Valdnet 2b6cda99d3
l10n: Correct text strings 2021-03-02 11:41:45 +01:00
Joas Schilling 3d62233cab
Merge pull request #25869 from nextcloud/fix/imanager-namespacing
Fix namespacing
2021-03-02 11:05:14 +01:00
Joas Schilling 1a724cb57f
Merge pull request #25758 from nextcloud/enh/include_RichObject_forms
Include RichObject for forms
2021-03-02 10:56:40 +01:00
Roeland Jago Douma 38f761f25f Move away some ILoggers
Makes psalm happier

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-02 10:47:25 +01:00
Julius Härtl 1d5ee0324e
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-02 10:46:48 +01:00
Julius Härtl 14c872a96a
At least try to give the full context for the file action
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-02 10:46:48 +01:00
Julius Härtl f3a8b0ac88
Do not trigger a full filelist reload after creating a new file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-02 10:46:48 +01:00
Julius Härtl 20094af7f9
Merge pull request #25670 from nextcloud/enh/psalm/redundantcasts
Fix a few RedundantCast
2021-03-02 10:46:00 +01:00
Roeland Jago Douma 2b97f0fade
Merge pull request #25868 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.13.9
Bump @babel/preset-env from 7.12.16 to 7.13.9
2021-03-02 10:23:28 +01:00
Anna Larch f9083ef7bf Fix namespacing
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-03-02 09:37:34 +01:00
dependabot-preview[bot] 44b83bf8be
Bump @babel/preset-env from 7.12.16 to 7.13.9
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.16 to 7.13.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.9/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-02 08:15:51 +00:00
dependabot-preview[bot] e4cc176e00
Merge pull request #25821 from nextcloud/dependabot/npm_and_yarn/babel/core-7.13.8 2021-03-02 08:13:02 +00:00
Christoph Wurst 7be2ce82e7
Merge pull request #25544 from nextcloud/refactor/app-password-created-event
Move app_password_created to a typed event
2021-03-02 08:18:59 +01:00
Roeland Jago Douma 1d5cb3f640
Merge pull request #25865 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-02 07:40:20 +01:00
Nextcloud-PR-Bot 110b78a64b Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-02 04:30:37 +00:00
Nextcloud bot 63f68e0412
[tx-robot] updated from transifex 2021-03-02 02:22:18 +00:00
dependabot-preview[bot] b486e26b81 Bump @babel/core from 7.12.16 to 7.13.8
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.16 to 7.13.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.8/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-01 21:30:34 +00:00
Roeland Jago Douma 927e021c43
Merge pull request #25861 from nextcloud/techdebt/noid/unified-link-handling
Unified link handling in setup checks
2021-03-01 22:17:26 +01:00
Daniel Calviño Sánchez 9f96a47125 Add OCC command to reset rendered texts
The command is meant to be used when the fonts used to render texts
("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf")
are changed (for example, to add support for other scripts). The avatar
and text file previews will be removed, so they will be generated again
with the updated font when needed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-01 20:54:43 +01:00
Joas Schilling db3b698fc0
Hello 2016
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-01 20:28:12 +01:00
Joas Schilling 96ae83c529
Remove HTML from setup check translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-01 20:24:02 +01:00
Joas Schilling 9569df7405
Add target black and noref rules to doc links
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-01 19:42:34 +01:00
Arthur Schiwon 5ad08c7c84
do not die after LDAP auth failed with expired acc
- some servers return error code 53

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-01 19:20:05 +01:00
Daniel Calviño Sánchez ee06780029 Include additional scripts in Noto fonts
Generated avatars as well as text file previews are rendered using the
"core/fonts/NotoSans-Regular.ttf" font. The file was the standard hinted
"NotoSans-Regular.ttf" file from https://www.google.com/get/noto/.
However that file does not cover some non LGC (Latin, Greek, Cyrillic)
scripts, like Arabic, Devanagari or Hebrew, to name a few.

Markdown file previews also use "core/fonts/NotoSans-Bold.ttf", which is
in the same situation as the regular one.

Due to limitations in the TTF format it is not possible to provide a
single file for each style that includes all Noto fonts. However, it is
possible to add more scripts to the standard "NotoSans-Regular.ttf" and
"NotoSans-Bold.ttf" files (although no CJK (Chinese, Japanese, Korean)
glyph can be included due to the aforementioned limitations).

This commit replaces the standard files with an extended version created
using the Noto Tools. The build script (as well as a patch for the Noto
Tools) is also included for reference and to be able to update the font
files in the future if needed.

Due to the additional scripts added the font files are now much larger,
although this does not seem to increase the time spent rendering LGC
scripts.

Note that the file for the bold style still contains less scripts than
the regular one, as not all scripts supported by Noto have a bold
weight.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-01 19:15:01 +01:00
Roeland Jago Douma 148cc83c52
Merge pull request #25856 from nextcloud/techdept/pslam/card_getOwner
Card::getOwner should return the actual value
2021-03-01 18:25:17 +01:00
Roeland Jago Douma e28173863e Card::getOwner should return the actual value
I guess we never call this at runtime or it would already ahve done boom
very loudly.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-01 16:51:36 +01:00
Roeland Jago Douma 3d0dff0d2b Fix lying docblocks
* typed the return
* removed unneeded temp variable

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-01 16:48:04 +01:00
Johannes Leuker 2796ef80ff Show group backends in occ group:list --info and group:info
Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
2021-03-01 16:02:08 +01:00
Roeland Jago Douma 5cd1880daa Fix a few RedundantCast
Reported by psalm
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-01 16:00:32 +01:00
John Molakvoæ 92d6abf216
Merge pull request #25712 from nextcloud/fix/noid/admin-password-tooltip
Fix admin password strengthify tooltip
2021-03-01 14:52:57 +01:00
Jonas Rittershofer f02362e029
Include RichObject for forms
Ref. https://github.com/nextcloud/forms/pull/789

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-03-01 14:00:33 +01:00
Roeland Jago Douma 2d856c8465
Merge pull request #25715 from nextcloud/fix/ca-checker
Bump the ca location
2021-03-01 13:33:02 +01:00
Julius Härtl d005ce5777
Merge pull request #25799 from nextcloud/wiswedel/fix/config/templatedirectory
fix typo in template directory config
2021-03-01 13:20:58 +01:00
blizzz 9cd39b0b8c
Merge pull request #25757 from nextcloud/fix/noid/ldap-cyclic-group-memberships
fix detecting cyclic group memberships
2021-03-01 12:07:59 +01:00
Christoph Wurst 01f082b4a3
Merge pull request #25745 from nextcloud/dependachristoph/composer/symfony-polyfills
Bump the Symfony polyfills
2021-03-01 11:57:06 +01:00
John Molakvoæ cc7f4ab1ea
Merge pull request #25803 from nextcloud/bugfix/25364/make-compatible-app-message-less-confusing
Make the compatible app message less confusing for multi versions apps
2021-03-01 10:37:13 +01:00
Roeland Jago Douma 91f260fe29
Merge pull request #25804 from nextcloud/bugfix/noid/fread-0
Do not attempt to read 0 bytes when manually iterating over a non-seekable file
2021-03-01 09:54:33 +01:00
Nextcloud bot 9a90bfba32
[tx-robot] updated from transifex 2021-03-01 02:20:19 +00:00
Nextcloud bot 24d5afb1b1
[tx-robot] updated from transifex 2021-02-28 02:19:54 +00:00
Nextcloud bot 65b0511d79
[tx-robot] updated from transifex 2021-02-27 02:22:23 +00:00
Joas Schilling 4807ce3b08 Make the compatible app message less confusing for multi versions apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-26 10:56:35 +00:00
Julius Härtl 19eb48b8a3
Properly end iterating over the file once the target has been reached
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-02-26 11:29:01 +01:00
Vincent Petry 18b419f0ca
Merge pull request #24255 from nextcloud/bugfix/noid/missing-checkbox-focus
Add focus-visible outline for checkboxes and radio buttons
2021-02-26 11:22:19 +01:00
Vincent Petry 49eff095ff
Change outline color to --color-main-text
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-26 10:15:21 +01:00
Vincent Petry 53b162bad9
Fix focus-visible outline for files checkboxes
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-26 10:15:21 +01:00
Vincent Petry 23c143e034
Add focus-visible outline for checkboxes and radio buttons
To make keyboard navigation visible in forms.
When clicking with the mouse it doesn't appear.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-26 10:15:20 +01:00
Nextcloud bot b4ccadea2b
[tx-robot] updated from transifex 2021-02-26 02:21:45 +00:00
Sascha Wiswedel a58cc13e2b fix typo in template directory config
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2021-02-25 23:21:27 +01:00
kesselb c663cbe666
Merge pull request #25778 from noiob/patch-1
Remove double space in sharebymail SettingsManager
2021-02-25 19:31:34 +01:00
Christoph Wurst ce082dd49b
Merge pull request #25786 from nextcloud/fix/register-aliases-params-once
Register service aliases und parameters just once
2021-02-25 09:47:27 +01:00
Nextcloud bot c8f7a808fd
[tx-robot] updated from transifex 2021-02-25 02:21:21 +00:00
Christoph Wurst 6a9b693540
Register service aliases und parameters just once
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-24 17:30:10 +01:00
noiob f28ee36e20 Remove double space so php-cs stops complaining
Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
2021-02-24 11:33:19 +01:00
Nextcloud bot b89fbaf52d
[tx-robot] updated from transifex 2021-02-24 02:22:06 +00:00
Arthur Schiwon 4d33449faa
fix detecting cyclic group memberships
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-02-23 22:50:43 +01:00
Nextcloud bot ff54a0481b
[tx-robot] updated from transifex 2021-02-23 02:39:25 +00:00
Richard Steinmetz 2771e4472e
Fix admin password strengthify tooltip
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2021-02-22 21:28:42 +01:00
Christoph Wurst bfa8114069
Bump the Symfony polyfills
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-22 19:26:26 +01:00
Lukas Reschke d090341b34
Merge pull request #25743 from nextcloud/disable-vs-code-intellisense
Disable basic PHP completion in Codespace
2021-02-22 15:27:11 +01:00
Lukas Reschke cecf319747 Disable basic PHP completion in Codespace
This competes with the completions provided by
https://github.com/felixfbecker/vscode-php-intellisense.

Thus disabling the completions is recommended.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-22 11:30:17 +00:00
Lukas Reschke e5a0219133
Merge pull request #25680 from nextcloud/taint-expressionbuilder
Add expression taint source and sanitizer
2021-02-22 12:26:48 +01:00
John Molakvoæ 1eca8d21ee
Merge pull request #25602 from nextcloud/bugfix/noid/only-create-share-once
Avoid creating two share links when password is enforced
2021-02-22 12:08:49 +01:00
Vincent Petry f321538c9b
Merge pull request #25689 from nextcloud/bugfix/noid/disable-updater-ui-when-disabled
Hide update channel + button when web update is disabled
2021-02-22 09:29:56 +01:00
Nextcloud bot 3ff92423e2
[tx-robot] updated from transifex 2021-02-21 02:39:59 +00:00
François Freitag 5315cadf28
Remove Makefile rule clean-dev
From npm ci docs https://docs.npmjs.com/cli/v7/commands/npm-ci:

If a node_modules is already present, it will be automatically removed
before npm ci begins its install.

Unnecessary since b595d86e96.

Signed-off-by: François Freitag <mail@franek.fr>
2021-02-20 20:20:05 +01:00
Nextcloud bot ac2577a594
[tx-robot] updated from transifex 2021-02-20 02:37:22 +00:00
Lionel Elie Mamane 02809bde12 make php-cs-fixer happy
Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
2021-02-19 23:18:18 +01:00
Lionel Elie Mamane f99f463834 token login: emit preLogin event with LoginName
to bring it in line with normal (non-token) login.

Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
2021-02-19 22:27:46 +01:00
Julius Härtl 9073c09c62 Avoid creating two share links when password is enforced
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-19 11:16:38 +00:00
John Molakvoæ 946430862e
Merge pull request #24978 from dems54/issue24139 2021-02-19 08:20:58 +01:00
Nextcloud bot c222bac9ed
[tx-robot] updated from transifex 2021-02-19 02:20:56 +00:00
Roeland Jago Douma 3a75e14844 Bump the ca location
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-18 20:21:34 +01:00
Roeland Jago Douma 16652ac6c6 Explicitly check hex2bin input
For #23197

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-18 20:12:20 +01:00
Christoph Wurst 5026d2cca1
Merge pull request #25086 from nextcloud/dependabot/composer/nextcloud/coding-standard-0.5.0
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
2021-02-18 14:05:54 +01:00
Roeland Jago Douma bbb39cf3de
Merge pull request #25707 from nextcloud/bugfix/noid/send-emails-of-password-reset-to-displayname
Send emails on password reset to the displayname
2021-02-18 14:04:09 +01:00
dependabot-preview[bot] eb502c02ff
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-18 13:31:24 +01:00
Joas Schilling 6ed4aaeeea
Send emails on password reset to the displayname
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-18 12:38:43 +01:00
Roeland Jago Douma d79cc8ea6d
Merge pull request #25706 from nextcloud/bugfix/noid/when-it-kicks-in
When coding style kicks in
2021-02-18 11:30:06 +01:00
Joas Schilling 1de3b8b0ec
When it kicks in
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-18 10:14:12 +01:00
Vincent Petry 6ce469132c
Hide updater button when web updater is disabled
Whenever the web updater is disabled, the updater button and its
matching token requesting endpoints are disabled.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-18 08:53:57 +01:00
Nextcloud bot 5f194dad24
[tx-robot] updated from transifex 2021-02-18 02:21:54 +00:00
Roeland Jago Douma 82f4bb0eba
Merge pull request #25700 from nextcloud/fix/zipresponse-initialize-array
Initialize \OCP\AppFramework\Http\ZipResponse::$resources
2021-02-17 22:26:06 +01:00
Lukas Reschke d7590a6190
Add expression taint source and sanitizer
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-17 21:38:15 +01:00
Roeland Jago Douma 00d1a58a09
Merge pull request #25681 from nextcloud/techdebt/noid/cleanup-provisioning
Cleanup appinfo usage
2021-02-17 21:16:09 +01:00
Roeland Jago Douma 1e383c8072
Merge pull request #25697 from nextcloud/fix/noid/applicable-dav-repair-v
bump applicable version due to an intermediate release
2021-02-17 21:00:25 +01:00
Christoph Wurst 08d4458542
Initialize \OCP\AppFramework\Http\ZipResponse::$resources
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-17 19:59:27 +01:00
Arthur Schiwon 9d96b0b7fb
bump applicable version due to an intermediate release
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-02-17 17:37:45 +01:00
Robin Appelman b5db4502d0
disable trasbin during the moveFromStorage fallback
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-17 16:08:57 +01:00
Christoph Wurst d4b99c81f3
Merge pull request #25668 from nextcloud/enh/carddav/to_querybuilder
Move getChangesForAddressBook to QueryBuilder
2021-02-17 10:57:47 +01:00
Roeland Jago Douma ff1c5c4e25 Move getChangesForAddressBook to QueryBuilder
Makes psalm happy, and makes me happy.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-17 09:06:00 +01:00
Roeland Jago Douma 644e6df02e
Merge pull request #25440 from nextcloud/bugfix/noid/cache-the-user-backend-info-for-30s
Cache the user backend info for 5mins
2021-02-17 08:56:55 +01:00
Roeland Jago Douma ec3d7f7d97
Merge pull request #25687 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-02-17 07:29:59 +01:00
Nextcloud-PR-Bot 8b6144aae7 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-02-17 04:31:22 +00:00
Nextcloud bot 57212a99f9
[tx-robot] updated from transifex 2021-02-17 02:21:05 +00:00
Roeland Jago Douma f0c8f7421f
Merge pull request #25678 from nextcloud/drop/defaults-logo-claim
Drop \OCP\Defaults::getLogoClaim
2021-02-16 16:14:04 +01:00
Joas Schilling 89d2eaca0a
Cleanup appinfo usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-16 15:51:25 +01:00
Samuel 2dac72ddea Merge remote-tracking branch 'upstream/master' into feat-federatedfilesharing-logging 2021-02-16 14:33:22 +01:00
Roeland Jago Douma be0002d096
Merge pull request #25675 from nextcloud/enh/db/drop_redundant_indexes
Drop redundant indes
2021-02-16 12:39:24 +01:00
Christoph Wurst 0f9aa499e4
Drop \OC_Theme::getLogoClaim
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-16 11:48:16 +01:00
Christoph Wurst 24e035dfc8
Drop \OCP\Defaults::getLogoClaim
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-16 11:46:06 +01:00
Christoph Wurst 0c5adaddf8
Drop \OC\Memcache\Factory::create
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-16 11:43:05 +01:00
Roeland Jago Douma 2ea3cb7c93 Drop redundant indes
Those indexes are already covered by others. So those can just be used.
THose extra indexes just take up space.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-16 11:38:43 +01:00
Christoph Wurst a649dff179
Merge pull request #25669 from nextcloud/fix/psalm/encryptall
Harden EncryptAll check for empty email
2021-02-16 08:16:19 +01:00
Roeland Jago Douma 940ea8373d
Merge pull request #25673 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-02-16 07:48:11 +01:00
Nextcloud-PR-Bot 7ff5797227 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-02-16 04:30:43 +00:00
Nextcloud bot 45d36ec2b2
[tx-robot] updated from transifex 2021-02-16 02:21:36 +00:00
Roeland Jago Douma 918af40f05 Harden EncryptAll check for empty email
Reported by psalm
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 22:28:28 +01:00
Roeland Jago Douma d6e34b5045
Merge pull request #25664 from nextcloud/fix/psalm/dav_casts
Fix some RedundantCast in dav code
2021-02-15 22:04:46 +01:00
Christoph Wurst 4a801f39ee
Merge pull request #25661 from nextcloud/fix/crl
Updated CRL
2021-02-15 22:04:16 +01:00
Roeland Jago Douma df4c2508d6 Fix some RedundantCast in dav code
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 20:50:28 +01:00
Roeland Jago Douma c45dc502ca
Merge pull request #25654 from nextcloud/abstractcacheevent-ocp
move AbstractCacheEvent into OCP
2021-02-15 20:36:15 +01:00
Roeland Jago Douma a61c3705f8
Merge pull request #25655 from nextcloud/bugfix/noid/dark-mode-applist-icons
Fix app icon list in dark mode
2021-02-15 20:34:56 +01:00
Roeland Jago Douma 6a0aadc459 Updated CRL
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 20:32:48 +01:00
Roeland Jago Douma 7d654b190b
Merge pull request #25657 from nextcloud/overwriteprotocol-codespace
Set overwriteprotocol to HTTPS in Codespace
2021-02-15 19:45:57 +01:00
Robin Appelman 0363af3790
move AbstractCacheEvent into OCP
otherwise we have concrete cache events in OCP extending non OCP classes

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-15 19:12:30 +01:00
kesselb a33803a31b
Merge pull request #25653 from nextcloud/fix/psalm/offlineuser
Some psalm OfflineUser fixes
2021-02-15 17:04:16 +01:00
Lukas Reschke 4dd25f8de8
Set overwriteprotocol to HTTPS in Codespace
Codespace is serving everything only as HTTPS. To keep the URLs valid, we also need to overwrite the protocol. (otherwise e.g. you can't develop the SAML app as the URLs are invalid)

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-15 16:48:39 +01:00
Roeland Jago Douma 9fd72b0d3a
Merge pull request #25595 from nextcloud/enh/caldavbackend/getChangesForCalendar_querybuilder
Move getChangesForCalendar to QueryBuilder
2021-02-15 16:39:46 +01:00
Roeland Jago Douma b48d53d272
Merge pull request #25623 from nextcloud/dependabot/npm_and_yarn/eslint-plugin-promise-4.3.1
Bump eslint-plugin-promise from 4.2.1 to 4.3.1
2021-02-15 16:38:46 +01:00
Joas Schilling f83de9d194
Fix app icon list in dark mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-15 16:26:30 +01:00
Roeland Jago Douma 3f4ece256e Some psalm OfflineUser fixes
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 13:36:02 +01:00
Roeland Jago Douma 9929adde08
Merge pull request #25594 from wankdanker/files_sharing_owner_display_name
Use ownerDisplayName for SharingEntry Tooltip
2021-02-15 13:17:25 +01:00
Christoph Wurst 797527e5ea
Merge pull request #25578 from nextcloud/enh/simplify_weatherservice
Always use the cache
2021-02-15 12:27:03 +01:00
Christoph Wurst b794fadbce
Merge pull request #25575 from k00ni/pr/add-tests-for-LoginFlowV2Service
Add tests for \OC\Core\Service\LoginFlowV2Service
2021-02-15 12:22:39 +01:00
Christoph Wurst 5faa34abb1
Merge pull request #25625 from nextcloud/enh/psalm/substr
Check substr results
2021-02-15 12:17:57 +01:00
Roeland Jago Douma b0f205f97c Move getChangesForCalendar to QueryBuilder
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 12:07:26 +01:00
Christoph Wurst 65465b5abc
Merge pull request #25636 from nextcloud/fix/psalm/closure_return_types
Add some closure return types
2021-02-15 12:07:24 +01:00
Christoph Wurst 19f1cc6dde
Merge pull request #25646 from nextcloud/fix/psalm/markdown
Markdown: remove redundant int cast
2021-02-15 12:04:21 +01:00
Christoph Wurst 3ca3fefb3c
Merge pull request #25645 from nextcloud/enh/pslam/ocs_result
Some OCS result psalm fixes
2021-02-15 11:42:00 +01:00
Christoph Wurst 19666a0942
Merge pull request #25644 from nextcloud/fix/psalm/settings
Some psalm fixes in the settings app
2021-02-15 11:40:40 +01:00
Joas Schilling 645f83121e
Cache the user backend info for 300s
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-15 10:36:08 +01:00
Roeland Jago Douma 4d7c4b3d2f Markdown: remove redundant int cast
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 10:29:54 +01:00
Roeland Jago Douma 507d5cf8ad Check substr results
Else this might lead to unexpeted errors.
Found by psalm.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 10:07:13 +01:00
Roeland Jago Douma 11a9bd3e19 Some OCS result psalm fixes
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 10:03:48 +01:00
Roeland Jago Douma bd8b1786c5 Some psalm fixes in the settings app
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-15 10:00:35 +01:00
Roeland Jago Douma 84de7a8d63
Merge pull request #25580 from nextcloud/enh/fix/psalm_pluginmanager
Enhancing the dav pluginmanager
2021-02-15 09:11:16 +01:00
Roeland Jago Douma 45118df083
Merge pull request #25642 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-02-15 08:59:36 +01:00
Nextcloud-PR-Bot 974a191381 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-02-15 04:31:27 +00:00
Nextcloud bot b418a680e7
[tx-robot] updated from transifex 2021-02-15 02:20:11 +00:00
kesselb dff8457e8f
Merge pull request #25635 from nextcloud/fix/psalm/ProperNameSpace
Use correct namespace (casing) in CalendarHome
2021-02-14 19:47:21 +01:00
Roeland Jago Douma d2569eed58 Fix PluginManager annotation
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-14 12:46:50 +01:00
Roeland Jago Douma e62790cfe2 Add some closure return types
Found by psalm

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-14 12:43:31 +01:00
Roeland Jago Douma 19f7476f77 Use correct namespace (casing) in CalendarHome
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-14 12:36:41 +01:00
Roeland Jago Douma d93a3665a0
Merge pull request #25634 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-02-14 09:55:49 +01:00
Nextcloud-PR-Bot abaa073923 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-02-14 04:31:01 +00:00
Nextcloud bot 65cd62e875
[tx-robot] updated from transifex 2021-02-14 02:20:02 +00:00
Roeland Jago Douma 9d987c0069
Merge pull request #25628 from nextcloud/revert-25608-trusted-proxy-check-correct-header
Revert "use the configured forwarded headers for the setup check"
2021-02-13 18:03:49 +01:00
Roeland Jago Douma 7d8e9baa77
Revert "use the configured forwarded headers for the setup check" 2021-02-13 18:03:32 +01:00
Roeland Jago Douma 24d4c3eeab
Merge pull request #25577 from nextcloud/enhancement/app-code-checker-noop
Make the app code checker a NOOP
2021-02-13 15:51:41 +01:00
dependabot-preview[bot] d04f8a8b53
Merge pull request #25619 from nextcloud/dependabot/npm_and_yarn/moment-timezone-0.5.33 2021-02-13 14:18:56 +00:00
Roeland Jago Douma 3b8cf10a8a
Merge pull request #25604 from nextcloud/bugfix/noid/fix-hover-background-for-dark-mode
Fix hover background for dark mode
2021-02-13 15:01:57 +01:00
Roeland Jago Douma ae4e47cbe7
Merge pull request #25608 from nextcloud/trusted-proxy-check-correct-header
use the configured forwarded headers for the setup check
2021-02-13 14:58:26 +01:00
Roeland Jago Douma 5b43afd076
Merge pull request #25612 from nextcloud/bugfix/noid/make-new-result-parts-optional
Make new result parts optional
2021-02-13 14:55:55 +01:00
dependabot-preview[bot] 0d597d0707 Bump moment-timezone from 0.5.32 to 0.5.33
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.32 to 0.5.33.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.32...0.5.33)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-13 13:35:27 +00:00
dependabot-preview[bot] 97f2c59612
Merge pull request #25620 from nextcloud/dependabot/npm_and_yarn/babel-loader-exclude-node-modules-except-1.1.2 2021-02-13 13:24:04 +00:00
dependabot-preview[bot] 43570dbec7
Merge pull request #25622 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.12.16 2021-02-13 05:55:26 +00:00
dependabot-preview[bot] 38577c3b3a
Bump @babel/preset-env from 7.12.13 to 7.12.16
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.13 to 7.12.16.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.16/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-13 03:33:05 +00:00
dependabot-preview[bot] e5c776740c
Merge pull request #25621 from nextcloud/dependabot/npm_and_yarn/babel/core-7.12.16 2021-02-13 03:30:25 +00:00
dependabot-preview[bot] 1d9f44f866
Bump eslint-plugin-promise from 4.2.1 to 4.3.1
Bumps [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise) from 4.2.1 to 4.3.1.
- [Release notes](https://github.com/xjamundx/eslint-plugin-promise/releases)
- [Changelog](https://github.com/xjamundx/eslint-plugin-promise/blob/development/CHANGELOG.md)
- [Commits](https://github.com/xjamundx/eslint-plugin-promise/compare/v4.2.1...v4.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-13 02:21:36 +00:00
Nextcloud bot 69f0d7d5d4
[tx-robot] updated from transifex 2021-02-13 02:20:27 +00:00
dependabot-preview[bot] ea25ec81ec
Bump @babel/core from 7.12.13 to 7.12.16
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.13 to 7.12.16.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.16/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-13 02:18:45 +00:00
dependabot-preview[bot] 03c0b0a5f4
Bump babel-loader-exclude-node-modules-except from 1.0.3 to 1.1.2
Bumps [babel-loader-exclude-node-modules-except](https://github.com/dutchenkoOleg/babel-loader-exclude-node-modules-except) from 1.0.3 to 1.1.2.
- [Release notes](https://github.com/dutchenkoOleg/babel-loader-exclude-node-modules-except/releases)
- [Commits](https://github.com/dutchenkoOleg/babel-loader-exclude-node-modules-except/compare/1.0.3...1.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-13 02:17:55 +00:00
Christoph Wurst c1b2ca8489
Merge pull request #25563 from nextcloud/direct-download-event
add event for when a direct download is triggered
2021-02-12 19:02:51 +01:00
Robin Appelman f824f273b6
add event for when a direct download is triggered
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-12 17:33:12 +01:00
Joas Schilling 83755b7b02
Make new result parts optional
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-12 16:21:47 +01:00
Robin Appelman 01118a2218
use the configured forwarded headers for the setup check
instead of always checking against the same header

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-12 14:22:27 +01:00
Robin Appelman cc0cc68c8d
dont show trusted proxy warning when the proxy and remote are both localhost
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-12 13:32:51 +01:00
Joas Schilling 9c1983b714
Fix hover background for dark mode
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-12 13:18:39 +01:00
Konrad Abicht 330315f03e refined name of getOpenSSLEncryptedAndPrivateKey
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-12 13:01:37 +01:00
Konrad Abicht 0bc49d67cd added unit tests for LoginFlowV2Service::createTokens
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-12 12:57:24 +01:00
Dan VerWeire 1f47ae7c1b Use ownerDisplayName for SharingEntry Tooltip
Some NC installations may use a LDAP UUID for the username. If that
is the case, then the tooltip for who a file/folder was shared by may say something
like `Shared with Steve McQueen (smqueen@yada.com) by FKDJ39-38D794JG-4398GJODF9H3G-4534`.

This commit changes the value showed for the owner to the full display name.

Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-12 07:32:26 +00:00
Nextcloud bot 361f160d0d
[tx-robot] updated from transifex 2021-02-12 02:20:18 +00:00
Roeland Jago Douma f124cb0ef1
Merge pull request #25582 from nextcloud/fix/no-imip-for-invalid-recpient
Do not send imip email to invalid recipients
2021-02-11 19:57:58 +01:00
Roeland Jago Douma 37199c1da0
Merge pull request #25585 from nextcloud/enhancement/empty-email-validation
Micro-optimize validation of empty email addresses
2021-02-11 19:51:06 +01:00
Samuel 059bcf65a5 Merge remote-tracking branch 'upstream/master' into feat-federatedfilesharing-logging 2021-02-11 19:28:34 +01:00
Robin Appelman c6ce1eb557
forward invalid argument message to frontend when creating a user fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-11 17:05:51 +01:00
Christoph Wurst 77a8ba0d11
Migrate WFE to the new PSR logger
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-11 16:17:37 +01:00
Christoph Wurst d45692ee96
Migrate custom loggers to PSR
This will help phase out the deprecated ILogger interface.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-11 16:16:34 +01:00
Christoph Wurst 5babad4f6f
Merge pull request #25576 from nextcloud/fix/webp_check
Fix WebP availability check
2021-02-11 15:58:14 +01:00
Christoph Wurst 883848b58a
Micro-optimize validation of empty email addresses
Then we don't have to construct any validators.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-11 15:15:38 +01:00
Christoph Wurst 9430de181e
Do not send imip email to invalid recipients
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-11 15:13:05 +01:00
Jan C. Borchardt e207b94554
Merge pull request #25299 from elsiehupp/favicon-touch-corners
favicon-touch image corners
2021-02-11 12:28:02 +01:00
Samuel 54cb0372c6 fix(tests)
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-11 12:24:38 +01:00
Samuel 957e287b79 Merge remote-tracking branch 'upstream/master' into feat-federatedfilesharing-logging 2021-02-11 12:06:16 +01:00
Roeland Jago Douma bf4210aa8d Always use the cache
If there is no cache available we will use the null cache. Which (you
guessed it) just doesn't do anything. This makes the code flow a bit
nicer and psalm a bit happier.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-11 11:48:52 +01:00
Christoph Wurst e618ea83b5
Make the app code checker a NOOP
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-11 11:46:02 +01:00
Roeland Jago Douma cc554890c1 Fix WebP availability check
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-11 11:31:38 +01:00
Konrad Abicht c755165dd4 added unit tests for LoginFlowV2Service::flowDone
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-11 10:45:47 +01:00
Roeland Jago Douma d5dea10517
Merge pull request #25378 from nextcloud/bugfix/noid/mention-match-improvements
Improve mention matches
2021-02-11 10:33:15 +01:00
Konrad Abicht d60dd8a208 added unit tests for LoginFlowV2Service::startLoginFlow
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-11 09:56:09 +01:00
Konrad Abicht f29748a5e1 added unit tests for LoginFlowV2Service::getByLoginToken
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-11 09:49:39 +01:00
Konrad Abicht b0a2278a7e added unit tests for LoginFlowV2Service::poll
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-11 09:38:29 +01:00
Nextcloud bot 02885358a9
[tx-robot] updated from transifex 2021-02-11 02:20:37 +00:00
Christoph Wurst 8a474305fa
Merge pull request #25570 from nextcloud/enh/dashboard/psalm_fixes
Some psalm fixes for the DashboardController
2021-02-10 21:37:18 +01:00
Roeland Jago Douma 7bacd710a1
Merge pull request #25460 from nextcloud/fix/apppassword/always_renew
Always renew apppasswords on login
2021-02-10 21:09:20 +01:00
Roeland Jago Douma a6cd238517 Some psalm fixes for the DashboardController
* Use the AppFramework IInitialState
* Set return type

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-10 20:00:04 +01:00
Roeland Jago Douma d0cf4e2f58
Merge pull request #24904 from nextcloud/enh/github-psalm
Have psalm analysis directly on github
2021-02-10 19:03:55 +01:00
Roeland Jago Douma cd457cc68b Always renew apppasswords on login
Else you can end up that you renewed your password (LDAP for example).
But they still don't work because you did not use them before you logged
in.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-10 19:02:37 +01:00
Roeland Jago Douma 1cc23c6e6e
Merge pull request #25558 from nextcloud/deprecate/generic-event-wrapper
Deprecate the GenericEvent wrapper
2021-02-10 18:57:07 +01:00
Roeland Jago Douma 847ee4041a
Merge pull request #25566 from nextcloud/fix/25359/followup
Fix remaining #25359
2021-02-10 18:02:24 +01:00
Christoph Wurst 039ecbdcf9
Merge pull request #25560 from nextcloud/enhancement/pure-psr-event
Make our event base class independent of Symfony and follow PSR
2021-02-10 16:13:06 +01:00
Roeland Jago Douma 25f9203a70 Fix remaining #25359
As a wise man once said:

"I like PRs that pass tests before merging"
C. Wurst, Feb 9th 2021

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-10 15:41:25 +01:00
Christoph Wurst 2f26ff40e9
Merge pull request #25359 from nextcloud/enhancement/typed-service-registration
Type the service registration
2021-02-10 15:31:42 +01:00
Roeland Jago Douma 8677870a09
Merge pull request #25435 from nextcloud/fix/favorite-icon
Fix favorite dark icon
2021-02-10 15:19:04 +01:00
Christoph Wurst 0a28440bf6
Make our event base class independent of Symfony and follow PSR
Symfony is migrating towards a pure PSR event dispatcher, hence their
event class is POPO that implements the PSR stoppable event interface.
Since we can do that ourself and this change doesn't come with any API
changes (breakage), it's easy for us to become independent of Symfony
but also stay PSR-compliant at the same step.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-10 15:15:29 +01:00
Roeland Jago Douma f9a4871bd4
Merge pull request #25557 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-02-10 15:15:04 +01:00
Roeland Jago Douma cc18213c98 Have psalm analysis directly on github
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-10 14:57:36 +01:00
Lukas Reschke d42f9e65a2
Merge pull request #25554 from nextcloud/fix/pslam/tainted_cookie
tain-escape the cookie input
2021-02-10 12:20:49 +01:00
Christoph Wurst aabd73912e
Type the service registration
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-10 09:44:24 +01:00
Christoph Wurst f76ec25e58
Deprecate the GenericEvent wrapper
This class is a convenience type to replace the old Symfony GenericEvent
with our own type, to ease the transition from Symfony events to our
(PSR) events. Hence we can deprecate the class as precaution to smoothen
the next transition step in the future.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-10 08:54:08 +01:00
Nextcloud-PR-Bot 130ce14892 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-02-10 04:31:13 +00:00
Nextcloud bot decb70b9ac
[tx-robot] updated from transifex 2021-02-10 02:20:59 +00:00
Roeland Jago Douma 784a752c0f tain-escape the cookie input
we only set the cookie if it is a proper <=32 char alphanum string.
Otherwise we just ignore the input.
Makes psalm also happier so that we can focus on other errors.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-09 22:35:18 +01:00
Christoph Wurst e4ca0c9fa0
Merge pull request #25548 from k00ni/pr/add-tests-for-LoginFlowV2Credentials
Added tests for OC\Core\Data\LoginFlowV2Credentials
2021-02-09 21:37:37 +01:00
Lukas Reschke 1fb03b3b2f
Merge pull request #25545 from k00ni/fix/Dockerfile-wrong-package-name-php7.4-acpu
Corrected package name used in .devcontainer/Dockerfile (php7.4-acpu => php7.4-apcu)
2021-02-09 21:26:30 +01:00
Christoph Wurst 3c2ea99940
Merge pull request #25546 from nextcloud/techdept/deprecate-event-constants
Deprecate all remaining event constants
2021-02-09 20:19:04 +01:00
Christoph Wurst f96f0f6cad
Merge pull request #25543 from nextcloud/deprecate/idb-events
Deprecate the internal IDBConnection event name constants
2021-02-09 18:50:55 +01:00
Christoph Wurst f8808e260d
Move app_password_created to a typed event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-09 18:49:35 +01:00
Christoph Wurst 4201fb25d3
Merge pull request #25549 from nextcloud/remove-reconnect-wrapper
remove ReconnectWrapper
2021-02-09 18:15:56 +01:00
Robin Appelman 111fa47f10
remove ReconnectWrapper
dbal now handles it's own reconnections: https://github.com/doctrine/dbal/blob/3.0.x/UPGRADE.md#the-pingableconnection-interface-is-removed

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-09 16:40:09 +01:00
Konrad Abicht a50c615d37 simplified tests
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-09 15:48:37 +01:00
Konrad Abicht a28705064b fixed coding style issue
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-09 15:40:19 +01:00
Konrad Abicht b38a619212 added tests for OC\Core\Data\LoginFlowV2Credentials
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-09 15:25:37 +01:00
Roeland Jago Douma f797a94393
Merge pull request #25531 from nextcloud/fix/dispatcher-argument-order
Fix the legacy dispatcher argument order
2021-02-09 14:39:12 +01:00
Christoph Wurst 4c6bc62f38
Merge pull request #25535 from nextcloud/query-exception-foreward
Improve exception when auto-wiring fails
2021-02-09 14:27:43 +01:00
Christoph Wurst 4fc0b2c639
Deprecate all remaining event constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-09 13:53:41 +01:00
Konrad Abicht f987eaea10 corrected package name used in .devcontainer/Dockerfile (php7.4-acpu => php7.4-apcu)
Signed-off-by: Konrad Abicht <hi@inspirito.de>
2021-02-09 13:52:52 +01:00
Roeland Jago Douma a36186980d
Merge pull request #25542 from nextcloud/fix-file-checker
Add .devcontainer to file-checker.php
2021-02-09 13:20:10 +01:00
Robin Appelman ec875227ec
forward query exception when fallback construction fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-09 13:15:22 +01:00
Christoph Wurst 3d075c370a
Deprecate the internal IDBConnection event name constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-09 11:27:59 +01:00
Lukas Reschke d4c718acad
Add .devcontainer to file-checker.php
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-09 11:22:29 +01:00
Christoph Wurst abc61a9f63
Fix the legacy dispatcher argument order
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-09 10:47:14 +01:00
Samuel 75fbc66f9b fix(sahre20): missing ILogger param instantiating Notifications
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-09 09:55:39 +01:00
Samuel dca4e4d528 fix(no_unused_imports)
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-09 09:46:52 +01:00
Samuel d441da2a80 fix(php-cs)
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-09 09:41:07 +01:00
Samuel 9b600a5365 fix(misc)
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-09 08:35:16 +01:00
Samuel 6e4cd33d12 fix(php-cs)
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-09 08:18:16 +01:00
Samuel e7ea31dcaa fix(logger): use logger from constructor arguments
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-09 07:49:01 +01:00
Nextcloud bot 9eea1e56dc
[tx-robot] updated from transifex 2021-02-09 02:20:45 +00:00
Roeland Jago Douma 983f7f3e49
Merge pull request #25493 from Worteks/fix-filessharing-debug
fix(log): remove debug log in _formatRemoteShare, suggested by @maxbes
2021-02-08 21:40:05 +01:00
Roeland Jago Douma 4854f91d94
Merge pull request #25423 from nextcloud/codespace
Add support for Codespaces
2021-02-08 21:27:02 +01:00
Robin Appelman 3401be216d
forward original query exception when querying by name fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-08 19:13:25 +01:00
Lukas Reschke 838c7005d3 Install more PHP modules by default
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-08 17:16:29 +00:00
Lukas Reschke b68ff8df64 Hard-code SMTP configuration
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-08 17:08:42 +00:00
Lukas Reschke 7f983cc549 Add initial support for GitHub codespaces
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-08 16:55:01 +00:00
Samuel 28214f73f3 fix(pebkac): missing `use OC`
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-08 10:18:02 +01:00
Samuel 77825e6961 fix(logger): set logger in constructor
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-08 10:11:00 +01:00
Nextcloud bot 26a20ed13f
[tx-robot] updated from transifex 2021-02-08 02:20:05 +00:00
dependabot-preview[bot] 4c0ad08084
Merge pull request #25517 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.12.13 2021-02-07 12:05:36 +00:00
dependabot-preview[bot] a21a8adb2b Bump @babel/preset-env from 7.12.11 to 7.12.13
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.11 to 7.12.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.13/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-07 11:36:26 +00:00
Samuel 69df6c41de fix(ci): build additionalScripts
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-07 11:06:11 +01:00
dependabot-preview[bot] 9e1a3a1447
Merge pull request #25516 from nextcloud/dependabot/npm_and_yarn/css-vars-ponyfill-2.4.3 2021-02-07 09:38:42 +00:00
dependabot-preview[bot] 2d4e33da83 Bump css-vars-ponyfill from 2.4.2 to 2.4.3
Bumps [css-vars-ponyfill](https://github.com/jhildenbiddle/css-vars-ponyfill) from 2.4.2 to 2.4.3.
- [Release notes](https://github.com/jhildenbiddle/css-vars-ponyfill/releases)
- [Changelog](https://github.com/jhildenbiddle/css-vars-ponyfill/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jhildenbiddle/css-vars-ponyfill/compare/v2.4.2...v2.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-07 09:11:00 +00:00
Nextcloud bot f19287ae57
[tx-robot] updated from transifex 2021-02-07 02:20:51 +00:00
Joas Schilling 98032425b4 Fix linter
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-06 13:07:06 +01:00
Joas Schilling 86109f77e0 Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-06 13:07:06 +01:00
Joas Schilling ef7ed47f14 Make Psalm happy
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-06 13:07:06 +01:00
Joas Schilling 1344c61145 Improve mention matches
The previous regex didn't correctly match users with . ' or -

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-06 13:07:05 +01:00
Roeland Jago Douma cd77b1f238
Merge pull request #25499 from nextcloud/test/symfony-adapter
Test the symfony adapter / fix missing return object
2021-02-06 13:01:23 +01:00
dependabot-preview[bot] 6945bd8cc3
Merge pull request #25518 from nextcloud/dependabot/npm_and_yarn/chai-4.3.0 2021-02-06 10:07:47 +00:00
Roeland Jago Douma 572dd7b088
Merge pull request #25503 from nextcloud/bugfix/23617/fix-share-dropdown-position
Sharing dropdown now opens below
2021-02-06 10:59:32 +01:00
Roeland Jago Douma 6b1a4fa983
Merge pull request #25505 from nextcloud/versions-expire-handle-unavailable
dont stop expiring versions if we cant check if the source file still exists
2021-02-06 10:57:14 +01:00
dependabot-preview[bot] 593b0ae9e1
Merge pull request #25515 from nextcloud/dependabot/npm_and_yarn/webpack-cli-4.5.0 2021-02-06 09:46:31 +00:00
dependabot-preview[bot] c055d41135
Merge pull request #25521 from nextcloud/dependabot/npm_and_yarn/babel/core-7.12.13 2021-02-06 06:18:53 +00:00
dependabot-preview[bot] 4e9cd27437
Bump @babel/core from 7.12.10 to 7.12.13
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.10 to 7.12.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.13/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-06 04:24:12 +00:00
dependabot-preview[bot] 3cda104aac
Merge pull request #25520 from nextcloud/dependabot/npm_and_yarn/babel/plugin-proposal-class-properties-7.12.13 2021-02-06 04:21:42 +00:00
dependabot-preview[bot] 56dff29468
Merge pull request #25512 from nextcloud/dependabot/npm_and_yarn/build/karma-viewport-1.0.8 2021-02-06 02:50:09 +00:00
dependabot-preview[bot] 05b21584ad
Bump @babel/plugin-proposal-class-properties from 7.12.1 to 7.12.13
Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-class-properties) from 7.12.1 to 7.12.13.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.13/packages/babel-plugin-proposal-class-properties)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-06 02:22:13 +00:00
Nextcloud bot 8bb6bb53ad
[tx-robot] updated from transifex 2021-02-06 02:20:50 +00:00
dependabot-preview[bot] dd0766014a
Bump chai from 4.2.0 to 4.3.0
Bumps [chai](https://github.com/chaijs/chai) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/master/History.md)
- [Commits](https://github.com/chaijs/chai/compare/4.2.0...4.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-06 02:20:29 +00:00
dependabot-preview[bot] 1d2190cb83
Bump webpack-cli from 4.4.0 to 4.5.0
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.4.0 to 4.5.0.
- [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.4.0...webpack-cli@4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-06 02:16:32 +00:00
dependabot-preview[bot] 4ff94fae3e
Bump karma-viewport from 1.0.7 to 1.0.8 in /build
Bumps [karma-viewport](https://github.com/squidfunk/karma-viewport) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/squidfunk/karma-viewport/releases)
- [Changelog](https://github.com/squidfunk/karma-viewport/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/karma-viewport/compare/1.0.7...1.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-06 02:15:41 +00:00
Roeland Jago Douma 6e461248e0
Merge pull request #25500 from Worteks/fix-sharemanager-genericshareexception
fix(translation): replace static error message
2021-02-05 16:17:34 +01:00
Robin Appelman b2fb4d898a
dont stop expiring versions if we cant check if the source file still exists
instead continue assuming it still exists

Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-05 15:06:43 +01:00
Vincent Petry 50004bc4a5
Sharing dropdown now opens below
Fixes an issue where the dropdown list was not visible on small screens
as it would appear above the field and be hidden behind the container
border.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-05 14:47:01 +01:00
Roeland Jago Douma c12b3f4de3
Merge pull request #25404 from nextcloud/dependabot/npm_and_yarn/vue-router-3.5.1
Bump vue-router from 3.4.9 to 3.5.1
2021-02-05 14:03:51 +01:00
Samuel 3a077a3903 revert(comment)
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-05 13:27:37 +01:00
Samuel 5f8dfa8e4c revert(exception): keep throwing an exception for now
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-05 12:52:59 +01:00
Christoph Wurst 52c1464aae
Merge pull request #25472 from nextcloud/js/burn/dompurity
Kill DOMPurify from main bundle
2021-02-05 12:33:26 +01:00
Samuel 2c59e59023 fix(php-cs): indentation / elseif, maybe braces?
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-05 12:16:01 +01:00
Christoph Wurst f6ddda8dad
Test the symfony adapter
To prevent regression in the future.

And make sure we always return an object …

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-05 12:14:47 +01:00
Samuel 59e43b4828 fix(translation): replace static error message
as suggested by @kesselb in nextcloud/server#25490

Signed-off-by: Samuel <faust64@gmail.com>
2021-02-05 12:06:35 +01:00
Samuel e41afea739 feat(federatedfilesharing): log errors, as suggested by @maxbes
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-05 11:55:56 +01:00
dependabot-preview[bot] 73d9d65f11 Bump vue-router from 3.4.9 to 3.5.1
Bumps [vue-router](https://github.com/vuejs/vue-router) from 3.4.9 to 3.5.1.
- [Release notes](https://github.com/vuejs/vue-router/releases)
- [Changelog](https://github.com/vuejs/vue-router/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-router/compare/v3.4.9...v3.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-05 10:33:58 +00:00
Roeland Jago Douma 4b97ef9b41
Merge pull request #25487 from nextcloud/fix/generic-even-wrapper-log-once
Log deprecation notice of GenericEventWrapper just once
2021-02-05 11:12:20 +01:00
Samuel 73338a061b fix(debug): remove debug log in _formatRemoteShare, suggested by @maxbes
Signed-off-by: Samuel <faust64@gmail.com>
2021-02-05 10:45:44 +01:00
Christoph Wurst 91e1707498
Log deprecation notice of GenericEventWrapper just once
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-05 08:45:58 +01:00
Nextcloud bot c935f6a776
[tx-robot] updated from transifex 2021-02-05 02:21:31 +00:00
Vincent Petry 99052da983
Merge pull request #25441 from nextcloud/bugfix/24473/quickfix-tags-view-once
Fix duplicate tag info view registration
2021-02-04 10:11:22 +01:00
Roeland Jago Douma 7f5549d94e
Merge pull request #25443 from nextcloud/bugfix/25442/fix-settings-users-pagination-tolerance
Make user list pagination more tolerant
2021-02-04 09:34:36 +01:00
Vincent Petry 49568e2a31
Make user list pagination more tolerant
In case the server returns more results than expected by the limit, it
is now still interpreted as there being more results to query.

This situation can happen when there are multiple user backends in
place.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-04 08:52:51 +01:00
Nextcloud bot df9ce19a6b
[tx-robot] updated from transifex 2021-02-04 02:20:03 +00:00
Vincent Petry 8b04280f38 Fix duplicate tag info view registration
Only register the tag info view once as it's stored in a singleton.
This fixes an issue where the tag info view did not get rendered after
swiching between different file views.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-03 22:50:40 +01:00
Roeland Jago Douma a9b1ed4ba7 Kill DOMPurify from main bundle
Apps using this should ship their own.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-03 22:45:15 +01:00
Roeland Jago Douma 2004bf74eb
Merge pull request #25467 from nextcloud/debt/noid/test-dbal-exception-wrap
Add test for dbal exception wrapping
2021-02-03 21:35:56 +01:00
Joas Schilling a7cf6dbdb0
Merge pull request #25468 from nextcloud/fix/nextcloud-upgrade-22
Allow upgrades in Nextcloud 22 / Disallow upgrade from 20
2021-02-03 21:34:52 +01:00
Christoph Wurst aefcc03b78
Do not allow upgrade from Nextcloud 20
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-03 20:07:38 +01:00
Christoph Wurst 6e445aaaf3
Allow upgrades in Nextcloud 22
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-03 20:05:16 +01:00
Daniel Kesselberg b68c3a5836
Add test for dbal exception wrapping
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-02-03 19:43:52 +01:00
Christoph Wurst 9c5c865f45
Merge pull request #25464 from nextcloud/enhancement/parse-calendar-object-for-attendees
Parse calendar object for attendees and emit interaction events
2021-02-03 19:10:06 +01:00
Christoph Wurst 5366ef34bd
Parse calendar object for attendees and emit interaction events
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-03 18:04:28 +01:00
Christoph Wurst 9c88e32bcc
Merge pull request #25432 from nextcloud/enhancement/calendar-interaction-events
Emit calendar interaction events
2021-02-03 12:50:26 +01:00
Christoph Wurst 689e2a0838
Emit an interaction event for calendar event user attendees
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-03 12:16:57 +01:00
Christoph Wurst 0da1999a3b
Emit an interaction event for calendar share recipients
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-03 12:16:57 +01:00
dependabot-preview[bot] 3e35d2c394
Merge pull request #25403 from nextcloud/dependabot/npm_and_yarn/vuex-3.6.2 2021-02-03 09:38:05 +00:00
dependabot-preview[bot] 57263eb08f Bump vuex from 3.6.0 to 3.6.2
Bumps [vuex](https://github.com/vuejs/vuex) from 3.6.0 to 3.6.2.
- [Release notes](https://github.com/vuejs/vuex/releases)
- [Changelog](https://github.com/vuejs/vuex/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vuex/compare/v3.6.0...v3.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-02-03 08:47:14 +00:00
Joas Schilling 3f780b0b9b
Merge pull request #25454 from nextcloud/this-is-22
This is 22
2021-02-03 09:30:38 +01:00
Joas Schilling 9de00f3d24
This is 22
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-03 08:38:41 +01:00
Nextcloud bot 8c41589b30
[tx-robot] updated from transifex 2021-02-03 02:19:44 +00:00
Roeland Jago Douma 17930c64f4
Merge pull request #25453 from nextcloud/revert-25438-pin-psalm-version
Revert "Pin Psalm version to an older one"
2021-02-02 22:12:01 +01:00
Roeland Jago Douma 08cae2ec44
Revert "Pin Psalm version to an older one" 2021-02-02 22:08:01 +01:00
Roeland Jago Douma 99f7fa4ae7
Merge pull request #25438 from nextcloud/pin-psalm-version
Pin Psalm version to an older one
2021-02-02 22:05:11 +01:00
Roeland Jago Douma 137636b651
Merge pull request #24700 from Imajie/s3-creds
Resolves #24699, Support ES2 and ECS instance providers for S3 buckets
2021-02-02 21:48:22 +01:00
Roeland Jago Douma 5c6d245661
Merge pull request #25393 from nextcloud/fix/25165/repair-dav-shares
add repair job for unencoded group share uris
2021-02-02 21:43:42 +01:00
Lukas Reschke f1d2dcdaa5 Pin Psalm version to an older one
Ref https://github.com/vimeo/psalm/issues/5144

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-02 13:54:18 +00:00
GretaD b473db5a58 Fix favorite dark icon
Signed-off-by: GretaD <gretadoci@gmail.com>
2021-02-02 13:48:18 +01:00
Arthur Schiwon d4a45b4cac
test: adjust expectation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-29 19:32:12 +01:00
Arthur Schiwon 3ecc6d0a8a
show suggestion to clean up possible invalid shares later
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-29 17:43:58 +01:00
Arthur Schiwon bd8b43127f
take into account that UNIQUE index might not work as expected
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-29 17:29:10 +01:00
Arthur Schiwon 558f062ca6
add repair job for unencoded calendars
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-29 17:29:10 +01:00
Daniel Calviño Sánchez 9ccabff6ba Fix valid storages removed when cleaning remote storages
The remote URL of a share is always stored in the database with a
trailing slash. However, when a cloud ID is generated trailing slashes
are removed.

The ID of a remote storage is generated from the cloud ID, but the
"cleanup-remote-storage" command directly used the remote URL stored in
the database. Due to this, even if the remote storage was valid, its ID
did not match the ID of the remote share generated by the command and
ended being removed.

Now the command generates the ID of remote shares using the cloud ID
instead, just like done by the remote storage, so there is no longer a
mismatch.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-01-28 21:42:31 +01:00
Nicolas SIMIDE 69bf0c8a9e ReplyTo option for sharebymail - Issue #24139 - Little bug fix
Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
2021-01-28 15:57:29 +01:00
dems54 1427a9a361 Update apps/sharebymail/lib/Settings/SettingsManager.php
Small nitpicks

Co-authored-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
2021-01-28 15:57:29 +01:00
dems54 0a8d9341dd Update apps/sharebymail/lib/Settings/SettingsManager.php
Small nitpicks

Co-authored-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
2021-01-28 15:57:29 +01:00
Nicolas SIMIDE 4ac636d252 ReplyTo option for sharebymail Issue #24139
Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
2021-01-28 15:57:29 +01:00
Robin Appelman 6ecf33bfe7
only use share cacheentry when available
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26 16:22:00 +01:00
Robin Appelman e511a539b7
adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26 15:55:38 +01:00
Robin Appelman 5ae0be08b4
fix search in nested jails
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26 15:30:54 +01:00
Robin Appelman 27f9df2e87
fix cachjail searching for root
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26 15:30:50 +01:00
Robin Appelman a44aab11f7
do cachejail search filtering in sql
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26 15:30:46 +01:00
Daniel Calviño Sánchez 3aba5b27be Add integration tests for "sharing:cleanup-remote-storages" OCC command
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-01-26 11:06:33 +01:00
Henning Hoefer dfd07cc4d1 Fix "searchUsers" usage in Group_LDAP.php
`Access::searchUsers` expects an array as the second parameter, `Group_LDAP.php` called the method with a simple string, resulting in an exception and preventing folders shared with dynamic groups from working. This trivial change fixes the usage in Group_LDAP.

Fixes #25163

Signed-off-by: Henning Hoefer <hho@users.noreply.github.com>
2021-01-25 14:38:46 +01:00
Elsie Hupp 7f54eaf002 Update manifest.json
Updated dimensions of favicon-touch.png

Signed-off-by: Elsie Hupp <github@elsiehupp.com>
2021-01-24 03:51:37 -05:00
Elsie Hupp 4d386e5863 Update favicon-touch.png
removed rounded corners and increased size (exported from SVG)

Signed-off-by: Elsie Hupp <github@elsiehupp.com>
2021-01-24 03:51:37 -05:00
elsiehupp 487862ad52 Remove rounded corners
`apple-touch-icon` expects squared corners; only `apple-touch-icon-precomposed` expects pre-rounded corners. iOS and browsers apply their own corner radii to `apple-touch-icon`.

Signed-off-by: Elsie Hupp <github@elsiehupp.com>
2021-01-24 03:50:33 -05:00
Jasper Knockaert 40fde94b4d
fix even more brackets
Signed-off-by: Jasper Knockaert jasper@knockaert.nl
2021-01-16 14:49:53 +01:00
Jasper Knockaert 252d1ae512
fix brakcets 2021-01-16 14:38:19 +01:00
Jasper Knockaert f9a0380eb1
consolidation of boolean expression 2021-01-16 14:33:44 +01:00
Julius Härtl 9ee7d0b718
Fix files_external:notify command when running withing a subdirectory of the SMB share
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-14 16:53:02 +01:00
Jasper Knockaert 261966ace5
Update EncryptionTest.php 2021-01-05 21:45:50 +01:00
Jasper Knockaert 664e74a82e
2nd attempt to fix tests 2021-01-05 20:41:02 +01:00
Jasper Knockaert 87c640193b
attemtp to fix test 2021-01-05 19:09:16 +01:00
Jasper Knockaert 81e3ae4753
avoid fread on directories and unencrypted files
Reworking the logic in order to first check the filecache and only then reading the fileheader.
This in order to solve #21578.
2021-01-05 11:14:49 +01:00
James Letendre 45a02ee30c Fix failing tests
Signed-off-by: James Letendre <james.letendre@gmail.com>
2020-12-15 19:06:06 -05:00
James Letendre ad95e51cbe Add web identity provider to S3 connection chain
Signed-off-by: James Letendre <james.letendre@gmail.com>
2020-12-15 16:37:46 -05:00
James Letendre 5b756a9fb0 Replace defaultProvider with explicit calls to exclude user home directory lookup
Signed-off-by: James Letendre <james.letendre@gmail.com>
2020-12-14 16:22:41 -05:00
James Letendre 85aa77539b Resolves #24699, Support ES2 and ECS instance providers for S3 buckets
Signed-off-by: James Letendre <james.letendre@gmail.com>
2020-12-14 12:55:46 -05:00
1929 changed files with 43340 additions and 19645 deletions

47
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,47 @@
FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
# PHP
RUN apt-get update -y
RUN apt-get install --no-install-recommends -y \
php7.4 \
php7.4-gd \
php7.4-zip \
php7.4-curl \
php7.4-xml \
php7.4-mbstring \
php7.4-sqlite \
php7.4-xdebug \
php7.4-pgsql \
php7.4-intl \
php7.4-imagick \
php7.4-gmp \
php7.4-apcu \
php7.4-bcmath \
libmagickcore-6.q16-3-extra \
curl \
vim \
lsof \
make \
nodejs \
npm
RUN echo "xdebug.remote_enable = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
RUN echo "xdebug.remote_autostart = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
# Docker
RUN apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
RUN apt-get update -y
RUN apt-get install -y docker-ce docker-ce-cli containerd.io
RUN ln -s /var/run/docker-host.sock /var/run/docker.sock

View File

@ -0,0 +1,18 @@
<?php
$cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID');
$CONFIG = [
'mail_from_address' => 'no-reply',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'example.com',
'mail_smtphost' => 'localhost',
'mail_smtpport' => '1025',
'memcache.local' => '\OC\Memcache\APCu',
];
if($cloudEnvironmentId !== true) {
$CONFIG['overwritehost'] = $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com';
$CONFIG['overwriteprotocol'] = 'https';
}

View File

@ -0,0 +1,22 @@
{
"name": "NextcloudServer",
"dockerComposeFile": "docker-compose.yml",
"service": "nextclouddev",
"postCreateCommand": ".devcontainer/setup.sh",
"forwardPorts": [
80,
8080,
8025
],
"runArgs": [
"--privileged"
],
"extensions": [
"felixfbecker.php-debug",
"felixfbecker.php-intellisense",
"ms-azuretools.vscode-docker"
],
"settings": {
"php.suggest.basic": false,
}
}

View File

@ -0,0 +1,29 @@
version: '3'
services:
nextclouddev:
build: .
volumes:
- .:/workspace:cached
- /var/run/docker.sock:/var/run/docker-host.sock
command: /bin/sh -c "while sleep 1000; do :; done"
ports:
- 80:80
- 8080:8080
- 8025:8025
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: postgres
network_mode: service:nextclouddev
adminer:
image: adminer
restart: always
network_mode: service:nextclouddev
mailhog:
image: mailhog/mailhog
restart: always
network_mode: service:nextclouddev

8
.devcontainer/setup.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" >/dev/null 2>&1 && pwd )"
cd $DIR/
git submodule update --init
# Codespace config
cp .devcontainer/codespace.config.php config/codespace.config.php

File diff suppressed because it is too large Load Diff

11
.eslintignore Normal file
View File

@ -0,0 +1,11 @@
# Ignoring folders for eslint
node_modules/
3rdparty/
**/vendor/
**/l10n/
**/js/*
*.config.js
tests/lib/
# TODO: remove when comments files is not using handlebar templates anymore
apps/comments/src/templates.js

View File

@ -8,7 +8,7 @@ module.exports = {
escapeHTML: true,
oc_userconfig: true,
dayNames: true,
firstDay: true
firstDay: true,
},
extends: ['@nextcloud'],
rules: {

1
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1 @@
custom: https://nextcloud.com/include/

View File

@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Question
- name: Community Support and Help
url: https://help.nextcloud.com/
about: I have a question …
about: Configuration, webserver/proxy or performance issues and other questions
- name: 💼 Nextcloud Enterprise
url: https://portal.nextcloud.com/
about: If you are a customer and are using Nextcloud Enterprise, please submit your issue directly in the Nextcloud Portal so it can be resolved by our dedicated engineers more quickly.
about: If you are a Nextcloud Enterprise customer, or need Professional support, so it can be resolved directly by our dedicated engineers more quickly

165
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,165 @@
version: 2
updates:
# Linting and coding style
- package-ecosystem: composer
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
# Main master npm
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
# Testing master npm
- package-ecosystem: npm
directory: "/build"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
labels:
- "3. to review"
- "feature: dependencies"
# Testing master composer
- package-ecosystem: composer
directory: "/build/integration"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
labels:
- "3. to review"
- "feature: dependencies"
# Main stableXX npm
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
target-branch: stable19
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
ignore:
# ignore all GitHub linguist patch updates
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
target-branch: stable20
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
ignore:
# ignore all GitHub linguist patch updates
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
target-branch: stable21
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
ignore:
# ignore all GitHub linguist patch updates
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
# Testing StableXX composer
- package-ecosystem: composer
directory: "/build/integration"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
target-branch: stable19
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
ignore:
# ignore all GitHub linguist patch updates
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- package-ecosystem: composer
directory: "/build/integration"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
target-branch: stable20
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
ignore:
# ignore all GitHub linguist patch updates
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- package-ecosystem: composer
directory: "/build/integration"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
target-branch: stable21
labels:
- "3. to review"
- "feature: dependencies"
reviewers:
- "nextcloud/server-dependabot"
ignore:
# ignore all GitHub linguist patch updates
- dependency-name: "*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]

View File

@ -1,5 +1,5 @@
name: Dependabot
on: pull_request
on: pull_request_target
jobs:
auto-merge:
@ -7,13 +7,15 @@ jobs:
steps:
# Default github action approve
- uses: hmarr/auto-approve-action@v2.0.0
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
if: github.ref == 'refs/heads/master' &&
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Nextcloud bot approve and merge request
- uses: ahmadnassri/action-dependabot-auto-merge@v1
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
- uses: ahmadnassri/action-dependabot-auto-merge@v2
if: github.ref == 'refs/heads/master' &&
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
with:
target: patch
target: minor
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}

12
.github/workflows/fixup.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Pull request checks
on: pull_request
jobs:
commit-message-check:
name: Block fixup and squash commits
runs-on: ubuntu-latest
steps:
- name: Run check
uses: xt0rted/block-autosquash-commits-action@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -15,6 +15,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
- name: Lint
run: composer run lint
@ -29,6 +30,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: 7.4
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
tools: cs2pr
- name: Install dependencies
@ -38,3 +40,25 @@ jobs:
composer run cs:check -- --format=checkstyle | cs2pr
composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
shell: bash
node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
name: eslint node${{ matrix.node-version }}
steps:
- uses: actions/checkout@v2
- name: Set up node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint

View File

@ -41,7 +41,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, iconv, fileinfo, intl, sqlite, pdo_sqlite, oci8
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,oci8,openssl,pdo_sqlite,posix,sqlite,xml,zip
tools: phpunit:8.5.2
coverage: none

28
.github/workflows/psalm-github.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Psalm show github
on:
pull_request:
push:
branches:
- master
- stable*
jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Psalm
uses: docker://vimeo/psalm-github-actions
continue-on-error: true
with:
composer_ignore_platform_reqs: false
report_file: results.sarif
- name: Upload Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: results.sarif

View File

@ -1,10 +1,11 @@
name: Psalm Security Analysis
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- master
- stable*
jobs:
psalm:
@ -19,6 +20,7 @@ jobs:
uses: docker://vimeo/psalm-github-actions
with:
security_analysis: true
composer_ignore_platform_reqs: false
report_file: results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1

View File

@ -17,6 +17,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: 7.4
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
- name: Composer install
run: composer i
@ -42,6 +43,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: 7.4
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
- name: Composer install
run: composer i

View File

@ -19,6 +19,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: 7.4
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
- name: Composer install
run: composer i

View File

@ -9,12 +9,15 @@ use Nextcloud\CodingStandard\Config;
$config = new Config();
$config
->getFinder()
->ignoreVCSIgnored(true)
->exclude('config')
->exclude('data')
->notPath('3rdparty')
->notPath('build/integration/vendor')
->notPath('build/lib')
->notPath('build/node_modules')
->notPath('build/stubs')
->notPath('composer')
->notPath('node_modules')
->notPath('vendor')
->in(__DIR__);
return $config;

@ -1 +1 @@
Subproject commit fbc872de93b18d3e87367d00e281982eab74c5b9
Subproject commit 0d7c15582f5d2478f333c0487acf88ae881d9206

View File

@ -133,7 +133,7 @@ Nextcloud is written by:
- Joel S <joel.devbox@protonmail.com>
- Johan Björk <johanimon@gmail.com>
- Johannes Ernst <jernst@indiecomputing.com>
- Johannes Leuker <j.leuker@hosting.de>
- Johannes Leuker <developers@hosting.de>
- Johannes Riedel <joeried@users.noreply.github.com>
- Johannes Schlichenmaier <johannes@schlichenmaier.info>
- Johannes Willnecker <johannes@willnecker.com>

View File

@ -1,7 +1,7 @@
all: clean dev-setup build-js-production
# Dev env management
dev-setup: clean clean-dev npm-init
dev-setup: clean npm-init
npm-init:
npm ci
@ -43,9 +43,6 @@ clean:
rm -rf apps/workflowengine/js/
rm -rf core/js/dist
clean-dev:
rm -rf node_modules
clean-git: clean
git checkout -- apps/accessibility/js/
git checkout -- apps/comments/js/

View File

@ -16,7 +16,7 @@
<bugs>https://github.com/nextcloud/server/issues</bugs>
<dependencies>
<nextcloud min-version="21" max-version="21"/>
<nextcloud min-version="22" max-version="22"/>
</dependencies>
<repair-steps>

View File

@ -2,8 +2,9 @@
$color-main-text: #d8d8d8;
$color-main-background: #181818;
$color-background-dark: lighten($color-main-background, 4%);
$color-background-darker: lighten($color-main-background, 8%);
$color-background-hover: lighten($color-main-background, 4%);
$color-background-dark: lighten($color-main-background, 7%);
$color-background-darker: lighten($color-main-background, 14%);
$color-placeholder-light: lighten($color-main-background, 10%);
$color-placeholder-dark: lighten($color-main-background, 20%);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -40,9 +40,9 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IConfig;
use OCP\ILogger;
use OCP\IRequest;
use OCP\IUserSession;
use Psr\Log\LoggerInterface;
use ScssPhp\ScssPhp\Compiler;
use ScssPhp\ScssPhp\Exception\ParserException;
use ScssPhp\ScssPhp\OutputStyle;
@ -58,7 +58,7 @@ class AccessibilityController extends Controller {
/** @var IConfig */
private $config;
/** @var ILogger */
/** @var LoggerInterface */
private $logger;
/** @var ITimeFactory */
@ -82,7 +82,7 @@ class AccessibilityController extends Controller {
public function __construct(string $appName,
IRequest $request,
IConfig $config,
ILogger $logger,
LoggerInterface $logger,
ITimeFactory $timeFactory,
IUserSession $userSession,
IAppManager $appManager,
@ -145,7 +145,12 @@ class AccessibilityController extends Controller {
'@import "css-variables.scss";'
);
} catch (ParserException $e) {
$this->logger->error($e->getMessage(), ['app' => 'core']);
$this->logger->error($e->getMessage(),
[
'app' => 'core',
'exception' => $e,
]
);
}
}
@ -254,7 +259,12 @@ class AccessibilityController extends Controller {
$scss->compile($variables);
$this->injectedVariables = $variables;
} catch (ParserException $e) {
$this->logger->logException($e, ['app' => 'core']);
$this->logger->error($e->getMessage(),
[
'app' => 'core',
'exception' => $e,
]
);
}
return $variables;
}

View File

@ -117,7 +117,7 @@ class ConfigController extends OCSController {
$highcontrast = [$this->accessibilityProvider->getHighContrast()];
$fonts = $this->accessibilityProvider->getFonts();
$availableOptions = array_map(function ($option) {
$availableOptions = array_map(function ($option): string {
return $option['id'];
}, array_merge($themes, $highcontrast, $fonts));

View File

@ -27,8 +27,8 @@ namespace OCA\Accessibility\Settings;
use OCA\Accessibility\AccessibilityProvider;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Services\IInitialState;
use OCP\IConfig;
use OCP\IInitialStateService;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\IUserSession;
@ -55,26 +55,16 @@ class Personal implements ISettings {
/** @var AccessibilityProvider */
private $accessibilityProvider;
/** @var IInitialStateService */
/** @var IInitialState */
private $initialStateService;
/**
* Settings constructor.
*
* @param string $appName
* @param IConfig $config
* @param IUserSession $userSession
* @param IL10N $l
* @param IURLGenerator $urlGenerator
* @param AccessibilityProvider $accessibilityProvider
*/
public function __construct(string $appName,
IConfig $config,
IUserSession $userSession,
IL10N $l,
IURLGenerator $urlGenerator,
AccessibilityProvider $accessibilityProvider,
IInitialStateService $initialStateService) {
IInitialState $initialStateService) {
$this->appName = $appName;
$this->config = $config;
$this->userSession = $userSession;
@ -88,7 +78,7 @@ class Personal implements ISettings {
* @return TemplateResponse returns the instance with all parameters set, ready to be rendered
* @since 9.1
*/
public function getForm() {
public function getForm(): TemplateResponse {
Util::addScript('accessibility', 'accessibility');
Util::addStyle('accessibility', 'style');
@ -104,8 +94,8 @@ class Personal implements ISettings {
'font' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'font', false)
];
$this->initialStateService->provideInitialState($this->appName, 'available-config', $availableConfig);
$this->initialStateService->provideInitialState($this->appName, 'user-config', $userConfig);
$this->initialStateService->provideInitialState('available-config', $availableConfig);
$this->initialStateService->provideInitialState('user-config', $userConfig);
return new TemplateResponse($this->appName, 'settings-personal');
}
@ -114,7 +104,7 @@ class Personal implements ISettings {
* @return string the section ID, e.g. 'sharing'
* @since 9.1
*/
public function getSection() {
public function getSection(): string {
return $this->appName;
}
@ -126,7 +116,7 @@ class Personal implements ISettings {
* E.g.: 70
* @since 9.1
*/
public function getPriority() {
public function getPriority(): int {
return 40;
}
}

View File

@ -1,7 +1,7 @@
/**
* @copyright Copyright (c) 2020 Roeland Jago Douma <roeland@famdouma.nl>
*
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Jan C. Borchardt <hey@jancborchardt.net>
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
@ -17,8 +17,10 @@
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import { loadState } from '@nextcloud/initial-state'
OCA.Accessibility = loadState('accessibility', 'data')

View File

@ -16,8 +16,10 @@
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import Vue from 'vue'
import { loadState } from '@nextcloud/initial-state'
import App from './Accessibility.vue'

View File

@ -1,3 +1,25 @@
/**
* @copyright Copyright (c) 2016 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
const path = require('path')
module.exports = {

View File

@ -15,7 +15,7 @@
<category>monitoring</category>
<bugs>https://github.com/nextcloud/server/issues</bugs>
<dependencies>
<nextcloud min-version="21" max-version="21"/>
<nextcloud min-version="22" max-version="22"/>
</dependencies>
<background-jobs>
<job>OCA\AdminAudit\BackgroundJobs\Rotate</job>

View File

@ -20,4 +20,5 @@ return array(
'OCA\\AdminAudit\\Actions\\Versions' => $baseDir . '/../lib/Actions/Versions.php',
'OCA\\AdminAudit\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
'OCA\\AdminAudit\\BackgroundJobs\\Rotate' => $baseDir . '/../lib/BackgroundJobs/Rotate.php',
'OCA\\AdminAudit\\Listener\\CriticalActionPerformedEventListener' => $baseDir . '/../lib/Listener/CriticalActionPerformedEventListener.php',
);

View File

@ -35,6 +35,7 @@ class ComposerStaticInitAdminAudit
'OCA\\AdminAudit\\Actions\\Versions' => __DIR__ . '/..' . '/../lib/Actions/Versions.php',
'OCA\\AdminAudit\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
'OCA\\AdminAudit\\BackgroundJobs\\Rotate' => __DIR__ . '/..' . '/../lib/BackgroundJobs/Rotate.php',
'OCA\\AdminAudit\\Listener\\CriticalActionPerformedEventListener' => __DIR__ . '/..' . '/../lib/Listener/CriticalActionPerformedEventListener.php',
);
public static function getInitializer(ClassLoader $loader)

View File

@ -29,16 +29,13 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
use OCP\ILogger;
use Psr\Log\LoggerInterface;
class Action {
/** @var ILogger */
/** @var LoggerInterface */
private $logger;
/**
* @param ILogger $logger
*/
public function __construct(ILogger $logger) {
public function __construct(LoggerInterface $logger) {
$this->logger = $logger;
}
@ -53,7 +50,7 @@ class Action {
public function log(string $text,
array $params,
array $elements,
bool $obfuscateParameters = false) {
bool $obfuscateParameters = false): void {
foreach ($elements as $element) {
if (!isset($params[$element])) {
if ($obfuscateParameters) {

View File

@ -32,7 +32,7 @@ class AppManagement extends Action {
/**
* @param string $appName
*/
public function enableApp(string $appName) {
public function enableApp(string $appName): void {
$this->log('App "%s" enabled',
['app' => $appName],
['app']
@ -43,7 +43,7 @@ class AppManagement extends Action {
* @param string $appName
* @param string[] $groups
*/
public function enableAppForGroups(string $appName, array $groups) {
public function enableAppForGroups(string $appName, array $groups): void {
$this->log('App "%1$s" enabled for groups: %2$s',
['app' => $appName, 'groups' => implode(', ', $groups)],
['app', 'groups']
@ -53,7 +53,7 @@ class AppManagement extends Action {
/**
* @param string $appName
*/
public function disableApp(string $appName) {
public function disableApp(string $appName): void {
$this->log('App "%s" disabled',
['app' => $appName],
['app']

View File

@ -33,7 +33,7 @@ namespace OCA\AdminAudit\Actions;
* @package OCA\AdminAudit\Actions
*/
class Auth extends Action {
public function loginAttempt(array $params) {
public function loginAttempt(array $params): void {
$this->log(
'Login attempt: "%s"',
$params,
@ -44,7 +44,7 @@ class Auth extends Action {
);
}
public function loginSuccessful(array $params) {
public function loginSuccessful(array $params): void {
$this->log(
'Login successful: "%s"',
$params,
@ -55,7 +55,7 @@ class Auth extends Action {
);
}
public function logout(array $params) {
public function logout(array $params): void {
$this->log(
'Logout occurred',
[],

View File

@ -32,7 +32,7 @@ class Console extends Action {
/**
* @param $arguments
*/
public function runCommand(array $arguments) {
public function runCommand(array $arguments): void {
if (!isset($arguments[1]) || $arguments[1] === '_completion') {
// Don't log autocompletion
return;

View File

@ -38,7 +38,7 @@ class Files extends Action {
*
* @param array $params
*/
public function read(array $params) {
public function read(array $params): void {
$this->log(
'File accessed: "%s"',
$params,
@ -53,7 +53,7 @@ class Files extends Action {
*
* @param array $params
*/
public function rename(array $params) {
public function rename(array $params): void {
$this->log(
'File renamed: "%s" to "%s"',
$params,
@ -69,7 +69,7 @@ class Files extends Action {
*
* @param array $params
*/
public function create(array $params) {
public function create(array $params): void {
if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
return;
}
@ -88,7 +88,7 @@ class Files extends Action {
*
* @param array $params
*/
public function copy(array $params) {
public function copy(array $params): void {
$this->log(
'File copied: "%s" to "%s"',
$params,
@ -104,7 +104,7 @@ class Files extends Action {
*
* @param array $params
*/
public function write(array $params) {
public function write(array $params): void {
if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
return;
}
@ -123,7 +123,7 @@ class Files extends Action {
*
* @param array $params
*/
public function update(array $params) {
public function update(array $params): void {
$this->log(
'File updated: "%s"',
$params,
@ -138,7 +138,7 @@ class Files extends Action {
*
* @param array $params
*/
public function delete(array $params) {
public function delete(array $params): void {
$this->log(
'File deleted: "%s"',
$params,
@ -153,7 +153,7 @@ class Files extends Action {
*
* @param array $params
*/
public function preview(array $params) {
public function preview(array $params): void {
$this->log(
'Preview accessed: "%s" (width: "%s", height: "%s" crop: "%s", mode: "%s")',
$params,

View File

@ -45,7 +45,7 @@ class GroupManagement extends Action {
* @param IGroup $group
* @param IUser $user
*/
public function addUser(IGroup $group, IUser $user) {
public function addUser(IGroup $group, IUser $user): void {
$this->log('User "%s" added to group "%s"',
[
'group' => $group->getGID(),
@ -63,7 +63,7 @@ class GroupManagement extends Action {
* @param IGroup $group
* @param IUser $user
*/
public function removeUser(IGroup $group, IUser $user) {
public function removeUser(IGroup $group, IUser $user): void {
$this->log('User "%s" removed from group "%s"',
[
'group' => $group->getGID(),
@ -74,13 +74,13 @@ class GroupManagement extends Action {
]
);
}
/**
* log create group to group event
*
* @param IGroup $group
*/
public function createGroup(IGroup $group) {
public function createGroup(IGroup $group): void {
$this->log('Group created: "%s"',
[
'group' => $group->getGID()
@ -96,7 +96,7 @@ class GroupManagement extends Action {
*
* @param IGroup $group
*/
public function deleteGroup(IGroup $group) {
public function deleteGroup(IGroup $group): void {
$this->log('Group deleted: "%s"',
[
'group' => $group->getGID()

View File

@ -41,7 +41,7 @@ class Security extends Action {
* @param IUser $user
* @param array $params
*/
public function twofactorFailed(IUser $user, array $params) {
public function twofactorFailed(IUser $user, array $params): void {
$params['uid'] = $user->getUID();
$params['displayName'] = $user->getDisplayName();
@ -62,7 +62,7 @@ class Security extends Action {
* @param IUser $user
* @param array $params
*/
public function twofactorSuccess(IUser $user, array $params) {
public function twofactorSuccess(IUser $user, array $params): void {
$params['uid'] = $user->getUID();
$params['displayName'] = $user->getDisplayName();

View File

@ -43,7 +43,7 @@ class Sharing extends Action {
*
* @param array $params
*/
public function shared(array $params) {
public function shared(array $params): void {
if ($params['shareType'] === IShare::TYPE_LINK) {
$this->log(
'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)',
@ -168,7 +168,7 @@ class Sharing extends Action {
*
* @param array $params
*/
public function unshare(array $params) {
public function unshare(array $params): void {
if ($params['shareType'] === IShare::TYPE_LINK) {
$this->log(
'The %s "%s" with ID "%s" has been unshared (Share ID: %s)',
@ -284,7 +284,7 @@ class Sharing extends Action {
*
* @param array $params
*/
public function updatePermissions(array $params) {
public function updatePermissions(array $params): void {
$this->log(
'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"',
$params,
@ -302,7 +302,7 @@ class Sharing extends Action {
*
* @param array $params
*/
public function updatePassword(array $params) {
public function updatePassword(array $params): void {
$this->log(
'The password of the publicly shared %s "%s" with ID "%s" has been changed',
$params,
@ -319,16 +319,27 @@ class Sharing extends Action {
*
* @param array $params
*/
public function updateExpirationDate(array $params) {
$this->log(
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
$params,
[
'itemType',
'itemSource',
'date',
]
);
public function updateExpirationDate(array $params): void {
if ($params['date'] === null) {
$this->log(
'The expiration date of the publicly shared %s with ID "%s" has been removed',
$params,
[
'itemType',
'itemSource',
]
);
} else {
$this->log(
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
$params,
[
'itemType',
'itemSource',
'date',
]
);
}
}
/**
@ -336,7 +347,7 @@ class Sharing extends Action {
*
* @param array $params
*/
public function shareAccessed(array $params) {
public function shareAccessed(array $params): void {
$this->log(
'The shared %s with the token "%s" by "%s" has been accessed.',
$params,

View File

@ -29,13 +29,13 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
class Trashbin extends Action {
public function delete(array $params) {
public function delete(array $params): void {
$this->log('File "%s" deleted from trash bin.',
['path' => $params['path']], ['path']
);
}
public function restore(array $params) {
public function restore(array $params): void {
$this->log('File "%s" restored from trash bin.',
['path' => $params['filePath']], ['path']
);

View File

@ -44,7 +44,7 @@ class UserManagement extends Action {
*
* @param array $params
*/
public function create(array $params) {
public function create(array $params): void {
$this->log(
'User created: "%s"',
$params,
@ -59,7 +59,7 @@ class UserManagement extends Action {
*
* @param string $uid
*/
public function assign(string $uid) {
public function assign(string $uid): void {
$this->log(
'UserID assigned: "%s"',
[ 'uid' => $uid ],
@ -72,7 +72,7 @@ class UserManagement extends Action {
*
* @param array $params
*/
public function delete(array $params) {
public function delete(array $params): void {
$this->log(
'User deleted: "%s"',
$params,
@ -87,7 +87,7 @@ class UserManagement extends Action {
*
* @param string $uid
*/
public function unassign(string $uid) {
public function unassign(string $uid): void {
$this->log(
'UserID unassigned: "%s"',
[ 'uid' => $uid ],
@ -100,7 +100,7 @@ class UserManagement extends Action {
*
* @param array $params
*/
public function change(array $params) {
public function change(array $params): void {
switch ($params['feature']) {
case 'enabled':
$this->log(
@ -130,7 +130,7 @@ class UserManagement extends Action {
*
* @param IUser $user
*/
public function setPassword(IUser $user) {
public function setPassword(IUser $user): void {
if ($user->getBackendClassName() === 'Database') {
$this->log(
'Password of user "%s" has been changed',

View File

@ -29,7 +29,7 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Actions;
class Versions extends Action {
public function rollback(array $params) {
public function rollback(array $params): void {
$this->log('Version "%s" of "%s" was restored.',
[
'version' => $params['revision'],
@ -39,7 +39,7 @@ class Versions extends Action {
);
}
public function delete(array $params) {
public function delete(array $params): void {
$this->log('Version "%s" was deleted.',
['path' => $params['path']],
['path']

View File

@ -49,6 +49,7 @@ use OCA\AdminAudit\Actions\Sharing;
use OCA\AdminAudit\Actions\Trashbin;
use OCA\AdminAudit\Actions\UserManagement;
use OCA\AdminAudit\Actions\Versions;
use OCA\AdminAudit\Listener\CriticalActionPerformedEventListener;
use OCP\App\ManagerEvent;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
@ -58,19 +59,20 @@ use OCP\Authentication\TwoFactorAuth\IProvider;
use OCP\Console\ConsoleEvent;
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\ILogger;
use OCP\IPreview;
use OCP\IServerContainer;
use OCP\IUserSession;
use OCP\Log\Audit\CriticalActionPerformedEvent;
use OCP\Log\ILogFactory;
use OCP\Share;
use OCP\Util;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class Application extends App implements IBootstrap {
/** @var ILogger */
/** @var LoggerInterface */
protected $logger;
public function __construct() {
@ -78,10 +80,11 @@ class Application extends App implements IBootstrap {
}
public function register(IRegistrationContext $context): void {
$context->registerEventListener(CriticalActionPerformedEvent::class, CriticalActionPerformedEventListener::class);
}
public function boot(IBootContext $context): void {
/** @var ILogger $logger */
/** @var LoggerInterface $logger */
$logger = $context->injectFn(
Closure::fromCallable([$this, 'getLogger'])
);
@ -94,22 +97,22 @@ class Application extends App implements IBootstrap {
}
private function getLogger(IConfig $config,
ILogger $logger,
ILogFactory $logFactory): ILogger {
LoggerInterface $logger,
ILogFactory $logFactory): LoggerInterface {
$default = $config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/audit.log';
$logFile = $config->getAppValue('admin_audit', 'logfile', $default);
if ($logFile === null) {
return $logger;
}
return $logFactory->getCustomLogger($logFile);
return $logFactory->getCustomPsrLogger($logFile);
}
/**
* Register hooks in order to log them
*/
private function registerHooks(ILogger $logger,
IServerContainer $serverContainer) {
private function registerHooks(LoggerInterface $logger,
IServerContainer $serverContainer): void {
$this->userManagementHooks($logger, $serverContainer->get(IUserSession::class));
$this->groupHooks($logger, $serverContainer->get(IGroupManager::class));
$this->authHooks($logger);
@ -128,8 +131,8 @@ class Application extends App implements IBootstrap {
$this->securityHooks($logger, $eventDispatcher);
}
private function userManagementHooks(ILogger $logger,
IUserSession $userSession) {
private function userManagementHooks(LoggerInterface $logger,
IUserSession $userSession): void {
$userActions = new UserManagement($logger);
Util::connectHook('OC_User', 'post_createUser', $userActions, 'create');
@ -142,8 +145,8 @@ class Application extends App implements IBootstrap {
$userSession->listen('\OC\User', 'postUnassignedUserId', [$userActions, 'unassign']);
}
private function groupHooks(ILogger $logger,
IGroupManager $groupManager) {
private function groupHooks(LoggerInterface $logger,
IGroupManager $groupManager): void {
$groupActions = new GroupManagement($logger);
assert($groupManager instanceof GroupManager);
@ -153,7 +156,7 @@ class Application extends App implements IBootstrap {
$groupManager->listen('\OC\Group', 'postCreate', [$groupActions, 'createGroup']);
}
private function sharingHooks(ILogger $logger) {
private function sharingHooks(LoggerInterface $logger): void {
$shareActions = new Sharing($logger);
Util::connectHook(Share::class, 'post_shared', $shareActions, 'shared');
@ -165,7 +168,7 @@ class Application extends App implements IBootstrap {
Util::connectHook(Share::class, 'share_link_access', $shareActions, 'shareAccessed');
}
private function authHooks(ILogger $logger) {
private function authHooks(LoggerInterface $logger): void {
$authActions = new Auth($logger);
Util::connectHook('OC_User', 'pre_login', $authActions, 'loginAttempt');
@ -173,8 +176,8 @@ class Application extends App implements IBootstrap {
Util::connectHook('OC_User', 'logout', $authActions, 'logout');
}
private function appHooks(ILogger $logger,
EventDispatcherInterface $eventDispatcher) {
private function appHooks(LoggerInterface $logger,
EventDispatcherInterface $eventDispatcher): void {
$eventDispatcher->addListener(ManagerEvent::EVENT_APP_ENABLE, function (ManagerEvent $event) use ($logger) {
$appActions = new AppManagement($logger);
$appActions->enableApp($event->getAppID());
@ -189,16 +192,16 @@ class Application extends App implements IBootstrap {
});
}
private function consoleHooks(ILogger $logger,
EventDispatcherInterface $eventDispatcher) {
private function consoleHooks(LoggerInterface $logger,
EventDispatcherInterface $eventDispatcher): void {
$eventDispatcher->addListener(ConsoleEvent::EVENT_RUN, function (ConsoleEvent $event) use ($logger) {
$appActions = new Console($logger);
$appActions->runCommand($event->getArguments());
});
}
private function fileHooks(ILogger $logger,
EventDispatcherInterface $eventDispatcher) {
private function fileHooks(LoggerInterface $logger,
EventDispatcherInterface $eventDispatcher): void {
$fileActions = new Files($logger);
$eventDispatcher->addListener(
IPreview::EVENT,
@ -259,20 +262,20 @@ class Application extends App implements IBootstrap {
);
}
private function versionsHooks(ILogger $logger) {
private function versionsHooks(LoggerInterface $logger): void {
$versionsActions = new Versions($logger);
Util::connectHook('\OCP\Versions', 'rollback', $versionsActions, 'rollback');
Util::connectHook('\OCP\Versions', 'delete', $versionsActions, 'delete');
}
private function trashbinHooks(ILogger $logger) {
private function trashbinHooks(LoggerInterface $logger): void {
$trashActions = new Trashbin($logger);
Util::connectHook('\OCP\Trashbin', 'preDelete', $trashActions, 'delete');
Util::connectHook('\OCA\Files_Trashbin\Trashbin', 'post_restore', $trashActions, 'restore');
}
private function securityHooks(ILogger $logger,
EventDispatcherInterface $eventDispatcher) {
private function securityHooks(LoggerInterface $logger,
EventDispatcherInterface $eventDispatcher): void {
$eventDispatcher->addListener(IProvider::EVENT_SUCCESS, function (GenericEvent $event) use ($logger) {
$security = new Security($logger);
$security->twofactorSuccess($event->getSubject(), $event->getArguments());

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Arthur Schiwon <blizzz@arthur-schiwon.de>
*
@ -25,26 +28,31 @@
namespace OCA\AdminAudit\BackgroundJobs;
use OC\BackgroundJob\TimedJob;
use OCP\IConfig;
use OCP\Log\RotationTrait;
class Rotate extends TimedJob {
use RotationTrait;
public function __construct() {
/** @var IConfig */
private $config;
public function __construct(IConfig $config) {
$this->config = $config;
$this->setInterval(60 * 60 * 3);
}
protected function run($argument) {
$config = \OC::$server->getConfig();
$default = $config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/audit.log';
$this->filePath = $config->getAppValue('admin_audit', 'logfile', $default);
$default = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/audit.log';
$this->filePath = $this->config->getAppValue('admin_audit', 'logfile', $default);
if ($this->filePath === '') {
// default log file, nothing to do
return;
}
$this->maxSize = $config->getSystemValue('log_rotate_size', 100 * 1024 * 1024);
$this->maxSize = $this->config->getSystemValue('log_rotate_size', 100 * 1024 * 1024);
if ($this->shouldRotateBySize()) {
$this->rotate();

View File

@ -0,0 +1,44 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2021 Joas Schilling <coding@schilljs.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\AdminAudit\Listener;
use OCA\AdminAudit\Actions\Action;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Log\Audit\CriticalActionPerformedEvent;
class CriticalActionPerformedEventListener extends Action implements IEventListener {
public function handle(Event $event): void {
if (!($event instanceof CriticalActionPerformedEvent)) {
return;
}
$this->log(
$event->getLogMessage(),
$event->getParameters(),
array_keys($event->getParameters()),
$event->getObfuscateParameters()
);
}
}

View File

@ -28,12 +28,12 @@ declare(strict_types=1);
namespace OCA\AdminAudit\Tests\Actions;
use OCA\AdminAudit\Actions\Security;
use OCP\ILogger;
use OCP\IUser;
use Psr\Log\LoggerInterface;
use Test\TestCase;
class SecurityTest extends TestCase {
/** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
/** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
private $logger;
/** @var Security */
@ -45,7 +45,7 @@ class SecurityTest extends TestCase {
protected function setUp(): void {
parent::setUp();
$this->logger = $this->createMock(ILogger::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->security = new Security($this->logger);
$this->user = $this->createMock(IUser::class);

View File

@ -15,6 +15,6 @@
<category>files</category>
<bugs>https://github.com/nextcloud/cloud_federation/issues</bugs>
<dependencies>
<nextcloud min-version="21" max-version="21"/>
<nextcloud min-version="22" max-version="22"/>
</dependencies>
</info>

View File

@ -1,8 +1,8 @@
OC.L10N.register(
"cloud_federation_api",
{
"Cloud Federation API" : "Bulut Birleşim API",
"Cloud Federation API" : "Birleşik Bulut API",
"Enable clouds to communicate with each other and exchange data" : "Karşılıklı iletişim kurmak için bulut hizmetlerini kullanın",
"The Cloud Federation API enables various Nextcloud instances to communicate with each other and to exchange data." : "Bulut Birleşim API farklı Nextcloud kopyalarının birbiri ile iletişim kurarak karşılıklı veri aktarmasını sağlar."
"The Cloud Federation API enables various Nextcloud instances to communicate with each other and to exchange data." : "Birleşik Bulut API, farklı Nextcloud kopyalarının birbiri ile iletişim kurarak karşılıklı veri aktarmasını sağlar."
},
"nplurals=2; plural=(n > 1);");

View File

@ -1,6 +1,6 @@
{ "translations": {
"Cloud Federation API" : "Bulut Birleşim API",
"Cloud Federation API" : "Birleşik Bulut API",
"Enable clouds to communicate with each other and exchange data" : "Karşılıklı iletişim kurmak için bulut hizmetlerini kullanın",
"The Cloud Federation API enables various Nextcloud instances to communicate with each other and to exchange data." : "Bulut Birleşim API farklı Nextcloud kopyalarının birbiri ile iletişim kurarak karşılıklı veri aktarmasını sağlar."
"The Cloud Federation API enables various Nextcloud instances to communicate with each other and to exchange data." : "Birleşik Bulut API, farklı Nextcloud kopyalarının birbiri ile iletişim kurarak karşılıklı veri aktarmasını sağlar."
},"pluralForm" :"nplurals=2; plural=(n > 1);"
}

View File

@ -38,11 +38,11 @@ use OCP\Federation\ICloudFederationFactory;
use OCP\Federation\ICloudFederationProviderManager;
use OCP\Federation\ICloudIdManager;
use OCP\IGroupManager;
use OCP\ILogger;
use OCP\IRequest;
use OCP\IURLGenerator;
use OCP\IUserManager;
use OCP\Share\Exceptions\ShareNotFound;
use Psr\Log\LoggerInterface;
/**
* Class RequestHandlerController
@ -53,7 +53,7 @@ use OCP\Share\Exceptions\ShareNotFound;
*/
class RequestHandlerController extends Controller {
/** @var ILogger */
/** @var LoggerInterface */
private $logger;
/** @var IUserManager */
@ -79,7 +79,7 @@ class RequestHandlerController extends Controller {
public function __construct($appName,
IRequest $request,
ILogger $logger,
LoggerInterface $logger,
IUserManager $userManager,
IGroupManager $groupManager,
IURLGenerator $urlGenerator,

View File

@ -17,7 +17,7 @@
<category>social</category>
<bugs>https://github.com/nextcloud/server/issues</bugs>
<dependencies>
<nextcloud min-version="21" max-version="21"/>
<nextcloud min-version="22" max-version="22"/>
</dependencies>
<activity>

View File

@ -16,10 +16,10 @@ return array(
'OCA\\Comments\\Collaboration\\CommentersSorter' => $baseDir . '/../lib/Collaboration/CommentersSorter.php',
'OCA\\Comments\\Controller\\Notifications' => $baseDir . '/../lib/Controller/Notifications.php',
'OCA\\Comments\\EventHandler' => $baseDir . '/../lib/EventHandler.php',
'OCA\\Comments\\JSSettingsHelper' => $baseDir . '/../lib/JSSettingsHelper.php',
'OCA\\Comments\\Listener\\CommentsEntityEventListener' => $baseDir . '/../lib/Listener/CommentsEntityEventListener.php',
'OCA\\Comments\\Listener\\LoadAdditionalScripts' => $baseDir . '/../lib/Listener/LoadAdditionalScripts.php',
'OCA\\Comments\\Listener\\LoadSidebarScripts' => $baseDir . '/../lib/Listener/LoadSidebarScripts.php',
'OCA\\Comments\\MaxAutoCompleteResultsInitialState' => $baseDir . '/../lib/MaxAutoCompleteResultsInitialState.php',
'OCA\\Comments\\Notification\\Listener' => $baseDir . '/../lib/Notification/Listener.php',
'OCA\\Comments\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php',
'OCA\\Comments\\Search\\CommentsSearchProvider' => $baseDir . '/../lib/Search/CommentsSearchProvider.php',

View File

@ -31,10 +31,10 @@ class ComposerStaticInitComments
'OCA\\Comments\\Collaboration\\CommentersSorter' => __DIR__ . '/..' . '/../lib/Collaboration/CommentersSorter.php',
'OCA\\Comments\\Controller\\Notifications' => __DIR__ . '/..' . '/../lib/Controller/Notifications.php',
'OCA\\Comments\\EventHandler' => __DIR__ . '/..' . '/../lib/EventHandler.php',
'OCA\\Comments\\JSSettingsHelper' => __DIR__ . '/..' . '/../lib/JSSettingsHelper.php',
'OCA\\Comments\\Listener\\CommentsEntityEventListener' => __DIR__ . '/..' . '/../lib/Listener/CommentsEntityEventListener.php',
'OCA\\Comments\\Listener\\LoadAdditionalScripts' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalScripts.php',
'OCA\\Comments\\Listener\\LoadSidebarScripts' => __DIR__ . '/..' . '/../lib/Listener/LoadSidebarScripts.php',
'OCA\\Comments\\MaxAutoCompleteResultsInitialState' => __DIR__ . '/..' . '/../lib/MaxAutoCompleteResultsInitialState.php',
'OCA\\Comments\\Notification\\Listener' => __DIR__ . '/..' . '/../lib/Notification/Listener.php',
'OCA\\Comments\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php',
'OCA\\Comments\\Search\\CommentsSearchProvider' => __DIR__ . '/..' . '/../lib/Search/CommentsSearchProvider.php',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,24 @@
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/js/",t(t.s=742)}({742:function(e,n){function r(e,n,t,r,o,i,u){try{var c=e[i](u),a=c.value}catch(e){return void t(e)}c.done?n(a):Promise.resolve(a).then(r,o)}var o=null,i=new OCA.Files.Sidebar.Tab({id:"comments",name:t("comments","Comments"),icon:"icon-comment",mount:function(e,n,t){return(i=regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o&&o.$destroy(),o=new OCA.Comments.View("files",{parent:t}),r.next=4,o.update(n.id);case 4:o.$mount(e);case 5:case"end":return r.stop()}}),r)})),function(){var e=this,n=arguments;return new Promise((function(t,o){var u=i.apply(e,n);function c(e){r(u,t,o,c,a,"next",e)}function a(e){r(u,t,o,c,a,"throw",e)}c(void 0)}))})();var i},update:function(e){o.update(e.id)},destroy:function(){o.$destroy(),o=null},scrollBottomReached:function(){o.onScrollBottomReached()}});window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(i)}))}});
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/js/",n(n.s=706)}({706:function(e,n){
/**
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
let o=null;const r=new OCA.Files.Sidebar.Tab({id:"comments",name:t("comments","Comments"),icon:"icon-comment",async mount(e,t,n){o&&o.$destroy(),o=new OCA.Comments.View("files",{parent:n}),await o.update(t.id),o.$mount(e)},update(e){o.update(e.id)},destroy(){o.$destroy(),o=null},scrollBottomReached(){o.onScrollBottomReached()}});window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(r)}))}});
//# sourceMappingURL=comments-tab.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -31,10 +31,10 @@ use Closure;
use OCA\Comments\Capabilities;
use OCA\Comments\Controller\Notifications;
use OCA\Comments\EventHandler;
use OCA\Comments\JSSettingsHelper;
use OCA\Comments\Listener\CommentsEntityEventListener;
use OCA\Comments\Listener\LoadAdditionalScripts;
use OCA\Comments\Listener\LoadSidebarScripts;
use OCA\Comments\MaxAutoCompleteResultsInitialState;
use OCA\Comments\Notification\Notifier;
use OCA\Comments\Search\LegacyProvider;
use OCA\Comments\Search\CommentsSearchProvider;
@ -45,10 +45,8 @@ use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\Comments\CommentsEntityEvent;
use OCP\IConfig;
use OCP\ISearch;
use OCP\IServerContainer;
use OCP\Util;
class Application extends App implements IBootstrap {
public const APP_ID = 'comments';
@ -75,22 +73,18 @@ class Application extends App implements IBootstrap {
CommentsEntityEventListener::class
);
$context->registerSearchProvider(CommentsSearchProvider::class);
$context->registerInitialStateProvider(MaxAutoCompleteResultsInitialState::class);
$context->registerNotifierService(Notifier::class);
}
public function boot(IBootContext $context): void {
$context->injectFn(Closure::fromCallable([$this, 'registerNotifier']));
$context->injectFn(Closure::fromCallable([$this, 'registerCommentsEventHandler']));
$jsSettingsHelper = new JSSettingsHelper($context->getAppContainer()->get(IConfig::class));
Util::connectHook('\OCP\Config', 'js', $jsSettingsHelper, 'extend');
$context->getServerContainer()->get(ISearch::class)->registerProvider(LegacyProvider::class, ['apps' => ['files']]);
}
protected function registerNotifier(IServerContainer $container) {
$container->getNotificationManager()->registerNotifierService(Notifier::class);
}
protected function registerCommentsEventHandler(IServerContainer $container) {
$container->getCommentsManager()->registerEventHandler(function () {
return $this->getContainer()->query(EventHandler::class);

View File

@ -1,9 +1,11 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Arthur Schiwon <blizzz@arthur-schiwon.de>
* @copyright Copyright (c) 2021 Roeland Jago Douma <roeland@famdouma.nl>
*
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @license GNU AGPL version 3 or any later version
*
@ -24,22 +26,23 @@
namespace OCA\Comments;
use OCP\AppFramework\Services\InitialStateProvider;
use OCP\IConfig;
class JSSettingsHelper {
/** @var IConfig */
private $c;
class MaxAutoCompleteResultsInitialState extends InitialStateProvider {
public function __construct(IConfig $c) {
$this->c = $c;
/** @var IConfig */
private $config;
public function __construct(IConfig $config) {
$this->config = $config;
}
public function extend(array $settings) {
$appConfig = json_decode($settings['array']['oc_appconfig'], true);
public function getKey(): string {
return 'maxAutoCompleteResults';
}
$value = (int)$this->c->getAppValue('comments', 'maxAutoCompleteResults', 10);
$appConfig['comments']['maxAutoCompleteResults'] = $value;
$settings['array']['oc_appconfig'] = json_encode($appConfig);
public function getData(): int {
return (int)$this->config->getAppValue('comments', 'maxAutoCompleteResults', '10');
}
}

View File

@ -133,7 +133,7 @@ class Notifier implements INotifier {
if (strpos($path, '/' . $notification->getUser() . '/files/') === 0) {
// Remove /user/files/...
$fullPath = $path;
list(,,, $path) = explode('/', $fullPath, 4);
[,,, $path] = explode('/', $fullPath, 4);
}
$subjectParameters = [
'file' => [
@ -155,7 +155,7 @@ class Notifier implements INotifier {
'name' => $displayName,
];
}
list($message, $messageParameters) = $this->commentToRichMessage($comment);
[$message, $messageParameters] = $this->commentToRichMessage($comment);
$notification->setRichSubject($subject, $subjectParameters)
->setParsedSubject($this->richToParsed($subject, $subjectParameters))
->setRichMessage($message, $messageParameters)

View File

@ -1,11 +1,24 @@
/**
* @author Joas Schilling <coding@schilljs.com>
* Copyright (c) 2016
*
* This file is licensed under the Affero General Public License version 3
* or later.
* @author Joas Schilling <coding@schilljs.com>
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* See the COPYING-README file.
*/
(function() {

View File

@ -1,10 +1,23 @@
/*
/**
* Copyright (c) 2016 Vincent Petry <pvince81@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
* or later.
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Vincent Petry <vincent@nextcloud.com>
*
* See the COPYING-README file.
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

View File

@ -1,3 +1,26 @@
/**
* @copyright Copyright (c) 2016 Roeland Jago Douma <roeland@famdouma.nl>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import './app'
import './templates'
import './filesplugin'

View File

@ -66,11 +66,12 @@
</div>
<!-- Message editor -->
<div class="comment__editor " v-if="editor || editing">
<div v-if="editor || editing" class="comment__editor ">
<RichContenteditable ref="editor"
v-model="localMessage"
:auto-complete="autoComplete"
:contenteditable="!loading"
:value="localMessage"
@update:value="updateLocalMessage"
@submit="onSubmit" />
<input v-tooltip="t('comments', 'Post comment')"
:class="loading ? 'icon-loading-small' :'icon-confirm'"

View File

@ -1,10 +1,26 @@
/*
/**
* Copyright (c) 2016 Vincent Petry <pvince81@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
* or later.
* @author Joas Schilling <coding@schilljs.com>
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Michael Jobst <mjobst+github@tecratech.de>
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Vincent Petry <vincent@nextcloud.com>
*
* See the COPYING-README file.
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -1,5 +1,5 @@
/**
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
* @copyright Copyright (c) 2021 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
@ -20,18 +20,19 @@
*
*/
import webdav from 'webdav'
import { createClient, getPatcher } from 'webdav'
import axios from '@nextcloud/axios'
import { getRootPath } from '../utils/davUtils'
// Add this so the server knows it is an request from the browser
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
// force our axios
const patcher = webdav.getPatcher()
const patcher = getPatcher()
patcher.patch('request', axios)
// init webdav client
const client = webdav.createClient(getRootPath())
const client = createClient(getRootPath())
export default client

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
@ -20,7 +20,7 @@
*
*/
import { parseXML, prepareFileFromProps } from 'webdav/dist/node/interface/dav'
import { parseXML, prepareFileFromProps } from 'webdav/dist/node/tools/dav'
import { processResponsePayload } from 'webdav/dist/node/response'
import client from './DavClient'

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -1,123 +1,17 @@
(function() {
var template = Handlebars.template, templates = OCA.Comments.Templates = OCA.Comments.Templates || {};
templates['comment'] = template({"1":function(container,depth0,helpers,partials,data) {
return " unread";
},"3":function(container,depth0,helpers,partials,data) {
return " collapsed";
},"5":function(container,depth0,helpers,partials,data) {
return " currentUser";
},"7":function(container,depth0,helpers,partials,data) {
var helper;
return "data-username=\""
+ container.escapeExpression(((helper = (helper = helpers.actorId || (depth0 != null ? depth0.actorId : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"actorId","hash":{},"data":data}) : helper)))
+ "\"";
},"9":function(container,depth0,helpers,partials,data) {
return " <a href=\"#\" class=\"action more icon icon-more has-tooltip\"></a>\n <div class=\"deleteLoading icon-loading-small hidden\"></div>\n";
},"11":function(container,depth0,helpers,partials,data) {
return " <div class=\"message-overlay\"></div>\n";
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
return "<li class=\"comment"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isUnread : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isLong : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\" data-id=\""
+ alias4(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"id","hash":{},"data":data}) : helper)))
+ "\">\n <div class=\"authorRow\">\n <div class=\"avatar"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isUserAuthor : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\" "
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.actorId : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "> </div>\n <div class=\"author"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isUserAuthor : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\">"
+ alias4(((helper = (helper = helpers.actorDisplayName || (depth0 != null ? depth0.actorDisplayName : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"actorDisplayName","hash":{},"data":data}) : helper)))
+ "</div>\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isUserAuthor : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " <div class=\"date has-tooltip live-relative-timestamp\" data-timestamp=\""
+ alias4(((helper = (helper = helpers.timestamp || (depth0 != null ? depth0.timestamp : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"timestamp","hash":{},"data":data}) : helper)))
+ "\" title=\""
+ alias4(((helper = (helper = helpers.altDate || (depth0 != null ? depth0.altDate : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"altDate","hash":{},"data":data}) : helper)))
+ "\">"
+ alias4(((helper = (helper = helpers.date || (depth0 != null ? depth0.date : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"date","hash":{},"data":data}) : helper)))
+ "</div>\n </div>\n <div class=\"message\">"
+ ((stack1 = ((helper = (helper = helpers.formattedMessage || (depth0 != null ? depth0.formattedMessage : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"formattedMessage","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ "</div>\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isLong : depth0),{"name":"if","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "</li>\n";
},"useData":true});
templates['commentsmodifymenu'] = template({"1":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
return " <li>\n <a href=\"#\" class=\"menuitem action "
+ alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
+ " permanent\" data-action=\""
+ alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
+ "\">\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.iconClass : depth0),{"name":"if","hash":{},"fn":container.program(2, data, 0),"inverse":container.program(4, data, 0),"data":data})) != null ? stack1 : "")
+ " <span>"
+ alias4(((helper = (helper = helpers.displayName || (depth0 != null ? depth0.displayName : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"displayName","hash":{},"data":data}) : helper)))
+ "</span>\n </a>\n </li>\n";
},"2":function(container,depth0,helpers,partials,data) {
var helper;
return " <span class=\"icon "
+ container.escapeExpression(((helper = (helper = helpers.iconClass || (depth0 != null ? depth0.iconClass : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"iconClass","hash":{},"data":data}) : helper)))
+ "\"></span>\n";
},"4":function(container,depth0,helpers,partials,data) {
return " <span class=\"no-icon\"></span>\n";
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1;
return "<ul>\n"
+ ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.items : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "</ul>\n";
},"useData":true});
templates['edit_comment'] = template({"1":function(container,depth0,helpers,partials,data) {
var helper;
return " <div class=\"action-container\">\n <a href=\"#\" class=\"action cancel icon icon-close has-tooltip\" title=\""
+ container.escapeExpression(((helper = (helper = helpers.cancelText || (depth0 != null ? depth0.cancelText : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"cancelText","hash":{},"data":data}) : helper)))
+ "\"></a>\n </div>\n";
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
return "<"
+ alias4(((helper = (helper = helpers.tag || (depth0 != null ? depth0.tag : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"tag","hash":{},"data":data}) : helper)))
+ " class=\"newCommentRow comment\" data-id=\""
+ alias4(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"id","hash":{},"data":data}) : helper)))
+ "\">\n <div class=\"authorRow\">\n <div class=\"avatar currentUser\" data-username=\""
+ alias4(((helper = (helper = helpers.actorId || (depth0 != null ? depth0.actorId : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"actorId","hash":{},"data":data}) : helper)))
+ "\"></div>\n <div class=\"author currentUser\">"
+ alias4(((helper = (helper = helpers.actorDisplayName || (depth0 != null ? depth0.actorDisplayName : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"actorDisplayName","hash":{},"data":data}) : helper)))
+ "</div>\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isEditMode : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " </div>\n <form class=\"newCommentForm\">\n <div contentEditable=\"true\" class=\"message\" data-placeholder=\""
+ alias4(((helper = (helper = helpers.newMessagePlaceholder || (depth0 != null ? depth0.newMessagePlaceholder : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"newMessagePlaceholder","hash":{},"data":data}) : helper)))
+ "\">"
+ alias4(((helper = (helper = helpers.message || (depth0 != null ? depth0.message : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"message","hash":{},"data":data}) : helper)))
+ "</div>\n <input class=\"submit icon-confirm has-tooltip\" type=\"submit\" value=\"\" title=\""
+ alias4(((helper = (helper = helpers.submitText || (depth0 != null ? depth0.submitText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"submitText","hash":{},"data":data}) : helper)))
+ "\"/>\n <div class=\"submitLoading icon-loading-small hidden\"></div>\n </form>\n</"
+ alias4(((helper = (helper = helpers.tag || (depth0 != null ? depth0.tag : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"tag","hash":{},"data":data}) : helper)))
+ ">\n";
},"useData":true});
templates['filesplugin'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
templates['filesplugin'] = template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
};
return "<a class=\"action action-comment permanent\" title=\""
+ alias4(((helper = (helper = helpers.countMessage || (depth0 != null ? depth0.countMessage : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"countMessage","hash":{},"data":data}) : helper)))
+ alias4(((helper = (helper = lookupProperty(helpers,"countMessage") || (depth0 != null ? lookupProperty(depth0,"countMessage") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"countMessage","hash":{},"data":data,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":66}}}) : helper)))
+ "\" href=\"#\">\n <img class=\"svg\" src=\""
+ alias4(((helper = (helper = helpers.iconUrl || (depth0 != null ? depth0.iconUrl : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"iconUrl","hash":{},"data":data}) : helper)))
+ alias4(((helper = (helper = lookupProperty(helpers,"iconUrl") || (depth0 != null ? lookupProperty(depth0,"iconUrl") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"iconUrl","hash":{},"data":data,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":34}}}) : helper)))
+ "\"/>\n</a>\n";
},"useData":true});
templates['view'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
return "<ul class=\"comments\">\n</ul>\n<div class=\"emptycontent hidden\"><div class=\"icon-comment\"></div>\n <p>"
+ alias4(((helper = (helper = helpers.emptyResultLabel || (depth0 != null ? depth0.emptyResultLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"emptyResultLabel","hash":{},"data":data}) : helper)))
+ "</p></div>\n<input type=\"button\" class=\"showMore hidden\" value=\""
+ alias4(((helper = (helper = helpers.moreLabel || (depth0 != null ? depth0.moreLabel : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"moreLabel","hash":{},"data":data}) : helper)))
+ "\" name=\"show-more\" id=\"show-more\" />\n<div class=\"loading hidden\" style=\"height: 50px\"></div>\n";
},"useData":true});
})();

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License

View File

@ -70,6 +70,7 @@
<script>
import { generateOcsUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
import { loadState } from '@nextcloud/initial-state'
import axios from '@nextcloud/axios'
import VTooltip from 'v-tooltip'
import Vue from 'vue'
@ -226,7 +227,7 @@ export default {
itemType: 'files',
itemId: this.ressourceId,
sorter: 'commenters|share-recipients',
limit: OC.appConfig?.comments?.maxAutoCompleteResults || 25,
limit: loadState('comments', 'maxAutoCompleteResults'),
},
})
return callback(results.data.ocs.data)

View File

@ -1,73 +0,0 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Arthur Schiwon <blizzz@arthur-schiwon.de>
*
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\Comments\Tests\Unit;
use OCA\Comments\JSSettingsHelper;
use OCP\IConfig;
use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;
class JSSettingsHelperTest extends TestCase {
/** @var IConfig|MockObject */
protected $c;
/** @var JSSettingsHelper */
protected $helper;
protected function setUp(): void {
parent::setUp();
$this->c = $this->createMock(IConfig::class);
$this->helper = new JSSettingsHelper($this->c);
}
public function testExtend() {
$this->c->expects($this->once())
->method('getAppValue')
->with('comments', 'maxAutoCompleteResults')
->willReturn(13);
$config = [
'oc_appconfig' => json_encode([
'anotherapp' => [
'foo' => 'bar',
'foobar' => true
]
])
];
$this->helper->extend(['array' => &$config]);
$appConfig = json_decode($config['oc_appconfig'], true);
$this->assertTrue(isset($appConfig['comments']));
$this->assertTrue(isset($appConfig['anotherapp']));
$this->assertSame(2, count($appConfig['anotherapp']));
$this->assertSame(13, $appConfig['comments']['maxAutoCompleteResults']);
}
}

View File

@ -1,10 +1,23 @@
/*
/**
* Copyright (c) 2016 Vincent Petry <pvince81@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
* or later.
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Vincent Petry <vincent@nextcloud.com>
*
* See the COPYING-README file.
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

View File

@ -1,3 +1,26 @@
/**
* @copyright Copyright (c) 2016 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
const path = require('path')
module.exports = {

View File

@ -17,7 +17,7 @@
<category>social</category>
<bugs>https://github.com/nextcloud/server/issues</bugs>
<dependencies>
<nextcloud min-version="21" max-version="21"/>
<nextcloud min-version="22" max-version="22"/>
</dependencies>
<background-jobs>
<job>OCA\ContactsInteraction\BackgroundJob\CleanupJob</job>

View File

@ -170,7 +170,7 @@ class AddressBook extends ExternalAddressBook implements IACL {
}
private function getUid(): string {
list(, $uid) = \Sabre\Uri\split($this->principalUri);
[, $uid] = \Sabre\Uri\split($this->principalUri);
return $uid;
}
}

View File

@ -28,6 +28,6 @@ A reference to why it was very difficult to actually find good background pictur
- We need to have a good balance of different motives, e.g. not too many landscape pics.
- Same for a good balance of different colors.
- The photo needs to work as a background. Photos with objects focused in the middle dont really work as they will be overlapped by the widgets anyway.
- Especially the top part cant have too much differing contrast, as then its not possible to see the navigation icons.
- Especially the top part cannot have too much differing contrast, as then its not possible to see the navigation icons.
- We serve the pictures at 4k resolution and most of the selected images are also available in 6k or higher so it is future-proof.
- For the search of course we had to limit to CC0, CC By and CC By-Sa. Only CC0 would have been practically impossible cause theres just not so many good ones which fit.

View File

@ -16,7 +16,7 @@
<bugs>https://github.com/nextcloud/server/issues</bugs>
<dependencies>
<nextcloud min-version="21" max-version="21"/>
<nextcloud min-version="22" max-version="22"/>
</dependencies>
<navigations>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,6 @@ OC.L10N.register(
"Show something" : "أظهر شي ما",
"Customize" : "تعديل",
"Edit widgets" : "تعديل الودجات",
"Get more widgets from the app store" : "احصل على ودجات من متجر التطبيقات",
"Change background image" : "تغييرصورة الخلفية",
"Weather service" : "خدمة احوال الطقس",
"For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information." : "لخصوصيتك، يتم استدعاء بيانات احوال الطقس عبر خادم نكست كلاود الخاص بك نيابه عنك ولذلك خدمة احوال الطقس لا تشارك المعلومات الشخصية.",
@ -27,6 +26,7 @@ OC.L10N.register(
"Default images" : "الصور الإفتراضية",
"Plain background" : "خلفية سادة",
"Insert from {productName}" : "اضف من {productName}",
"Get more widgets from the app store" : "احصل على ودجات من متجر التطبيقات",
"Good night, {name}" : "تصبح على خير، {name}",
"Good night" : "تصبح على خير",
"Pick from files" : "اختر من الملفات"

View File

@ -4,7 +4,6 @@
"Show something" : "أظهر شي ما",
"Customize" : "تعديل",
"Edit widgets" : "تعديل الودجات",
"Get more widgets from the app store" : "احصل على ودجات من متجر التطبيقات",
"Change background image" : "تغييرصورة الخلفية",
"Weather service" : "خدمة احوال الطقس",
"For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information." : "لخصوصيتك، يتم استدعاء بيانات احوال الطقس عبر خادم نكست كلاود الخاص بك نيابه عنك ولذلك خدمة احوال الطقس لا تشارك المعلومات الشخصية.",
@ -25,6 +24,7 @@
"Default images" : "الصور الإفتراضية",
"Plain background" : "خلفية سادة",
"Insert from {productName}" : "اضف من {productName}",
"Get more widgets from the app store" : "احصل على ودجات من متجر التطبيقات",
"Good night, {name}" : "تصبح على خير، {name}",
"Good night" : "تصبح على خير",
"Pick from files" : "اختر من الملفات"

View File

@ -6,7 +6,6 @@ OC.L10N.register(
"Show something" : "Покажи нещо",
"Customize" : "Персонизиране",
"Edit widgets" : "Редактиране на изпълнимите модули",
"Get more widgets from the app store" : "Вземете повече приспособления от app store",
"Change background image" : "Промяна на фоновото изображение",
"Weather service" : "Метеорологична услуга",
"For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information." : "За вашата поверителност данните за времето се изискват от Nextcloud сървъра ви от ваше име, така че метеорологичната служба не получава лична информация.",
@ -27,6 +26,7 @@ OC.L10N.register(
"Default images" : "Изображения по подразбиране",
"Plain background" : "Обикновен фон",
"Insert from {productName}" : "Вмъкване от {productName}",
"Get more widgets from the app store" : "Вземете повече приспособления от app store",
"Good night, {name}" : "Лека нощ, {name}",
"Good night" : "Лека нощ",
"Pick from files" : "Избери от Файловете"

View File

@ -4,7 +4,6 @@
"Show something" : "Покажи нещо",
"Customize" : "Персонизиране",
"Edit widgets" : "Редактиране на изпълнимите модули",
"Get more widgets from the app store" : "Вземете повече приспособления от app store",
"Change background image" : "Промяна на фоновото изображение",
"Weather service" : "Метеорологична услуга",
"For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information." : "За вашата поверителност данните за времето се изискват от Nextcloud сървъра ви от ваше име, така че метеорологичната служба не получава лична информация.",
@ -25,6 +24,7 @@
"Default images" : "Изображения по подразбиране",
"Plain background" : "Обикновен фон",
"Insert from {productName}" : "Вмъкване от {productName}",
"Get more widgets from the app store" : "Вземете повече приспособления от app store",
"Good night, {name}" : "Лека нощ, {name}",
"Good night" : "Лека нощ",
"Pick from files" : "Избери от Файловете"

View File

@ -6,7 +6,6 @@ OC.L10N.register(
"Show something" : "Mostra alguna cosa",
"Customize" : "Personalitza",
"Edit widgets" : "Edita els ginys",
"Get more widgets from the app store" : "Obtenir més ginys de la botiga d'aplicacions",
"Change background image" : "Canvia la imatge de fons",
"Weather service" : "Servei meteorològic",
"For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information." : "Per a la seva privacitat, les dades meteorològiques les sol·licita el seu servidor Nextcloud en el seu lloc perquè el servei meteorològic no rebi cap informació personal.",
@ -27,6 +26,7 @@ OC.L10N.register(
"Default images" : "Imatges predeterminades",
"Plain background" : "Fons senzill",
"Insert from {productName}" : "Insereix des de {productName}",
"Get more widgets from the app store" : "Obtenir més ginys de la botiga d'aplicacions",
"Good night, {name}" : "Bona nit, {name}",
"Good night" : "Bona nit",
"Pick from files" : "Tria entre fitxers"

Some files were not shown because too many files have changed in this diff Show More