summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Updating license headers"Morris Jobke2015-02-2624-314/+378
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* use IDBConnection and close cursors after insert/update/deleteBernhard Posselt2015-02-251-6/+10
|
* migrate to IDBConnectionBernhard Posselt2015-02-251-6/+8
|
* Updating license headersJenkins for ownCloud2015-02-2324-378/+314
|
* Merge pull request #13777 from owncloud/close-cursorLukas Reschke2015-02-201-21/+28
|\ | | | | Close cursor for appframework and manipulation queries if applicable
| * ignore cursorclosingBernhard Posselt2015-01-291-21/+28
| |
* | Rename to allowEvalLukas Reschke2015-02-161-1/+1
| |
* | Allow AppFramework applications to specify a custom CSP headerLukas Reschke2015-02-162-1/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows AppFramework applications to specify a custom CSP header for example when the default policy is too strict. Furthermore this allows us to partially migrate away from CSS and allowed eval() in our JavaScript components. Legacy ownCloud components will still use the previous policy. Application developers can use this as following in their controllers: ```php $response = new TemplateResponse('activity', 'list', []); $cspHelper = new ContentSecurityPolicyHelper(); $cspHelper->addAllowedScriptDomain('www.owncloud.org'); $response->addHeader('Content-Security-Policy', $cspHelper->getPolicy()); return $response; ``` Fixes https://github.com/owncloud/core/issues/11857 which is a pre-requisite for https://github.com/owncloud/core/issues/13458 and https://github.com/owncloud/core/issues/11925
* | fix license emailBernhard Posselt2015-02-052-6/+6
| |
* | add a controller and reponse for ocsBernhard Posselt2015-02-052-0/+202
|/
* Merge pull request #12988 from owncloud/logfile_downloadMorris Jobke2015-01-091-0/+42
|\ | | | | Logfile download
| * add Download logfile button to admin settingsGeorg Ehrke2015-01-071-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add logSettingsController add download logfile button move getEntries to LogSettingsController move set log level to logsettingscontroller.php add warning if logfile is bigger than 100MB add unit test for set log level fix typecasting, add new line at EoF show log and logfile download only if log_type is set to owncloud add unit test for getFilenameForDownload
* | Intelligent containerBernhard Posselt2014-12-232-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resolves dependencies by type hint or variable name * simpler route.php * implementation of https://github.com/owncloud/core/issues/12829 Generates and injects parameters automatically. You can now build full classes like $c->query('MyClassName') without having to register it as a service. The resolved object's instance will be saved by using registerService. If a constructor parameter is not type hinted, the parameter name will be taken. Therefore the following two implementations are identical: class Class1 { function __construct(MyClassName $class) class Class1 { function __construct($MyClassName) This makes it possible to also inject primitive values such as strings, arrays etc. In addition if the query could not be resolved, a `QueryException` is now thrown Routes can now be returned as an array from `routes.php` and an `appinfo/application.php` is optional Old commit messages: make it possible to return the routes instead of having to intialize the application try to get the controller by convention add first implementation of automatic resolve add another test just to be sure store the resolved object more tests add phpdoc to public app.php method use the same variable for the public app.php method deprecate old methods and add services for public interfaces deprecated getServer method disallow private api injection for apps other than core or settings (settings should be an app goddamnit :D) register userid because its such an often used variable fix indention and leading slash use test namespace add deprecation reasons, remove private api usage checks and remove deprecation from getServer() add additional public interfaces add public interface for rootfolder fix syntax error remove deprecation from methods where no alternative is there yet remove deprecated from method which has no alternative add timezone public service for #12881 add another deprecation hint move deprecation into separate branch remove dead comment first try to get the namespace from the info.xml, if it does not exist, just uppercase the first letter also trim the namespace name add an interface for timefactory move timefactory to public and add icontrollermethodreflector keep core interface fix copyright date in headers
* | Merge pull request #12982 from owncloud/timefac-ifaceThomas Müller2014-12-211-0/+38
|\ \ | |/ |/| Add an interface for the timefactory class
| * add an interface for the timefactory classBernhard Posselt2014-12-201-0/+38
| | | | | | | | fix indention
* | add isAdmin and isInGroup methods for the group managerBernhard Posselt2014-12-171-0/+1
| |
* | add a isLoggedIn method to the usersession and deprecate the isLoggedIn ↵Bernhard Posselt2014-12-171-1/+2
|/ | | | method on the api
* first round of deprecationBernhard Posselt2014-12-162-0/+13
|
* Olivier Paroz \OCP\AppFramework\Utility\IControllerMethodReflectorOlivier Paroz2014-12-141-0/+63
|
* Merge headersLukas Reschke2014-12-041-1/+1
| | | Otherwise the headers from `JSONResponse` are gone and the Content-Type of the response would be `text/html` instead of `application/json; charset=utf-8`. This leads to broken scripts since we set the `nosniff` tag, furthermore this is very bad from a security PoV.
* Add functions to modify cookies to response classLukas Reschke2014-11-271-5/+68
| | | | | | | | | | | | | | | | Currently there is no AppFramework way to modify cookies, which makes it unusable for quite some use-cases or results in untestable code. This PR adds some basic functionalities to add and invalidate cookies. Usage: ```php $response = new TemplateResponse(...); $response->addCookie('foo', 'bar'); $response->invalidateCookie('foo'); $response->addCookie('bar', 'foo', new \DateTime('2015-01-01 00:00')); ``` Existing cookies can be accessed with the AppFramework using `$this->request->getCookie($name)`.
* Deprecate older API wrappers and callsLukas Reschke2014-11-121-0/+1
| | | | Those old classes have now non-static pendants and can be deprecated IMHO.
* fix typo in content typeBernhard Posselt2014-11-051-1/+1
|
* add dataresponseBernhard Posselt2014-10-293-3/+104
| | | | | | | | | | | | | | fix docstrings adjust copyright date another copyright date update another header update implement third headers argument, fix indention, fix docstrings fix docstrings
* according to PHPDoc this function shall return the entityThomas Müller2014-08-171-1/+4
|
* Fix template rendering for 'blank' templatesMorris Jobke2014-07-291-1/+3
|
* also handle lowercase headersBernhard Posselt2014-06-111-22/+22
|
* handle http accept headers more gracefullyBernhard Posselt2014-06-111-0/+24
|
* remove controller serializersBernhard Posselt2014-06-052-47/+3
|
* Fix PHPDocLukas Reschke2014-06-011-9/+1
| | | | - Remove not anymore existing parameters - Fix typo
* use fetch method instead of fetchRow because fetchRow is only an owncloud ↵Bernhard Posselt2014-05-141-3/+3
| | | | internal alias that exists purely for compability
* Merge pull request #8477 from owncloud/better-controllersMorris Jobke2014-05-1210-12/+108
|\ | | | | Better appframework controllers
| * adjust license headers to new mail addressBernhard Posselt2014-05-1110-10/+10
| |
| * rename formatter to responder, formatResponse to buildResponseBernhard Posselt2014-05-111-12/+12
| |
| * implement most of the basic stuff that was suggested in #8290Bernhard Posselt2014-05-113-3/+99
| |
* | Merge pull request #8274 from owncloud/appframework-dbMorris Jobke2014-05-124-0/+611
|\ \ | |/ |/| Port database layer from appframework to core
| * Make db connection protectedBernhard Posselt2014-05-111-1/+1
| |
| * dont update entity and dont run an update query if an entity wasnt changed ↵Bernhard Posselt2014-04-232-1/+9
| | | | | | | | at all
| * Fix typo & add typeLukas Reschke2014-04-201-4/+4
| |
| * move db into iservercontainerBernhard Posselt2014-04-192-51/+2
| |
| * fix doc strings for db facadeBernhard Posselt2014-04-191-1/+1
| |
| * fix scrutinizer issuesBernhard Posselt2014-04-191-0/+4
| |
| * port database layer from appframework to coreBernhard Posselt2014-04-195-0/+648
| |
* | add cors middlewareBernhard Posselt2014-05-093-2/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove methodannotationreader namespace fix namespace for server container fix tests fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request remove uneeded local in cors middleware registratio dont uppercase cors to easily use it from routes fix indention comment fixes explicitely set allow credentials header to false dont depend on better controllers PR, fix that stuff later split cors methods to be in a seperate controller for exposing apis remove protected definitions from apicontroller since controller has it
* | make download and redirectresponse publicBernhard Posselt2014-04-202-0/+107
|/
* Remove uneeded usages of nosniffLukas Reschke2014-04-131-1/+0
|
* register middleware as string to not force request to be instantiated too ↵Bernhard Posselt2014-04-091-2/+2
| | | | early and thus not having url parameters
* Merge pull request #7643 from owncloud/chainable_responseThomas Müller2014-04-083-0/+22
|\ | | | | Chainable Response in AppFramework
| * Add @return PHPDocsThomas Tanghus2014-03-103-0/+7
| |
| * Chainable Response in AppFrameworkThomas Tanghus2014-03-093-0/+15
| |