summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'stable9' into local-invalid-9C. Montero Luque2016-04-261-0/+24
|\
| * triger the propagator from the command line scannerRobin Appelman2016-04-251-0/+24
| |
* | add testsRobin Appelman2016-04-261-0/+14
|/
* Throw NoUserException when attempting to init mount point for null userVincent Petry2016-04-221-0/+22
| | | | | | | In some scenarios initMountPoints is called with an empty user, and also there is no user in the session. In such cases, it is unsafe to let the code move on with an empty user.
* Merge pull request #24131 from ↵Thomas Müller2016-04-222-5/+6
|\ | | | | | | | | owncloud/dont-transfer-files-to-not-ready-user-stable9 [9.0] Introduce isReadyForUser and verify in file transfer ownership
| * Introduce isReadyForUser and verify in file transfer ownership - fixes #23786Thomas Müller2016-04-202-5/+6
| |
* | When the scanner detects a file is changed clear checksumRoeland Jago Douma2016-04-201-0/+20
|/ | | | | | | | | Fixes #23782 and #23783 If the file scanner detects a changed file we clear the checksum while we update the cache. * Unit test added
* Merge pull request #23709 from ↵Thomas Müller2016-04-011-5/+19
|\ | | | | | | | | owncloud/stable9-make-sure-that-encrypted-version-is-set [stable9] Make sure that the encrypted version is set
| * Make sure that the encrypted version is setLukas Reschke2016-03-311-5/+19
| | | | | | | | | | | | | | | | The code path called when using external storage with WebDAV is using `\OC\Files\Storage\Wrapper\Encryption::getMetaData` which did not contain the actual encrypted version inside the cache entry version. This lead to the following: 1. User uploaded a file 2. File is created and `\OC\Files\Storage\Wrapper\Encryption::getMetaData` is called. It has an empty `encryptedVersion` but sets `encrypted` to either `true` or `false`. 3. The call when updating the file cache will use the old version.
* | fix creation of versions of encrypted files on external storagesBjoern Schiessle2016-03-312-14/+37
|/ | | | | | in order to create a 1:1 copy of a file if a version gets created we need to store this information on copyBetweenStorage(). This allows us to by-pass the encryption wrapper if we read the source file.
* properly use fileinfo objectsRobin Appelman2016-03-231-18/+63
|
* pass the fileinfo to the node if availableRobin Appelman2016-03-232-15/+8
|
* Ensure that stored version is at least 1 for cross-storage copyLukas Reschke2016-03-161-0/+42
| | | | | | | | | In case of a move operation from an unencrypted to an encrypted storage the old encrypted version would stay with "0" while the correct value would be "1". Thus we manually set the value to "1" for those cases. See also https://github.com/owncloud/core/issues/23078
* Keep "encryptedVersion" when calling `\OC\Files\View::copy`Lukas Reschke2016-03-031-6/+21
| | | | | | | | | | | | | | | | 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.
* recalculate unencrypted size if we assume that the size stored in the db is ↵Bjoern Schiessle2016-02-231-1/+157
| | | | not correct
* fix getNodeForPath for non existing part filesRobin Appelman2016-02-111-0/+6
|
* fixing unit testsBjörn Schießle2016-02-091-0/+1
|
* remove unused Storage->getLocalFolderRobin Appelman2016-02-052-15/+0
|
* Merge pull request #21956 from owncloud/cross-cache-moveThomas Müller2016-01-292-2/+33
|\ | | | | Add fallback moveFromCache implementation
| * Add fallback moveFromCache implementationRobin Appelman2016-01-292-2/+33
| |
* | Fix failing oracle and postgres testsJoas Schilling2016-01-271-2/+2
| |
* | add IUserMountCache->getMountsForFileIdRobin Appelman2016-01-271-7/+125
|/
* multiple minor fiesRobin Appelman2016-01-201-11/+1
|
* sort in testsRobin Appelman2016-01-201-1/+18
|
* log duplicatesRobin Appelman2016-01-201-1/+2
|
* cache mountpoints in the dbRobin Appelman2016-01-201-0/+249
|
* fix quota wrapperRobin Appelman2016-01-141-1/+3
|
* fix testsRobin Appelman2016-01-142-2/+4
|
* Merge pull request #21216 from owncloud/fopen-statcacheThomas Müller2015-12-281-0/+13
|\ | | | | Clear SMB statcache after fopen
| * test for statcache after fopenRobin Appelman2015-12-151-0/+13
| |
* | Use TempManager instead of tmpFileMorris Jobke2015-12-181-1/+1
| |
* | Use TempManager instead of tmpFolderMorris Jobke2015-12-189-10/+10
| |
* | Removed deprecated function OC_User::deleteUserRoeland Jago Douma2015-12-175-10/+22
| | | | | | | | Replaced with proper OCP calls
* | Removed deprecated private OC_User::createUserRoeland Jago Douma2015-12-175-9/+9
|/ | | | | All function calls are replaced with the recommended (which was already the body of the function).
* Fix more unit tests to pass a mock storage instead of null to FileInfoVincent Petry2015-12-083-3/+27
|
* Merge pull request #20904 from owncloud/view-mime-filterThomas Müller2015-12-071-0/+35
|\ | | | | Fix mimetype filter in getDirectoryContent
| * Fix mimetype filter in getDirectoryContentRobin Appelman2015-12-031-0/+35
| |
* | last change of OC_Config to the proper interface in tests/Morris Jobke2015-12-031-3/+4
| |
* | Reduce OC_Config usage in tests/Morris Jobke2015-12-031-5/+5
| |
* | Replace OC_Config in tests with IConfig callsMorris Jobke2015-12-031-3/+4
| |
* | Also add metadata for postDelete hooks triggered from the viewRobin Appelman2015-12-021-1/+21
|/
* Merge pull request #20875 from owncloud/remove-changepropagatorThomas Müller2015-12-022-198/+0
|\ | | | | remove old propagation logic
| * remove old propagation logicRobin Appelman2015-12-012-198/+0
| |
* | Add metadata to post delete hooksRobin Appelman2015-12-012-1/+4
|/
* More group DBThomas Müller2015-11-301-0/+7
|
* Adding more DB groups to test suitsThomas Müller2015-11-309-0/+63
| | | | Adding more DB groups to test suits
* Further unit test suite tweatsThomas Müller2015-11-301-0/+79
|
* Apply DB group annotation ...Thomas Müller2015-11-3013-0/+91
|
* Skip unavailable storages in scannerRobin Appelman2015-11-272-6/+6
|
* Make Cache\Updater per storageRobin Appelman2015-11-251-30/+11
|