aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Add app name to the callJoas Schilling2016-10-101-1/+1
| | | | | | Regression from 69b063f4c614a46bbe5f0ffcab11ddb08c183f04 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #1672 from nextcloud/cache_non_exisiting_db_userRoeland Jago Douma2016-10-101-2/+7
|\ | | | | Cache non existing DB user
| * Cache non existing DB userRoeland Jago Douma2016-10-101-2/+7
| | | | | | | | | | | | | | | | | | We always query the database backend. Even if we use a different one (ldap for example). Now we do this everytime we try to get a user object so caching that a user is not in the DB safes some queries on each request then (at least 2 what I found). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #1660 from nextcloud/add-notification-icon-to-apiChristoph Wurst2016-10-101-5/+27
|\ \ | | | | | | Add an icon to the notification API
| * | Add an icon to the notification APIJoas Schilling2016-10-071-5/+27
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #1640 from nextcloud/less_queries_group_shareMorris Jobke2016-10-101-30/+49
|\ \ \ | | | | | | | | More efficient group share resolving
| * | | More efficient group share resolvingRoeland Jago Douma2016-10-061-30/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When resolving a group share to the user group share we used to do this on a per share basis. Now we try to do this for all group shares at once. Of course still chunked. Before: N incomming group shares this would mean 1 + N queries Now: N incomming roups shares this would mean 1 + 1 queries Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #1663 from nextcloud/dont-reparse-info-xmlMorris Jobke2016-10-103-41/+42
|\ \ \ \ | |_|_|/ |/| | | Dont reparse info xml + cache AppInfo XML
| * | | Cache AppInfo in Memory Cache if configuredLukas Reschke2016-10-072-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves around 20ms on a bare-bone instance, on bigger ones more (depending on the number of installed apps). See https://blackfire.io/profiles/compare/fc326ad3-100d-49b8-8ea9-8343240f53f3/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | | Don't parse info.xml but reuse already cached app infos - fixes #25603 (#25968)Thomas Müller2016-10-073-46/+24
| | |/ | |/| | | | | | | | | | | | | | | | | | | * Don't parse info.xml but reuse already cached app infos - fixes #25603 * Use === in InfoParser. Fixes test * InfoParser should not depend on UrlGenerator - fixes issue with session being closed too early
* | | Merge pull request #1658 from nextcloud/fix-log.conditionMorris Jobke2016-10-091-1/+1
|\ \ \ | | | | | | | | Default to empty string
| * | | Default to empty stringLukas Reschke2016-10-071-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | Otherwise `null` is returned which leads to a ton of similar error messages if the log condition setting is enabled.: ``` {"reqId":"3wVBarnDfOV3qkI1bVCU","remoteAddr":"89.98.78.41","app":"PHP","message":"hash_equals(): Expected user_string to be a string, null given at \/var\/www\/html\/lib\/private\/Log.php#275","level":3,"time":"2016-10-07T14:22:15+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"icewind"} ```
* / / Simplify isSubDirectory checkLukas Reschke2016-10-072-30/+26
|/ / | | | | | | | | | | Shaves off another 9ms per request as can be seen at https://blackfire.io/profiles/compare/dd54cef3-e58d-4a22-b8f4-c7c4b70697be/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #1514 from nextcloud/integration-tests-orphaned-sharesMorris Jobke2016-10-061-8/+38
|\ \ | |/ |/| Integration tests orphaned shares + Prefilter inaccessible shares
| * Prefilter inaccessible shares in DefaultShareProvider::getSharedWith()Vincent Petry2016-10-061-8/+38
| | | | | | | | | | | | | | | | | | | | | | The DefaultShareProvider now does a DB-level check to find out whether file_source is accessible at all (deleted file) or whether it's in the trashbin of a home storage. One small corner case where the home storage id is in md5 form cannot be covered properly with this approach. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #1629 from nextcloud/cleanup-settings-applicationJoas Schilling2016-10-061-0/+3
|\ \ | | | | | | Cleanup settings Application class
| * | When we can not create the class, try if the variable is a registered serviceJoas Schilling2016-10-051-0/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | log version number in each log lineMorris Jobke2016-10-061-2/+4
| |/ |/| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #1306 from nextcloud/simplefsLukas Reschke2016-10-0612-32/+611
|\ \ | | | | | | Introducing AppData
| * | DI fails for bg jobRoeland Jago Douma2016-10-051-10/+4
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Fix repairRoeland Jago Douma2016-10-051-3/+1
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Use a backgroundjob to move avatarsRoeland Jago Douma2016-10-052-78/+118
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Deprecate old app folderRoeland Jago Douma2016-10-051-0/+1
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Kill users with the reserved name on loginRoeland Jago Douma2016-10-051-1/+11
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Add for proper DIRoeland Jago Douma2016-10-051-0/+5
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Avatar migration stepRoeland Jago Douma2016-10-052-0/+141
| | | | | | | | | | | | | | | | | | * Skip move avatar if avatars disabled Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | avatar to appdataRoeland Jago Douma2016-10-054-28/+23
| | | | | | | | | | | | | | | | | | * Fix AvatarTest Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Add TestsRoeland Jago Douma2016-10-052-12/+26
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Initial AppDataRoeland Jago Douma2016-10-056-3/+384
| |/ | | | | | | | | | | | | | | | | | | | | | | * Introduce simpleFS * Introduce IAppData * Introduce AppData Factory to get your AppData folder * Update FileDisplayResponse * AppData implements a ISimpleRoot but lazy. So only if an apps starts to access data will stuff get initialized Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #1586 from ↵Lukas Reschke2016-10-051-7/+67
|\ \ | |/ |/| | | | | nextcloud/issue-1466-fix-multi-translation-names-and-descriptions Allow multiple names and description
| * Fallback from "de" to "de_DE" and the other way aroundJoas Schilling2016-10-041-3/+30
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Allow multiple names and descriptionJoas Schilling2016-09-301-7/+40
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove database requirement from testLukas Reschke2016-10-031-2/+8
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Use proper casing of username in avatar filesystem setupMorris Jobke2016-10-031-0/+2
|/ | | | | | | | | * before you could request an avatar for User instead of user which sets up the filesystem for that user twice causing the sharing codes collision detection to detect a lot of collisions Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #1558 from nextcloud/remove-notifications-upon-user-deletionMorris Jobke2016-09-301-3/+7
|\ | | | | Remove notifications upon user deletion
| * Only trigger postDelete hooks when the user was deleted...Joas Schilling2016-09-291-3/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Remove notifications upon user deletionJoas Schilling2016-09-291-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Do not break the output when running _completionJoas Schilling2016-09-291-5/+9
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #1549 from nextcloud/kill-update-simulationMorris Jobke2016-09-283-114/+37
|\ | | | | Kill update simulation
| * Kill update simulationVincent Petry2016-09-273-114/+37
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #1521 from nextcloud/fix-mimetypedetect-hiddenfolderLukas Reschke2016-09-271-2/+4
|\ \ | |/ |/| Fix mimetype detection inside hidden folders (#26138)
| * Fix mimetype detection inside hidden folders (#26138)Vincent Petry2016-09-261-2/+4
| | | | | | | | | | | | Downstreaming of https://github.com/owncloud/core/pull/26138 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Use the same URL everywhereJoas Schilling2016-09-271-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Return the autoupdater value from the serverJoas Schilling2016-09-271-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #1489 from nextcloud/fix-status-code-when-app-is-disabledMorris Jobke2016-09-271-1/+1
|\ \ | | | | | | Return 404 on v2.php when the app is disabled
| * | Return 404 on v2.php when the app is disabledJoas Schilling2016-09-221-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #1516 from nextcloud/fix-openbasedir-realpath-warningMorris Jobke2016-09-271-1/+6
|\ \ \ | | | | | | | | Only use realpath for real directories (#26058)
| * | | Only use realpath for real directories (#26058)Vincent Petry2016-09-261-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cross-local-storage use cases, the Local storage is instantiated with "/" as data directory. In such cases, calling realpath() would cause PHP warnings when open_basedir is set. This fix bypasses the realpath() call when dealing with a root storage. Downstreaming of https://github.com/owncloud/core/pull/26058 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | | Merge pull request #1499 from nextcloud/updaterLukas Reschke2016-09-262-0/+82
|\ \ \ \ | | | | | | | | | | Add repair step and revert "Open updater" button
| * | | | Add repair step to remove .step file after updateMorris Jobke2016-09-232-0/+82
| |/ / / | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>