aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
Commit message (Collapse)AuthorAgeFilesLines
* new name of AppEcosystem is AppAPIAlexander Piskun2023-09-061-6/+6
| | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
* techdebt(DI): Use public IThrottler interface which exists since Nextcloud 25Joas Schilling2023-08-281-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge branch 'master' into appecosystem-authAndrey Borysenko2023-08-101-2/+1
|\
| * fix: Migrate collaboration listener and remove legacy adapterJoas Schilling2023-07-281-2/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix psalm ci (stub). Wrap server container with try-catchAndrey Borysenko2023-08-021-2/+6
| | | | | | | | Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
* | added Application Ecosystem V2 login handlerAlexander Piskun2023-08-011-0/+15
|/ | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
* fix(apps): Fix loading info.xml fileJoas Schilling2023-07-201-0/+5
| | | | | | Ref: https://bugs.php.net/bug.php?id=62577 Signed-off-by: Joas Schilling <coding@schilljs.com>
* allow to specify upgrade.cli-upgrade-link in order to link to the correct ↵Simon L2023-06-101-0/+2
| | | | | | documentation Signed-off-by: Simon L <szaimen@e.mail.de>
* Fixed bug which 'overwritewebroot' does not work with 'overwritecondaddr'.Simon L2023-05-161-0/+3
| | | | | Signed-off-by: Takahiro Nagai <78393959+takahiro-blab@users.noreply.github.com> Signed-off-by: Simon L <szaimen@e.mail.de>
* adjust wordingSimon L2023-05-091-2/+2
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* adjust wording for update hint when files of a specific app are not thereSimon L2023-05-091-2/+2
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Read mtime of version.php only onceArthur Schiwon2023-04-211-2/+4
| | | | | | | - in most cases it would read again in \OC_Util::loadVersion anyway - remove some unused use statements Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add the server roots and version info hash to apcu prefixArthur Schiwon2023-04-211-1/+1
| | | | | | | | | | | | fixes collissions when more than one instance is running on the same system For the memcaches we use a more complex prefix, where version and instance ID are incorporated. We do not have this data at hand at this point of time. But we can get the mtime of the version.php file relatively cheap. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-201-1/+4
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * fix(security)!: Use consistent HTTP status for strict cookie checksChristoph Wurst2023-04-171-1/+3
| | | | | | | | | | | | | | Before: 503/412 Now: 412 + json body explaining the error Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * app type extended_authenticationMaxence Lange2023-04-121-0/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-4/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #37305 from ↵Julius Härtl2023-03-211-0/+1
|\ | | | | | | | | nextcloud/fix/security/log-failing-strict-cookie-check fix(security): Log failing strict cookie check
| * fix(security): Log failing strict cookie checkChristoph Wurst2023-03-201-0/+1
| | | | | | | | | | | | | | The error is silent otherwise and makes it very hard to debug on a production system. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(session): Fix DAVx5 sync problems by partial reverting session changesJoas Schilling2023-03-201-7/+11
|/ | | | | | | | | Temporary disabled the short cut again to solve issues with CalDAV/CardDAV clients like DAVx5 that use cookies and need a session. See https://github.com/nextcloud/server/issues/37277#issuecomment-1476366147 and the other comments for further information. Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Avoid log spam on 404 routes not using GETJulius Härtl2023-03-031-1/+4
| | | | 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/+17
|
* Do not set up filesystem on every callAnna Larch2023-02-171-17/+0
| | | | | | Also remove old Oc_FileChunking logis that produced GC- collectable chunks Signed-off-by: Anna Larch <anna@nextcloud.com>
* extend the reference API for the new link pickerJulien Veyssier2023-01-271-0/+5
| | | | | | | | | - add 2 interfaces for discoverable and searchable reference providers - new OCS route to get info on discoverable/searchable reference providers - new abstract ADiscoverableReferenceProvider that only implements jsonSerialize - listen to RenderReferenceEvent to inject provider list with initial state Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(session): Always setup the session if a session cookie is passedJulius Härtl2022-12-221-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not setup a session when not required on WebDAV requestsJulius Härtl2022-12-211-5/+15
| | | | | | | | | | If basic auth is used on WebDAV endpoints, we will not setup a session by default but instead set a test cookie. Clients which handle session cookies properly will send back the cookie then on the second request and a session will be initialized which can be resued for authentication. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Strong type singletons from lib/base.phpCôme Chilliet2022-12-191-12/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate lib/base.php to LoggerInterfaceCôme Chilliet2022-12-191-6/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Put back cast to string now that timelimit is an intCôme Chilliet2022-12-191-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fixing more psalm errors from lib/base.phpCôme Chilliet2022-12-191-32/+31
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use Server::get some moreCôme Chilliet2022-12-191-39/+38
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use strict typing in base.phpCôme Chilliet2022-12-191-49/+42
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Set apcu prefix for composerJulius Härtl2022-12-071-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Refactor the ErrorHandler into a dynamic classChristoph Wurst2022-11-021-3/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use proper error pages instead of always redirectingJulius Härtl2022-10-211-9/+23
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #33737 from andyxheli/patch-4Simon L2022-10-011-1/+1
|\ | | | | Makes untrusted domain error on info
| * Makes untrusted domain error on infoAndy Xheli2022-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Since https://github.com/nextcloud/server/commit/e6d9ef2e38daffcab808eaa41b18ab16c6253b97 was applied logs get filled up with Trusted domain error. "X.X.X.X tried to access using "X.X.X.X" as host alot of users missed important errors do tohttps://github.com/nextcloud/server/commit/e6d9ef2e38daffcab808eaa41b18ab16c6253b97 please see https://github.com/nextcloud/server/issues/32599 This should fix. https://github.com/nextcloud/server/issues/32599#event-7281164903 Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
* | remove listeners to OC_Filesystem::(write|rename) old style hooksArthur Schiwon2022-09-261-10/+0
| | | | | | | | | | | | | | - the events are not emitted anymore - OC_Filesystem::isBlacklisted() is not called from anywhere else Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Refactor cache handlingJulius Härtl2022-08-311-0/+5
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move setting of gc_maxlifetime to initSessionJulius Härtl2022-08-171-3/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add config option to disable strict session timeout to be able to use ↵Julius Härtl2022-08-171-1/+10
| | | | | | | | read_and_close Fixed https://github.com/nextcloud/server/issues/29356 Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Reopen sessions if we need to write to them instead of keeping them openJulius Härtl2022-08-171-0/+1
| | | | | | | Sessions are a locking operation until we write close them, so close them early and reopen later in case we want to write to them Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #33173 from ↵Christoph Wurst2022-08-101-0/+1
|\ | | | | | | | | nextcloud/enhancement/maintenance-mode-http-header Set special header for 503 maintenance mode
| * Set special header for 503 maintenance modeChristoph Wurst2022-08-081-0/+1
| | | | | | | | | | | | | | This removes ambiguity with a 503 returned by app code, web server or similar. Front-end and clients can then handle this state accordingly. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Do not redirect if requested CSS can not be foundChristoph Wurst2022-08-081-0/+9
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix 404 handling of requested JSON/XMLChristoph Wurst2022-07-081-0/+7
| | | | | | | | | If front-end or an application requests JSON/XML, there is no point in redirecting to the default page if that response doesn't exist. In the worst case that would just cause another request, therefore server load, traffic and a response that is meaningless to the requester. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #32435 from nextcloud/revert-32278-remove-default-phpJoas Schilling2022-06-031-1/+10
|\ | | | | Revert "Remove call to already default php.ini values"
| * Revert "Remove call to already default php.ini values"Joas Schilling2022-05-161-1/+10
| |
* | Merge pull request #32349 from nextcloud/enh/projects-eventCarl Schwan2022-05-271-1/+3
|\ \ | | | | | | Add event to load additional scripts for projects
| * | Introduce event for loading additional script on projectsJulius Härtl2022-05-121-1/+3
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>