aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #40326 from nextcloud/enh/text-to-image-apiJoas Schilling2023-10-261-0/+11
|\ | | | | Implement TextToImage OCP API
| * fix: Minor copypastaMarcel Klehr2023-10-231-1/+1
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * fix(Text2Image): Fix psalm errorsMarcel Klehr2023-10-201-0/+11
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | Fix docblock and types for new public APICôme Chilliet2023-10-191-3/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add api to register setup checksCarl Schwan2023-10-191-0/+10
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #39852 from nextcloud/pragmaHeaderFerdinand Thiessen2023-10-181-4/+3
|\ | | | | Stop sending deprecated Pragma header
| * Stop sending deprecated Pragma headerGit'Fellow2023-08-281-4/+3
| | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | Merge pull request #40367 from nextcloud/fix/user_ldap-update-groups-on-loginCôme Chilliet2023-10-161-1/+1
|\ \ | | | | | | Fire group membership events from LDAP at login
| * | Fix registerEventListener signatureCôme Chilliet2023-10-121-1/+1
| |/ | | | | | | | | | | It seems now psalm correctly supports this. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / Fix version number in ITimeFactory after it was delayedJoas Schilling2023-10-111-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(utility): De- deprecate getDateTime as now() only returns immutable objectsAnna Larch2023-08-251-2/+0
| | | | | | | | This will mean lots of code like ```$dateTime = (new DateTime())->setTimestamp(ITimeFactory::now()->getTimestamp()``` if a regular DateTime object is needed Signed-off-by: Anna Larch <anna@nextcloud.com>
* add separate event for rendering login page templateRobin Appelman2023-08-171-0/+52
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow "wasm-unsafe-eval" in CSPDaniel Calviño Sánchez2023-08-103-1/+21
| | | | | | | | | | | | | | | | | | If a page has a Content Security Policy header and the `script-src` (or `default-src`) directive does not contain neither `wasm-unsafe-eval` nor `unsafe-eval` loading and executing WebAssembly is blocked in the page (although it is still possible to load and execute WebAssembly in a worker thread). Although the Nextcloud classes to manage the CSP already supported allowing `unsafe-eval` this affects not only WebAssembly, but also the `eval` operation in JavaScript. To make possible to allow WebAssembly execution without allowing JavaScript `eval` this commit adds support for allowing `wasm-unsafe-eval`. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fix!: Remove legacy event dispatching Symfony's GenericEvent from ↵Joas Schilling2023-07-271-9/+0
| | | | | | AdditionalScripts Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #38854 from nextcloud/enh/llm-apiMarcel Klehr2023-07-211-0/+11
|\
| * Massive refactoring: Turn LanguageModel OCP API into TextProcessing APIMarcel Klehr2023-07-141-5/+5
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * Since 27.1.0Marcel Klehr2023-07-071-1/+1
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * Update lib/public/AppFramework/Bootstrap/IRegistrationContext.phpMarcel Klehr2023-07-071-1/+1
| | | | | | | | Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
| * LLM OCP API: Implement ocs APIMarcel Klehr2023-07-071-0/+11
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | Add IgnoreOpenAPI attributejld31032023-07-101-0/+37
|/ | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add OCSPreconditionFailedExceptionLouis Chemineau2023-07-051-0/+44
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Add template types to responsesjld31032023-06-3017-94/+198
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* chore(appframework)!: Drop ↵Christoph Wurst2023-06-121-18/+1
| | | | | | \OCP\AppFramework\Http\EmptyContentSecurityPolicy::allowInlineScript Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Drop meta robots tagGit'Fellow2023-06-091-1/+0
| | | | | | Revert mistake Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Refactors "strpos" calls in lib/public to improve code readability.Faraz Samapoor2023-06-051-4/+4
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* fix(docs): Fix language and copy-paste class name in docs of CSPJoas Schilling2023-05-303-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* enh: Provide atomicRetry method to retry transactions if possibleJulius Härtl2023-05-161-0/+37
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix typos in lib/public subdirectorySimon L2023-05-101-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/public` Signed-off-by: luz paz <luzpaz@github.com> Update lib/public/Accounts/IAccount.php Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* fix: add workaround for oci and limit queriesDaniel Kesselberg2023-05-021-0/+1
| | | | | | DBAL uses a helper column "doctrine_rownum" for top-n queries Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(security): Add PHP \Attribute for remaining security annotationsJoas Schilling2023-04-2510-1/+329
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(ratelimit): Add Attributes support to rate limit middlewareJoas Schilling2023-04-243-0/+133
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #37674 from nextcloud/feature/speech-to-textJoas Schilling2023-04-191-0/+11
|\ | | | | feat(SpeechToText): Add SpeechToText OCP provider API
| * feat(SpeechToText): Add SpeechToText provider APIMarcel Klehr2023-04-111-0/+11
| | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | feat(app-framework): Add native argument types for middlewareChristoph Wurst2023-04-181-6/+7
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix: Allow to catch `IMapperException` by implementing `Throwable`Ferdinand Thiessen2023-04-171-1/+1
|/ | | | Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* Add type hints for mappersjld31032023-04-071-2/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(middleware): Migrate BruteForceProtection annotation to PHP Attribute ↵Joas Schilling2023-03-082-1/+53
| | | | | | and allow multiple Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(appframework): ⌚ Make ITimeFactory extend \PSR\Clock\ClockInterfaceJoas Schilling2023-03-031-3/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(translations): Add translation provider APIJulius Härtl2023-02-271-0/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>
* Also copy bruteforce meta data when converting DataResponse to JSONResponseJoas Schilling2023-02-141-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Throw `NotFoundExceptionInterface` to fulfill PSR container interface ↵Ferdinand Thiessen2023-02-061-1/+1
| | | | | | if class not found Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* Pluggable share providerLouis Chemineau2023-02-021-0/+10
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(app-framework): Add UseSession attribute to replace annotationChristoph Wurst2023-01-271-0/+37
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #36310 from nextcloud/feat/app-framework/global-middlewaresChristoph Wurst2023-01-261-1/+3
|\ | | | | feat(app-framework): Add support for global middlewares
| * feat(app-framework): Add support for global middlewaresChristoph Wurst2023-01-261-1/+3
| | | | | | | | | | | | | | This allows apps to register middlewares that always register, not just for the app's own requests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(app-framework): Specify return type of Middleware::beforeControllerChristoph Wurst2023-01-251-0/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* composer run cs:fixCôme Chilliet2023-01-2034-35/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve typing in Entity.phpCôme Chilliet2023-01-201-12/+14
| | | | | | Removing @method in Entity brings even more errors. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>