314 Commits (84619a5b9c58ec7f4e3d7faea8c60a187cb61243)

Author SHA1 Message Date
Bjoern Schiessle 9efd07fbab isolate getExpireList function to make it testable 12 years ago
Thomas Müller 37e278f2a9 don't use the user id within the versions preview call as it could be used to access previews of another user 12 years ago
Vincent Petry ca57a849ff When reading the size of "files" mountpoints need to be excluded 12 years ago
Bjoern Schiessle 76fa7bab63 call getFileInfo to enforce a file cache entry for the new version, fix #6286 12 years ago
Bjoern Schiessle 348706854c use better coding style 12 years ago
Bjoern Schiessle eaedda2116 make sure that we don't try to access an already deleted files, fixes some file source not found warnings 12 years ago
Bjoern Schiessle f8fcd567a7 move files to owners trash 12 years ago
Bjoern Schiessle acf74b24f2 remove unused variable 12 years ago
Bjoern Schiessle c309067c81 use oc filesystem operations to calc the versions size. This makes sure that we can handle missing directories correctly 12 years ago
Georg Ehrke 238e4bc3eb implement delete hooks in file versions lib 12 years ago
Bjoern Schiessle a0de5dd325 some small fixes 12 years ago
Bjoern Schiessle f4e86045de make files versions root a class constant 12 years ago
Bjoern Schiessle 87cccb2e32 some small changes/fixes 12 years ago
Bjoern Schiessle 4c2e3919de make previews work for shared files in the versions drop-down 12 years ago
Bjoern Schiessle 92009c5d8e fix getVersions() for sub directories 12 years ago
Bjoern Schiessle bb3b38947d add missing preview link 12 years ago
Bjoern Schiessle e56947255e don't use glob() and getLocalFile(), this can lead to problems on windows servers 12 years ago
Bjoern Schiessle eb1216f949 add previews to versions dialog 12 years ago
kondou 9e8a6b704d Add _many_ newlines at the end of files 12 years ago
Bjoern Schiessle f28f528431 switched to dirname() 12 years ago
Bjoern Schiessle db8fdd5032 added missing parameter documentation 12 years ago
Bjoern Schiessle f71794f0d5 added createMissingDirectories() method 12 years ago
Bjoern Schiessle 16efd81a0e first check if file exists before checking the files size 12 years ago
Bjoern Schiessle a3d009e3b5 also create root dir if it doesn't exist yet 12 years ago
Bjoern Schiessle d314729cea use OC files API to create missing directory which should handle special chars in every environment correctly 12 years ago
Bjoern Schiessle 853b106bb2 don't create empty versions 12 years ago
Bjoern Schiessle 22b8967031 check if app is enabled 12 years ago
Björn Schießle 9394fc5d4a new version drop down 12 years ago
Björn Schießle b16c5a6df7 fix array access and change variable names according to the coding style 13 years ago
Björn Schießle 15f7bb296c continue cleaning-up old versions if availableSpace=0. It's not necessary but gives us some additional free space, especially in the case of a hard quota 13 years ago
Björn Schießle fbf34f3bf6 fix some var names according to our style guide 13 years ago
Björn Schießle 2f0d88cae4 adjust comments 13 years ago
Björn Schießle e7959d3da0 fix typo in comment 13 years ago
Björn Schießle e8760d7284 also expire versions on rename, to update the history more regularly 13 years ago
Björn Schießle d6c1e5490d it is enough to call the expire function once 13 years ago
Björn Schießle e159143165 call expire function before writing the new version to make sure to have enough free space 13 years ago
Björn Schießle efb026c664 don't normalize absolute local path 13 years ago
Björn Schießle f91b02e9b6 only escape glob pattern 13 years ago
Florin Peter b3834b49c3 prevent files_versions from calling file proxy which calls files_encryption and do unnecessary load and file operations 13 years ago
Björn Schießle bda8187f3b rename a file if it gets restored so that it no longer exists as a version. Otherwise it can happen that the expire() function removes all other versions so that we end up with only one version which is exactly the same as the original file 13 years ago
Björn Schießle b9134dcd6a touch file relative to users file folder, otherwise the hooks will be ignored 13 years ago
Björn Schießle ddde1b65db adapt free space calculation to the way it is done for the trash bin 13 years ago
Björn Schießle 544a46c690 remove used space for versions from db is a user was deleted 13 years ago
Björn Schießle 5924d1d95c add backticks around table names 13 years ago
Björn Schießle 418fb98c40 remove backticks around table names 13 years ago
Björn Schießle e37e884d7a add backtick for db queries to prevent postgresql errors 13 years ago
Björn Schießle f78594c0ae fix var name 13 years ago
Björn Schießle 93b2ada6f6 fix var name 13 years ago
Björn Schießle 0cf50d63bf create new version if the same file is uploaded again over the web interface 13 years ago
Björn Schießle 8d26400cb5 remove some debug output; move code to the right function 13 years ago