summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Allow to disable share emailsJoas Schilling2020-08-191-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* [tx-robot] updated from transifexNextcloud bot2020-08-192-0/+2
|
* Improve recent file fetchingRoeland Jago Douma2020-08-181-6/+51
| | | | | | | | | | | | | | | | Fixes #16876 Before we'd just fetch everything from all storages we'd have access to. Then we'd sort. And filter in php. Now this of course is tricky if a user shared just a file with you and then has a ton of activity. Now we try to contruct the prefix path. So that the filtering can happen right away in the databae. Now this will make the DB more busy. But it should help overall as in most cases less queries are needed then etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [tx-robot] updated from transifexNextcloud bot2020-08-182-0/+2
|
* Merge pull request #22109 from nextcloud/feature/20931/followup-1John Molakvoæ2020-08-171-2/+51
|\
| * Expose status via Collaborators APIGeorg Ehrke2020-08-141-2/+51
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Merge pull request #22271 from ↵Roeland Jago Douma2020-08-174-2/+15
|\ \ | | | | | | | | | | | | nextcloud/phpdoc/22063/add-interface-method-and-phpdoc Properly add new methods to interface and document in PHPDoc for getR…
| * | Properly add new methods to interface and document in PHPDoc for getRootMounts()Morris Jobke2020-08-174-2/+15
| | | | | | | | | | | | | | | | | | Introduced in #22063 and was just forgotten. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Fix "misplaced variables" warning of Psalm in PHPDoc statementsMorris Jobke2020-08-176-10/+7
| | | | | | | | | | | | | | | | | | Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #22253 from nextcloud/debt/noid/docblocksMorris Jobke2020-08-171-9/+9
|\ \ \ | |/ / |/| | Fix some MissingDocblockType or InvalidDocblock warnings.
| * | Fix more MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-9/+9
| |/ | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | [tx-robot] updated from transifexNextcloud bot2020-08-172-0/+2
| |
* | Update documentation for QueryBuilder::setDaniel Kesselberg2020-08-142-2/+2
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Silence duplicate session warningsRoeland Jago Douma2020-08-141-4/+4
| | | | | | | | Fixes #20490 Basically restroring the old behavior. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #22242 from nextcloud/techdebt/noid/remove-deprecated-methodsGary Kim2020-08-142-23/+0
|\ | | | | Remove deprecated and unused method calls
| * Remove getLastJob from IJobListMorris Jobke2020-08-132-23/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Always try and show pre rendered previewScott Dutton2020-08-131-4/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | Currently if the following situation happens Server generates preview Server has command removed which allows a preview to be shown Client asks for preview, gets a 404 error when preview exists (Mime checked before preview) This happens more often with documents, or video as the commands are not native PHP, they require a binary on the server. After the fix the following would happen Server generates preview Server has command removed which allows a preview to be shown Client asks for preview, gets preview which has been generated (Mime checked after preview) This would also allow offline generation (for example a docker image containing the extra binaries), allowing a reduction in attack surface of the instance serving the preview data. Signed-off-by: Scott Dutton <scott@exussum.co.uk>
* Merge pull request #22202 from nextcloud/enh/noid/cleanup-servercontainerMorris Jobke2020-08-131-125/+83
|\ | | | | Use autowiring where possible in server container
| * Add @deprecated labels for server DI containter aliasesMorris Jobke2020-08-131-0/+64
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Use registerDeprecatedAlias for non-namespaced aliasesMorris Jobke2020-08-131-3/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Use autowiring where possible in server containerMorris Jobke2020-08-131-125/+19
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #22205 from nextcloud/activity-settings-cleanupMorris Jobke2020-08-131-0/+17
|\ \ | | | | | | merge file activity settings into a single 'favorite changed' item
| * | merge file activity settings into a single 'favorite changed' itemRobin Appelman2020-08-131-0/+17
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #21344 from nextcloud/fix/twofactor-cleanup-eventMorris Jobke2020-08-135-10/+88
|\ \ \ | |_|/ |/| | Emit an event for every disabled 2FA provider during cleanup
| * | Emit an event for every disabled 2FA provider during cleanupChristoph Wurst2020-06-165-10/+88
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | [tx-robot] updated from transifexNextcloud bot2020-08-1322-2/+24
| |/ |/|
* | [tx-robot] updated from transifexNextcloud bot2020-08-122-0/+6
| |
* | Generate password by password_policy appDaniel Kesselberg2020-08-111-2/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #22117 from nextcloud/activity-settings-groupingMorris Jobke2020-08-114-7/+39
|\ \ | | | | | | allow grouping of activity settings
| * | allow grouping of activity settingsRobin Appelman2020-08-054-7/+39
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #22169 from nextcloud/enh/noid/prefer-typed-eventsMorris Jobke2020-08-112-2/+2
|\ \ \ | | | | | | | | Prefer typed event over string based ones
| * | | Prefer typed event over string based onesMorris Jobke2020-08-102-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Add PHP doc for eventsMorris Jobke2020-08-1014-3/+35
|/ / / | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #21738 from ↵Morris Jobke2020-08-074-15/+26
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/techdebt/14552/migrate-OC_Group-post_removeFromGroup Migrate OC_Group post_removeFromGroup hook to actual event object
| * | | Add proper deprecation messageMorris Jobke2020-08-071-1/+4
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | Deprecate BeforeUserRemovedEvent because it can't be triggered in all casesMorris Jobke2020-07-301-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | User.php: rename of old dispatcher to legacyDispatcherMorris Jobke2020-07-301-11/+11
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | Migrate OC_Group post_removeFromGroup hook to actual event objectMorris Jobke2020-07-303-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ref #14552 This adds a BeforeUserRemovedEvent to the LDAP backend because it was missing. It's not really before, but we don't have the before state. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Merge pull request #22139 from ↵Morris Jobke2020-08-071-9/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/fix/noid/check-for-preview-multibucket-fallback-as-second-step Check previews in multibucket fallback folder as the last step and not as first step
| * | | | Check previews in multibucket fallback folder as the last step and not as ↵Morris Jobke2020-08-071-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | first step Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | Allow to update to nightlyJohn Molakvoæ (skjnldsv)2020-08-073-13/+25
| | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | | | Merge pull request #22133 from nextcloud/boot-app-onceMorris Jobke2020-08-071-0/+8
|\ \ \ \ \ | | | | | | | | | | | | only boot apps once
| * | | | | only boot apps onceRobin Appelman2020-08-071-0/+8
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | in some cases `loadApp` is called more then once which is currently causing apps to be "booted" multiple times which can lead to unexepected behaviour with things like registering hooks Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | Merge pull request #22135 from nextcloud/enh/noid/occ-preview-repairMorris Jobke2020-08-073-3/+5
|\ \ \ \ \ | |_|/ / / |/| | | | Add occ preview:migrate to migrate previews from the old flat structure to a subfolder structure
| * | | | Add occ preview:migrate to migrate previews from the old flat structure to a ↵Morris Jobke2020-08-063-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subfolder structure * `php occ preview:repair` - a preview migration tool that moves existing previews into the new location introduced with #19214 * moves `appdata_INSTANCEID/previews/FILEID` to `appdata_INSTANCEID/previews/0/5/8/4/c/e/5/FILEID` * migration tool can be stopped during migration via `CTRL+C` - it then finishes the current folder (with the previews of one file) and stops gracefully * if a PHP memory limit is set in the `php.ini` then it will stop automatically once it has less than 25 MiB memory left (this is to avoid hard crashes in the middle of a migration) * the tool can be used during operation - possible drawbacks: * there is the chance of a race condition that a new preview is generated in the moment the folder is already migrated away - so the old folder with the newly cached preview is deleted and one cached preview needs to be re-generated * there is the chance of a race condition during access of a preview while it is migrated to the other folder - then no preview can be shown and results in a 404 (as of now this is an accepted risk) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | Add config option to enable multibucket preview distributionMorris Jobke2020-08-062-9/+12
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | Use fixed preview buckets that are postfixed with -preview-NUMBERMorris Jobke2020-08-061-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | Mount the old previews in a separate folder for the multi bucket setup and ↵Morris Jobke2020-08-062-3/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | check in them before using the actual locations Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | Distribute preview folders in appdata in multibucket setup to multiple bucketsMorris Jobke2020-08-069-1/+226
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * introduces a new IRootMountProvider to register mount points inside the root storage * adds a AppdataPreviewObjectStoreStorage to handle the split between preview folders and bucket number Ref #22033 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Merge pull request #22112 from nextcloud/enh/noid/flow-entity-recreatable-stateMorris Jobke2020-08-063-0/+61
|\ \ \ \ | | | | | | | | | | Allow Flow entity state to be recreated