aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
Commit message (Collapse)AuthorAgeFilesLines
...
* | fix: Recalculate storage statistics on updating the quotaJulius Härtl2023-03-061-0/+9
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Revert "fix(performance): Do not set up filesystem on every call"Joas Schilling2023-02-211-0/+184
|
* Do not set up filesystem on every callAnna Larch2023-02-171-184/+0
| | | | | | Also remove old Oc_FileChunking logis that produced GC- collectable chunks Signed-off-by: Anna Larch <anna@nextcloud.com>
* Change X-Robots-Tag header from "none" to "noindex, nofollow"MichaIng2023-02-151-1/+1
| | | | | | | | | | While "none" is indeed equivalent to "noindex, nofollow" for Google, but seems to be not supported by Bing and probably other search engines. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name#other_metadata_names https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=de#comma-separated-list https://www.bing.com/webmasters/help/which-robots-metatags-does-bing-support-5198d240 Signed-off-by: MichaIng <micha@dietpi.com>
* instrumentation for app bootingRobin Appelman2023-02-091-2/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure application are only loaded onceCôme Chilliet2023-02-071-1/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Put back string in $includeMounts as it actually does somethingCôme Chilliet2023-02-071-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-9/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix computerFileSize when called with a string without unitCôme Chilliet2023-02-071-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix 32bits bigint support in Util/OC_HelperCôme Chilliet2023-02-072-15/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix bigsize support on 32bits in OC_HelperCôme Chilliet2023-02-071-7/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "remove 32-bit workarounds"Côme Chilliet2023-02-071-0/+13
| | | | | | This reverts commit dd8774389e21b59c07882580356d51de018fe867. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refresh cached app folder on install/upgradeMaxence Lange2023-02-011-5/+9
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* composer run cs:fixCôme Chilliet2023-01-208-41/+34
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Attempt at reducing psalm errorsCôme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(files): Quota in navigationJohn Molakvoæ2023-01-171-1/+6
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Small fix in OC_APICôme Chilliet2023-01-021-5/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* increase preview_max_memory and make it easier to debugSimon L2022-12-221-3/+3
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Use display name cache on getStorageInfoJulius Härtl2022-12-161-3/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Adapt test to also run isolated Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow empty mimeTypeJ0WI2022-12-041-8/+7
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Add type hintsJ0WI2022-12-041-49/+45
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Fix redundant conditionJ0WI2022-12-041-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Remove obsolete GD function overwritesJ0WI2022-12-041-281/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* 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>