summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Merge pull request #23675 from ↵Frank Karlitschek2016-03-316-68/+151
|\ \ | | | | | | | | | | | | owncloud/fix_encryption_versions_on_external_storages fix creation of versions of encrypted files on external storages
| * | fix creation of versions of encrypted files on external storagesBjoern Schiessle2016-03-316-68/+151
| |/ | | | | | | | | | | 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.
* | Add unit testsRoeland Jago Douma2016-03-301-0/+93
| | | | | | | | Add some unit tests for setting the internal id and the provider id
* | Add setId and setProviderID to the public interfaceRoeland Jago Douma2016-03-301-1/+1
|/ | | | | | Fixes #23337 We only allow the id to be set once!
* Merge pull request #23628 from owncloud/avatar-removeThomas Müller2016-03-301-2/+1
|\ | | | | only remove avatars from the folder we store them in
| * only remove avatars from the folder we store them inRobin Appelman2016-03-301-2/+1
| |
* | Non moveable mount points should always be UPDATE+DELETE shareableRoeland Jago Douma2016-03-301-0/+11
|/ | | | | | | | | | | | Fixes #23536 The new sharing code is much stricter in checking permissions. However for non moveable mounts the permissions UPDATE+DELETE are not reported on the mount point. This is just a quick fix. * Updated unit tests
* Merge pull request #23154 from owncloud/avatar-save-failureThomas Müller2016-03-241-1/+1
|\ | | | | dont die when we cant save the resized avatar, log instead
| * dont die when we cant save the resized avatar, log insteadRobin Appelman2016-03-111-1/+1
| |
* | Merge pull request #22506 from owncloud/node-get-from-cacheThomas Müller2016-03-232-31/+69
|\ \ | | | | | | Query the cache when checking if a node exists
| * | properly use fileinfo objectsRobin Appelman2016-03-211-18/+63
| | |
| * | pass the fileinfo to the node if availableRobin Appelman2016-03-212-15/+8
| | |
* | | Merge pull request #22895 from owncloud/cleanup_default_share_providerThomas Müller2016-03-231-99/+13
|\ \ \ | | | | | | | | Remove support for old shares in the default share provider
| * | | Remove support for old shares in the default share providerRoeland Jago Douma2016-03-231-99/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 9.0 we converted the old shares to the new shares. So for 9.1 we can savely remove the fallback code. This code was required when there was no initiator set. * Fixed unit tests
* | | | Merge pull request #23362 from owncloud/fix-l10n-for-themesThomas Müller2016-03-234-4/+28
|\ \ \ \ | |/ / / |/| | | Read available l10n files also from theme folder
| * | | Inject server root - allows proper testing and separation of concernsMorris Jobke2016-03-183-14/+13
| | | |
| * | | Read available l10n files also from theme folderMorris Jobke2016-03-172-0/+25
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | The old behaviour was that only languages could be used for an app that are already present in the apps/$app/l10n folder. If there is a themed l10n that is not present in the apps default l10n folder the language could not be used and the texts are not translated. With this change this is possible and also the l10n files are loaded even if the default l10n doesn't contain the l10n file.
* | | Block group sharing in API and in share managerRoeland Jago Douma2016-03-221-0/+30
| | | | | | | | | | | | * Fix tests
* | | Save the query when we get tags for no objectsJoas Schilling2016-03-221-1/+10
|/ /
* | 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
* | Merge pull request #23157 from owncloud/remove-share-prop-entriesThomas Müller2016-03-151-0/+51
|\ \ | | | | | | remove old share propagation entries from appconfig
| * | remove old share propagation entries from appconfigRobin Appelman2016-03-151-0/+51
| | |
* | | Merge pull request #23164 from owncloud/db-connection-precondition-fixThomas Müller2016-03-151-6/+24
|\ \ \ | | | | | | | | Prevent certain DBs throwing exceptions on same-value updates
| * | | Prevent certain DBs throwing exceptions on same-value updatesRobin McCorkell2016-03-151-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | A PreconditionNotMetException must only be thrown if explicit preconditions are specified for setValues(), not if the value is merely the same as was already in the DB.
* | | | Merge pull request #23250 from owncloud/fix-support-for-php7-in-htaccessThomas Müller2016-03-153-4/+80
|\ \ \ \ | |/ / / |/| | | Fix several .htaccess and .user.ini related problems
| * | | Add support for custom values in integrity checkerLukas Reschke2016-03-153-4/+80
| |/ /
* / / Generate a valid URL for link notificationRoeland Jago Douma2016-03-151-4/+23
|/ / | | | | | | | | | | fixes #23197 * Updated unit test
* | Fix errors in memcached implementationJoas Schilling2016-03-141-1/+8
| |
* | Explicitly check for portLukas Reschke2016-03-101-1/+9
|/ | | | | | The setup uses `\OCP\IRequest::getInsecureServerHost` which in some cases can also include a port. This makes the trusted domain check fail thus. I've decided to add this here that way because adjusting the setup would require parsing the host properly. This is not something that can be done very good in PHP. Check the following example for why `parse_url` is not our friend: https://3v4l.org/k501Z
* Merge pull request #23017 from owncloud/first-stop-the-dockersThomas Müller2016-03-101-0/+1
|\ | | | | docker containers should be stopped before being removed - refs https…
| * docker containers should be stopped before being removed - refs ↵Thomas Müller2016-03-091-0/+1
| | | | | | | | https://github.com/docker/docker/issues/18758
* | Added testsRoeland Jago Douma2016-03-071-0/+70
|/ | | | | * Unit tests for OC_Filechunking to verify the isComplete function * Intergration tests to show that shuffling chunks is all fine
* 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.
* Merge pull request #22742 from owncloud/ceph-keystone-readinessC. Montero Luque2016-03-013-290/+14
|\ | | | | Use readiness notification socket to be absolutely sure this works
| * local entrypoint.sh isn't needed - all fixes are upstreamMorris Jobke2016-03-012-276/+1
| |
| * Use sockets for startup notification in primary storage testsMorris Jobke2016-03-012-14/+13
| |
* | Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_*Joas Schilling2016-02-294-5/+7
|/
* Merge pull request #22683 from owncloud/fix_22682Thomas Müller2016-02-291-0/+11
|\ | | | | Relax rootfolder check
| * Relax rootfolder checkRoeland Jago Douma2016-02-261-0/+11
| | | | | | | | | | * Updated unit tests * Added intergration test
* | Expiration date can only be enforced if default is enabledRoeland Jago Douma2016-02-261-0/+15
|/ | | | | | If the default expiration date is not enebaled it can not be enforced. * Added unit tests
* Merge pull request #22660 from owncloud/fix_22656Thomas Müller2016-02-261-0/+29
|\ | | | | Do not allow sharing of the users root folder
| * Do not allow sharing of the root folderRoeland Jago Douma2016-02-251-0/+29
| | | | | | | | | | | | | | | | | | | | | | Sharing of the users root folder should not be allowed as it is very weird UX. Also many of our clients have no proper way of displaying this. Added unit test Also added intergration tests to make sure we won't allow it in the future.
* | Merge pull request #22646 from owncloud/fix_22642Thomas Müller2016-02-261-6/+27
|\ \ | | | | | | Set default expiration date if none given on share creation
| * | Set default expiration date if none given on share creationRoeland Jago Douma2016-02-251-6/+27
| | | | | | | | | | | | | | | | | | | | | When we create a share for the first time we should set the default expiration date. If none is given. Fixes #22642
* | | Merge pull request #22650 from owncloud/fix_hookThomas Müller2016-02-261-2/+3
|\ \ \ | | | | | | | | Fix verifyExpirationDate passwordSet argument
| * | | Fix verifyExpirationDate passwordSet argumentRoeland Jago Douma2016-02-251-2/+3
| |/ / | | | | | | | | | | | | | | | Password set should be false if the password is null. Also updated the unit tests to tests this now.
* | / Fix formatting of responseLukas Reschke2016-02-251-52/+58
| |/ |/| | | | | The elements are expected to be within a `service` array as per specification.
* | Merge pull request #22579 from owncloud/fix_broken_unencrypted_sizeThomas Müller2016-02-251-1/+157
|\ \ | |/ |/| Heal unencrypted file sizes at download time (second approach)