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
The versions and trashbin app are now passing "includeMountPoints=false"
to "getFileInfo()" to make sure that the calculated total size doesn't
include mount points like Shared or external storage.
This is because the default call (legacy) used to return the size of
mount points as well.
Fixes #6731
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
Squashed commit of the following:
commit 0dc404a557
Author: Björn Schießle <schiessle@owncloud.com>
Date: Thu Jul 25 10:26:48 2013 +0200
fix 'more versions' button for IE8
commit 5836e65285
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 16:56:46 2013 +0200
clean-up some unused code
commit ac83e53fa2
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 16:49:03 2013 +0200
fix order of the versions, newest version should come first
commit f150a88843
Merge: bc713c7 b8e399b
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 16:19:36 2013 +0200
Merge branch 'new_versions_dropdown' of github.com:owncloud/core into new_versions_dropdown
commit bc713c7b0c
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 16:11:07 2013 +0200
fix position of more versions button
commit b8e399b175
Merge: 24825b0 7b6e39d
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 16:04:08 2013 +0200
Merge branch 'new_versions_dropdown' of github.com:owncloud/core into new_versions_dropdown
commit 24825b0200
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 16:02:53 2013 +0200
umark previous row if a new row gets selected
commit 7b6e39d293
Merge: 5bfb0ac 7b54644
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 15:37:19 2013 +0200
Merge branch 'new_versions_dropdown' of github.com:owncloud/core into new_versions_dropdown
commit 5bfb0ac5c1
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 15:37:09 2013 +0200
more style adjustments for version dropdown
commit 7b54644d30
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 15:12:53 2013 +0200
remove debug output
commit a75662bcfd
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 15:12:26 2013 +0200
reword Revert to Restore
commit e784644dae
Merge: d07abfd 9978c96
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 15:00:11 2013 +0200
Merge branch 'new_versions_dropdown' of github.com:owncloud/core into new_versions_dropdown
commit d07abfdbb4
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 14:59:17 2013 +0200
if another drop-down is already open, always close it first
commit 9978c967a6
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 14:49:47 2013 +0200
more style improvements for versions
commit a13355f16e
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 14:44:13 2013 +0200
position fixes for versioning
commit 02c1d6b5ea
Merge: c5a9462 203f544
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 14:31:16 2013 +0200
merge versions style changes
commit c5a946231a
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 14:29:56 2013 +0200
bigger clickable area for versions
commit 203f544825
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 14:15:38 2013 +0200
changes visual changes, as suggested by Jan
commit 90b1e93676
Author: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed Jul 24 14:12:23 2013 +0200
remove superfluous selector from ID
commit 9768254fe3
Merge: c961278 b91c682
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 12:28:06 2013 +0200
Merge branch 'master' into new_versions_dropdown
commit c9612781e1
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 11:05:25 2013 +0200
replace modal dialog with a OC.Notification
commit 3dc7508a4c
Author: Björn Schießle <schiessle@owncloud.com>
Date: Wed Jul 24 10:33:05 2013 +0200
use image path without extension for proper svg to png fallback
commit 23ea7ad46c
Author: Björn Schießle <schiessle@owncloud.com>
Date: Tue Jul 23 17:53:58 2013 +0200
some css fixes
commit 8d01499ae1
Author: Björn Schießle <schiessle@owncloud.com>
Date: Tue Jul 23 17:40:16 2013 +0200
small fixes and improvements according to @Kondou-ger comments
commit 985b6461e8
Author: Björn Schießle <schiessle@owncloud.com>
Date: Tue Jul 23 15:58:19 2013 +0200
replace == with ===
commit bc8fc3b4a6
Merge: c1da183 a94c55b
Author: Björn Schießle <schiessle@owncloud.com>
Date: Tue Jul 23 13:55:45 2013 +0200
Merge branch 'master' into new_versions_dropdown
commit c1da183d13
Author: Björn Schießle <schiessle@owncloud.com>
Date: Tue Jul 23 13:53:37 2013 +0200
translate timestamps into strings like "X minutes ago" for the versions drop-down
commit c78d2b4bfb
Author: Björn Schießle <schiessle@owncloud.com>
Date: Tue Jul 23 12:52:44 2013 +0200
download versions directly from the versions drop-down
commit 14aaf99076
Author: Björn Schießle <schiessle@owncloud.com>
Date: Tue Jul 23 11:01:21 2013 +0200
only show 'more versions' button of necessary
commit a0d8cb46b2
Author: Björn Schießle <schiessle@owncloud.com>
Date: Mon Jul 22 17:49:17 2013 +0200
remove unneeded code
commit 47eec0679c
Author: Björn Schießle <schiessle@owncloud.com>
Date: Mon Jul 22 17:44:58 2013 +0200
add title for revert and download action
commit df87ccb243
Author: Björn Schießle <schiessle@owncloud.com>
Date: Mon Jul 22 17:36:40 2013 +0200
add download button to versions drop-down
commit 622c87ec37
Author: Björn Schießle <schiessle@owncloud.com>
Date: Mon Jul 22 17:36:08 2013 +0200
adapt css file for the new versions drop-down
commit 300699024f
Author: Björn Schießle <schiessle@owncloud.com>
Date: Fri Jun 7 17:28:34 2013 +0200
revert on click
commit 6673ae6ed4
Author: Björn Schießle <schiessle@owncloud.com>
Date: Fri Jun 7 16:50:08 2013 +0200
new versions list, show the latest 5 with a button to retrieve more versions if needed
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