summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
Commit message (Collapse)AuthorAgeFilesLines
* Move Test\Files\Storage\Wrapper\EncodingTest to PSR-4Joas Schilling2016-05-251-203/+0
|
* Merge pull request #24349 from owncloud/nfd-storagewrapperVincent Petry2016-05-231-0/+203
|\ | | | | Add wrapper for NFD encoding workaround
| * Fixes for encoding wrapperVincent Petry2016-05-201-0/+49
| | | | | | | | | | | | Improved label Fixed rename/copy/moveFromStorage/copyFromStorage and added tests Improved findPathToUse algo
| * Add wrapper for NFD encoding workaroundVincent Petry2016-05-201-0/+154
| |
* | Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-2045-12279/+0
|/ | | | | | | | | | | | | | | | | | | | * Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
* Fix deprecated private methodJoas Schilling2016-05-191-2/+2
|
* Fix namespaces and class names in tests/lib/files/Joas Schilling2016-05-198-13/+13
|
* Prevent concurrent availability checksRobin McCorkell2016-04-261-2/+5
|
* Merge pull request #24246 from owncloud/local-invalidLukas Reschke2016-04-261-0/+14
|\ | | | | error out if a local storage isn't setup correctly
| * add testsRobin Appelman2016-04-261-0/+14
| |
* | triger the propagator from the command line scannerRobin Appelman2016-04-251-0/+24
|/
* Mark $usersSetup only if user was found in initMountPointsVincent Petry2016-04-221-0/+22
| | | | | | | | | | initMountPoints is marking a user as successfully initialized too early. If the user was not found an NoUserException was thrown, the second time initMountPoints is called would not rethrow the exception and happily continue. This fix makes sure that we consistently throw NoUserException when initMountPoints is called repeatedly with invalid users.
* 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 #24098 from owncloud/fix_23782Thomas Müller2016-04-201-0/+20
|\ | | | | When calling file_put_contents clear the checksum
| * When the scanner detects a file is changed clear checksumRoeland Jago Douma2016-04-191-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
* | Introduce isReadyForUser and verify in file transfer ownership - fixes #23786Thomas Müller2016-04-152-5/+6
|/
* tests: Fix typos (found by codespell)Stefan Weil2016-04-061-2/+2
| | | | | | Fix also a small grammar issue. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Merge pull request #23707 from owncloud/make-sure-that-encrypted-version-is-setFrank Karlitschek2016-03-311-5/+19
|\ | | | | 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-211-18/+63
|
* pass the fileinfo to the node if availableRobin Appelman2016-03-212-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
| |