summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use ::class statement instead of stringMorris Jobke2018-01-292-10/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-262-5/+5
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8053 from nextcloud/simplify-substrJoas Schilling2018-01-261-1/+1
|\ | | | | Use short for of substr to not need strlen()
| * Use short for of substr to not need strlen()Morris Jobke2018-01-251-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use $var[] = $a instead of array_push - 2x fasterMorris Jobke2018-01-251-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-2/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded check if app is enabledMorris Jobke2017-10-231-44/+28
| | | | | | App code will not be executable if the app is not enabled, because the autoloader refuses to load that class. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to disable versions for some filesBjoern Schiessle2017-09-152-0/+93
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove undocumented configJoas Schilling2017-08-011-77/+73
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix versions appJoas Schilling2017-08-011-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix comparisons in the versions appJoas Schilling2017-08-012-12/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use IConfig instead of static OCP\ConfigMorris Jobke2017-07-271-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Handle more error casesMorris Jobke2017-05-021-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge JS for files_versionsLukas Reschke2017-03-241-4/+1
| | | | | | Shaves off 3 requests. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Properly expire ext storage versions (#26601)Vincent Petry2017-03-102-9/+16
| | | | | | | | | | | | | | | | | | * Properly expire ext storage versions System-wide external storages have no real owner so the current user is used as owner. However when running cron.php there is no current user, so no expiry can be done. This fix adds an user argument to the expire() function to tell for which user to expire files. This information is anyway always available now through the expire command job. * Move version expire setupFS into the expire function * Add comment about not tearing down in version Storage::expire() Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Show mimeicon when versions don't have a previewRoeland Jago Douma2016-11-291-0/+1
| | | | | | Fixes #2413 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* More testsRoeland Jago Douma2016-11-031-13/+1
| | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Moved over files_versionsRoeland Jago Douma2016-11-032-1/+112
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-282-4/+4
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Add occ command to expire the trashbin (#25878)Thomas Müller2016-08-291-0/+125
| | | | | | * Add occ command to expire the trashbin * Fix versions folder in setup check
* Skip version and trash expiry for users that never logged inJörn Friedrich Dreyer2016-08-101-1/+1
|
* Update with robinJoas Schilling2016-07-213-3/+3
|
* Fix apps/Joas Schilling2016-07-218-13/+23
|
* Merge branch 'master' into sync-masterMorris Jobke2016-07-071-8/+12
|\
| * we don't need to check permissions twiceBjoern Schiessle2016-07-041-4/+2
| |
| * Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-07-011-0/+8
| |\
| * | check permissions before rollbackBjoern Schiessle2016-06-301-5/+11
| | |
* | | Upgrading the log level From Debug to INFO to be consistent with ↵Carlos Damken2016-07-061-3/+3
| |/ |/| | | | | files_trashbin (#25367)
* | Hide revert button when no permission to revertVincent Petry2016-06-281-0/+8
|/
* Rollback version must also adjust cached sizeVincent Petry2016-06-221-1/+8
|
* Construct path to the version file from the current directory and filename. ↵Victor Dubiniuk2016-06-021-4/+6
| | | | Fixes #22450
* Update license headersLukas Reschke2016-05-264-6/+6
|
* Move files_versions to PSR-4 (#24571)Joas Schilling2016-05-128-0/+227
|
* Add missing use statementJoas Schilling2016-04-251-0/+1
|
* Chunk the users correctly in the trashbin and versions background jobJoas Schilling2016-04-201-16/+12
|
* Keep "encryptedVersion" when calling `\OC\Files\View::copy`Lukas Reschke2016-03-031-10/+12
| | | | | | | | | | | | | | | | When calling `\OC\Files\View::copy` we should also keep the version to ensure that the file will always have the correct version attached and can be successfully decrypted. To test this the following steps are necessary (from https://github.com/owncloud/core/issues/22781#issuecomment-191328982): 1. setup a new ownCloud 9.0 beta2 2. enable encryption 2. upload a docx (5.7MB large) 3. upload the same file again and overwrite the existing file 4. I can download the original file and the first version 5. I restore the first version 6. restored version can no longer be downloaded with the error described above The manual cache operation in `\OCA\Files_Versions\Storage` is unfortunately necessary since `\OCA\Files_Versions\Storage::copyFileContents` is not using `\OCP\Files\Storage::moveFromStorage` in the case when an object storage is used. Due to the workaround added in https://github.com/owncloud/core/commit/54cea05271b887f1c8062c034741df869bc0f055 the stream is directly copied and thus bypassing the FS.
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Update author informationLukas Reschke2016-03-011-0/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* make sure that the file name doesn't end with a trailing slash. Can for ↵Bjoern Schiessle2016-02-191-0/+3
| | | | example happen single files shared across servers
* get the actual user instead of a federated cloud idBjoern Schiessle2016-02-181-24/+47
| | | | | | $view->getUidAndFilename($filename); returns the federated cloud id in case of a federated share. But in this case we need the local user who "owns" the file which is the current logged in user in case of a federated share
* Use cache directly instead of QBLukas Reschke2016-02-101-5/+2
| | | | In case somebody does not use oc_filecache
* Use database for keeping track of the versionLukas Reschke2016-02-091-1/+9
|
* Consolidate getQuota and setQuota methods in User instanceArthur Schiwon2016-02-091-4/+2
|
* use int values and constants instead of stringsArthur Schiwon2016-02-081-8/+12
|
* versions provide more information when throwing hooksArthur Schiwon2016-02-081-8/+9
|
* Merge pull request #21117 from owncloud/owner-file-existsThomas Müller2016-01-151-23/+15
|\ | | | | Only return an owner if the file exists + improved getUidAndFilename
| * removed unused importsRobin Appelman2016-01-111-3/+0
| |
| * improve handling of non existing files in the trashbinRobin Appelman2016-01-111-10/+15
| |
| * de-deplicate getUidAndFilenameRobin Appelman2016-01-111-12/+2
| |
* | Happy new year!Thomas Müller2016-01-125-7/+7
|/