summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Deduplicate version expire jobsMorris Jobke2015-12-101-21/+8
| | | | | | * versionSize is calculated anyway in the expire job - > dropped * offset/neededSpace was needed for expiry before the file is moved to the versions -> now this is included already in the currently used space because the expiry job is defered to a point in time after the version creation * fixes #21108
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-071-1/+1
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Update license headersLukas Reschke2015-10-261-1/+1
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-2/+12
| | | | | | | | | | Currently the `getPath` methods returned `NULL` in case when a file with the specified ID does not exist. This however mandates that developers are checking for the `NULL` case and if they do not the door for bugs with all kind of impact is widely opened. This is especially harmful if used in context with Views where the final result is limited based on the result of `getPath`, if `getPath` returns `NULL` PHP type juggles this to an empty string resulting in all possible kind of bugs. While one could argue that this is a misusage of the API the fact is that it is very often misused and an exception will trigger an immediate stop of execution as well as log this behaviour and show a pretty error page. I also adjusted some usages where I believe that we need to catch these errors, in most cases this is though simply an error that should hard-fail.
* handle versions expire for home storages with unlimited quotaRobin Appelman2015-10-161-8/+12
|
* Fix preserving file ids when restoring a file with object storageRobin Appelman2015-10-161-1/+14
|
* Merge pull request #19595 from owncloud/fix-versions-log-entryThomas Müller2015-10-061-1/+1
|\ | | | | Reset to auto if not set
| * Reset to auto if not setVictor Dubiniuk2015-10-051-1/+1
| |
* | update licence headers via scriptMorris Jobke2015-10-052-0/+2
|/
* Lock files when rolling back versionRobin Appelman2015-10-021-0/+9
|
* delete cached preview when rolling back file's versionGeorg Ehrke2015-09-201-0/+3
| | | | | | | | add random number using OC.parseQueryString and _.extend() version rollback: add missing prefix to OC\Preview::post_delete add test to assure that the rollback hook is called
* Correct method title. Add docblockVictor Dubiniuk2015-09-162-2/+6
|
* Postrebase cleanupVictor Dubiniuk2015-09-151-11/+3
|
* Add expiration for versions older than maxVictor Dubiniuk2015-09-153-0/+147
|
* Add method docblockVictor Dubiniuk2015-09-151-0/+4
|
* Namespacing, reusingVictor Dubiniuk2015-09-151-2/+7
|
* ImprovementsVictor Dubiniuk2015-09-152-14/+42
|
* Add quota status to expiration checkVictor Dubiniuk2015-09-151-10/+10
|
* Add versions obligationVictor Dubiniuk2015-09-152-4/+198
|
* Add versions tab to files sidebarVincent Petry2015-09-031-0/+12
| | | | | | | - move versions to a tab in the files sidebar - added mechanism to auto-update the row in the FileList whenever values are set to the FileInfoModel given to the sidebar - updated tags/favorite action to make use of that new mechanism
* Moved core apps to the capabilities managerRoeland Jago Douma2015-08-101-10/+15
| | | | | | | * Files * Files_Sharing * Files_Trashbin * Files_Versions
* update license headers and authorsMorris Jobke2015-06-251-0/+1
|
* Abort expiration when file is goneVincent Petry2015-05-291-1/+5
| | | | | | | Sometimes a background job for versions expiration was scheduled for a file that has been moved or deleted since. This prevents showing useless warnings in the log and simply bail out.
* Use owner when expiring versions, not the logged in userVincent Petry2015-05-131-8/+11
|
* Merge pull request #15881 from owncloud/share-moveversionsproperlyVincent Petry2015-05-111-18/+41
|\ | | | | Fix version rename with files and folders
| * Fix version rename with files and foldersVincent Petry2015-04-271-18/+41
| | | | | | | | | | - fix moving folder into another folder - fix moving file or folder into shared folder as recipient
* | Do not run method when the path is emptyJoas Schilling2015-05-071-0/+3
| |
* | Use moveFromStorage instead of streamCopy when restoring versionVincent Petry2015-04-301-14/+1
| |
* | Fix version rollback to keep fileidVincent Petry2015-04-301-4/+38
|/
* kill OC_FileProxy :boom:Thomas Müller2015-04-071-14/+0
|
* Merge pull request #15129 from owncloud/version-command-busLukas Reschke2015-03-261-5/+22
|\ | | | | expire versions in a background command