Joas Schilling
246bb9f33d
Move OC\Files\Storage\Shared to the right namespace
10 years ago
Roeland Jago Douma
798dd40139
Fix getMock files_versions
10 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
Vincent Petry
f22af90c09
Hide revert button when no permission to revert
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Joas Schilling
b57f3126eb
Move files_versions to PSR-4 ( #24571 )
10 years ago
Roeland Jago Douma
92abb5f23d
Fix tests
10 years ago
Stefan Weil
16df1c5188
apps: Fix typos (found by codespell) ( #23862 )
Signed-off-by: Stefan Weil <sw@weilnetz.de>
10 years ago
Robin Appelman
d0dd76bb8a
set watch policy in test
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Arthur Schiwon
b6e03fe261
versions provide more information when throwing hooks
10 years ago
Robin Appelman
1369f2c684
cleanup shared cache
10 years ago
Robin Appelman
5d0451b848
Safe teardowns
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Roeland Jago Douma
1f715289bf
Removed deprecated function OC_User::deleteUser
Replaced with proper OCP calls
10 years ago
Thomas Müller
757aa45db7
Adding more DB groups to test suits
Adding more DB groups to test suits
10 years ago
Robin Appelman
a95d4c2b22
update tests
10 years ago
Lukas Reschke
13e817e901
Throw exception on `getPath` if file does not exist
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.
11 years ago
Robin Appelman
d749b9a5ac
Fix rename shared versions test
11 years ago
Morris Jobke
b945d71384
update licence headers via script
11 years ago
Lukas Reschke
36ce254ffd
Move dummy backend to Tests namespace
11 years ago
Georg Ehrke
b3ff773bbf
delete cached preview when rolling back file's version
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
11 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Vincent Petry
9a6d253af3
Abort expiration when file is gone
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.
11 years ago
Robin Appelman
724f88d9ff
fix tests
11 years ago
Vincent Petry
f8a4cc0284
Added unit tests for versions storing
11 years ago
Joas Schilling
2b092f2e93
Add a test for getting the versions of an empty path
11 years ago
Vincent Petry
2228faaa39
Fix version rollback to keep fileid
11 years ago
Robin Appelman
be55a90323
dont use our now non existing hook
11 years ago
Vincent Petry
63e2a4a5fa
Fix version rename with files and folders
- fix moving folder into another folder
- fix moving file or folder into shared folder as recipient
11 years ago
Bjoern Schiessle
9a7fbbbc5a
fix versions tests
11 years ago
Robin Appelman
176fba83ea
Setup the filesystem in the expire command
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Joas Schilling
694003d147
Autoload lib files of versions app
11 years ago
Joas Schilling
2c39aec8cb
Replace deprecated constant with new class constant
11 years ago
Joas Schilling
76ebd3a050
Make apps/ extend the \Test\TestCase and fix overwritten methods
11 years ago
Joas Schilling
bb540722cd
Use base class to reset the file mapper
11 years ago
Bjoern Schiessle
ebe1d3df0a
don't move versions if only the mount point was renamed
12 years ago
Thomas Müller
f776bcd4a0
remove unnecessary require calls - the ownCloud class loader is supposed to take care of this
12 years ago
Bjoern Schiessle
9d1be0bbaf
get the source path and owner in a pre hook and the target path and owner in a
post hook
12 years ago
Bjoern Schiessle
785ae5dc9a
add unit test to make sure getVersions returns the correct result
12 years ago
Bjoern Schiessle
1a797f90bb
add unit test for rename and copy operation
12 years ago
Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
12 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
12 years ago
Bjoern Schiessle
a567f74d86
fix array order
12 years ago
Bjoern Schiessle
85269641db
add first unit test for the versioning app
12 years ago