aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't use quota cache through user managementVincent Petry2022-11-211-4/+8
| | | | | | | When querying the free space through user management APIs, don't use the cached quota value. The latter is only there to accelerate PROPFINDs. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* getAppValue expects stringJohn Molakvoæ2022-11-171-1/+1
| | | | Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* Default Jpeg quality to 80Git'Fellow2022-11-161-1/+1
| | | | | | See https://sirv.com/help/articles/jpeg-quality-comparison/ Almost 50% of file size (compared to 90) and no visual differences. Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Merge pull request #34834 from nextcloud/bugfix/noid/skeleton-size-calcVincent Petry2022-11-041-1/+1
|\ | | | | Fix size calculation on copying the skeleton files
| * Use proper storage method for writing skeleton filesJulius Härtl2022-10-271-1/+1
| | | | | | | | | | | | otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #34678 from pulsejet/patch-jpegCôme Chilliet2022-11-031-0/+4
|\ \ | | | | | | Interlace all output JPEG
| * | Interlace all output JPEGVarun Patil2022-10-251-0/+4
| | | | | | | | | | | | | | | | | | Progressive images are both smaller and faster to load. Signed-off-by: Varun Patil <radialapps@gmail.com>
* | | remove 32-bit workaroundsszaimen2022-11-021-13/+0
| |/ |/| | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* | Fix alternative logins custom css classzorn-v2022-10-201-1/+1
|/ | | | | | In NC 25 login page was changed, and alternative login css class get from `class` prop but not `style`. It is correct change in my opinion, so just add backend fix. Signed-off-by: zorn-v <zorn7@yandex.ru>
* Cleanup tags and Share componentCarl Schwan2022-09-293-321/+7
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix quota type to intCarl Schwan2022-09-122-4/+4
| | | | | | | | | Change the quota to int from float, since the quota is a number of bits and a bits can not be splitted. Fix #34010 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate Repair events to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-8/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Moving to string key for arguments of GenericEvent in RepairCôme Chilliet2022-08-251-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move findBinaryFinder and isFunctionEnabled away from OC_HelperCarl Schwan2022-08-231-36/+8
| | | | | | | | | | | | findBinaryFinder is now a service that is still private but with some minor optimization (remove the hasKey check). isFunctionEnabled is now in OCP\Util Both function are still keep but all internal usage in nextcloud/server were migrated to the new usage, so that we can remove it in 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32363 from nextcloud/cleanup/remove-long-deprecated-classesCarl Schwan2022-08-081-19/+0
|\ | | | | Remove OCP\App and OCP\BackgroundJob
| * Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-19/+0
| | | | | | | | | | | | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Multiple fixesCarl Schwan2022-07-311-16/+14
| | | | | | | | | | | | | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add share attributes + prevent download permissionVincent Petry2022-07-281-2/+31
|/ | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* fix loading legacy app.php with multi app dirArthur Schiwon2022-07-181-1/+1
| | | | | | | | | | - requireAppFile() only appends /appinfo/app.php - without the absolute path, require_once looks into include_path - the first match in inlcude_path however migth be different from appPath - fixed by providing the tested(!), full path to the app Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow SSO authentication to provide a user secretMichaIng2022-07-121-2/+6
| | | | | | Implementing PR #24837 from immerda Signed-off-by: MichaIng <micha@dietpi.com>
* Merge pull request #32592 from ↵Julius Härtl2022-05-271-0/+1
|\ | | | | | | | | nextcloud/fix/noid/allow-rememberme-token-apache-auth-backend allow use of rememberme cookies for IApacheAuth backends
| * allow use of rememberme cookies for IApacheAuth backendsArthur Schiwon2022-05-251-0/+1
| | | | | | | | | | | | - e.g. enables it for SAML backend Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Move Gd failed operations to debug levelGit'Fellow2022-05-251-20/+18
|/ | | Instead of error
* Fix psalm errors fron the end of the baseline fileCarl Schwan2022-05-162-23/+8
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32008 from nextcloud/fix/getSize-boolCarl Schwan2022-05-121-5/+10
|\ | | | | Fix Call to a member function getSize() on bool
| * Fix Call to a member function getSize() on boolCarl Schwan2022-05-121-5/+10
| | | | | | | | | | | | getFileInfo might return false, handle this case by ignoring the result Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | don't unjail the path when getting the storage infoRobin Appelman2022-05-111-4/+1
| | | | | | | | | | | | | | | | the original reason for adding it no longer exist. This was added with #30985 since then the share source storage was also used, however this was changed with #32076 Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Migrate to static icons coloursJohn Molakvoæ2022-05-101-1/+0
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | l10n: Correct a typoValdnet2022-04-281-1/+1
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | l10n: Fix codeValdnet2022-04-271-1/+1
| | | | | | | | | | Issue: #32171. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Merge pull request #31492 from nextcloud/fix/check-secret-configuredJohn Molakvoæ2022-04-261-0/+9
|\ \
| * | Only check if secret is set if the nextcloud is installedCarl Schwan2022-03-091-1/+1
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Also check for instanceid and passwordhashCarl Schwan2022-03-091-5/+7
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Require the secret config to be configuredCarl Schwan2022-03-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If it's not configured the instance will look like it is working but various features will silently break (end to end encryption, setting alternate email and probably more). One issue is that changing the secret from empty to something will break various other stuff (app token). I don't think there is a good way to solve this issue other than breaking early instead of having to handle a painful migration later on. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | use and cache root storage info if a share can't be resolvedRobin Appelman2022-04-221-2/+14
| | | | | | | | | | | | | | | | | | as is a broken share will never be cached Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #31751 from nextcloud/theming-providersJohn Molakvoæ2022-04-221-1/+1
|\ \ \
| * | | Start theming providersJoas Schilling2022-04-211-1/+1
| | |/ | |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / | cache storage info in memcache for 5mRobin Appelman2022-04-211-1/+18
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31876 from nextcloud/bugfix/noid/fix-getCurrentApp-from-cliVincent Petry2022-04-071-1/+11
|\ \ | | | | | | Fix \OC_App::getCurrentApp() when being called from CLI or phpunit
| * | Log exceptionJoas Schilling2022-04-071-0/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Fix \OC_App::getCurrentApp() when being called from CLI or phpunitJoas Schilling2022-04-071-1/+10
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #25747 from nextcloud/XAccelBufferingblizzz2022-04-071-0/+1
|\ \ \ | |/ / |/| | Add X-Accel-Buffering header to downloads
| * | Add X-Accel-Buffering header to downloadsUnpublished2022-01-171-0/+1
| | | | | | | | | | | | Signed-off-by: Unpublished <unpublished@gmx.net>
* | | Merge pull request #31194 from ↵Vincent Petry2022-04-061-3/+4
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/feat/allow-to-exclude-groups-from-password-enforcement Allow to disable password policy enforcement for selected groups
| * | | Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | | | dont re-query fileinfo when getting dav quotaRobin Appelman2022-03-281-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Remove legacy Internet Explorer headersMichaIng2022-03-191-1/+0
|/ / / | | | | | | | | | | | | | | | X-UA-Compatible and X-Download-Options headers are interpreted or relevant for Internet Explorer only. With the deprecation of Internet Explorer support in Nextcloud 20 and planned support removal already in Nextcloud 22, these became obsolete and are hereby removed, including their removal from setup checks. Signed-off-by: MichaIng <micha@dietpi.com>
* | | move teardown logic to SetupManagerRobin Appelman2022-03-041-4/+4
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | start moving filesystem setup logic to it's own placeRobin Appelman2022-03-041-137/+7
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #31266 from nextcloud/root-setup-mountproviderRobin Appelman2022-03-041-104/+0
|\ \ \ | |_|/ |/| | move root mount setup to mountproviders