aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/controller/sharecontroller.php
Commit message (Collapse)AuthorAgeFilesLines
* Move tests to PSR-4Joas Schilling2016-05-251-451/+0
|
* Fix ShareControllerTest (#24824)Joas Schilling2016-05-251-1/+5
|
* move federated sharing settings to the federatedfilesharing appBjörn Schießle2016-04-221-1/+11
|
* Update author informationLukas Reschke2016-03-011-1/+0
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* add testsRobin Appelman2016-02-091-0/+49
|
* Fix unit testsRoeland Jago Douma2016-02-091-0/+2
|
* Example hook checkRoeland Jago Douma2016-02-091-5/+19
|
* Fix unit testRoeland Jago Douma2016-02-091-1/+5
|
* [Share 2.0] Fix public link sharingRoeland Jago Douma2016-02-031-18/+24
|
* [Share 2.0] Add exceptions to OCPRoeland Jago Douma2016-02-021-2/+2
|
* [Share 2.0] Fix interfaces and commentsRoeland Jago Douma2016-01-281-1/+1
| | | | | | | | * Made comments more clear * Removed unneeded methods * IShares shareTime is now a proper DateTime object * IShares getPath -> getNode & setPath -> setNode * Fix unit tests
* [Share 2.0] Move IShare to OCPRoeland Jago Douma2016-01-271-8/+8
|
* Directly get from the server containerRoeland Jago Douma2016-01-201-43/+70
| | | | * Updated unit tests
* [Share 2.0] Make link share download use share managerRoeland Jago Douma2016-01-201-18/+11
|
* [Share 2.0] Move tests over the sharemanagerRoeland Jago Douma2016-01-201-78/+166
| | | | Nice side effect... pure unit tests!
* Happy new year!Thomas Müller2016-01-121-1/+4
|
* getLowStrengthGenerator does not do anything anymoreRoeland Jago Douma2016-01-111-1/+1
|
* Removed deprecated function OC_User::deleteUserRoeland Jago Douma2015-12-171-1/+2
| | | | Replaced with proper OCP calls
* Removed deprecated private OC_User::createUserRoeland Jago Douma2015-12-171-1/+1
| | | | | All function calls are replaced with the recommended (which was already the body of the function).
* show display name but internally use the user nameBjörn Schießle2015-12-141-0/+1
|
* Adding more DB groups to test suitsThomas Müller2015-11-301-0/+2
| | | | Adding more DB groups to test suits
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-4/+2
| | | | | | | | | | 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.
* update license headers and authorsMorris Jobke2015-06-251-0/+1
|
* Disable video preview if previews are disabledMorris Jobke2015-06-091-0/+1
|
* Merge pull request #16075 from owncloud/skeleton-copy-delayVincent Petry2015-05-201-4/+1
|\ | | | | wait with copying the skeleton untill login and setupfs are done
| * fix testsRobin Appelman2015-05-181-4/+1
| |
* | Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-05-191-1/+0
|/ | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* fix mergeRobin Appelman2015-04-271-1/+1
|
* Update license headersJenkins for ownCloud2015-03-261-4/+19
|
* Properly catch whether a share is `null`Lukas Reschke2015-03-241-2/+60
| | | | | | | | | | | | | | | | | | | | | Despite it's PHPDoc the function might return `null` which was not properly catched and thus in some situations the share was resolved to the sharing users root directory. To test this perform the following steps: * Share file in owncloud 7 (7.0.4.2) * Delete the parent folder of the shared file * The share stays is in the DB and the share via the sharelink is inaccessible. (which is good) * Upgrade to owncloud 8 (8.0.2) (This step is crucial. The bug is not reproduceable without upgrading from 7 to 8. It seems like the old tokens are handled different than the newer ones) * Optional Step: Logout, Reset Browser Session, etc. * Access the share via the old share url: almost empty page, but there is a dowload button which adds a "/download" to the URL. * Upon clicking, a download.zip is downloaded which contains EVERYTHING from the owncloud directory (of the user who shared the file) * No exception is thrown and no error is logged. This will add a check whether the share is a valid one and also adds unit tests to prevent further regressions in the future. Needs to be backported to ownCloud 8. Adding a proper clean-up of the orphaned shares is out-of-scope and would probably require some kind of FK or so. Fixes https://github.com/owncloud/core/issues/15097
* Fix controller testJoas Schilling2015-03-161-0/+1
|
* Allow iframes from same domain in share viewLukas Reschke2015-03-101-0/+5
| | | | | | | | This is required because the PDF Viewer itself is embedded using an iframe from the same domain. The default policy is blocking this. Going on further, we have to come up with a solution in the future how to handle previews by applications, one example might be that they call their own endpoint and not the generic share page to allow applications to have full control over how to display previews. Anyways, to test this behaviour use a decent newer browser (such as Chrome 41) and share a PDF file, obviously the PDF viewer needs to be enabled as well. Without this patch publicly shared PDF files should not get previewed and an error is thrown. (if it isn't then your browser is probably not obeying our Content-Security-Policy and you might consider switching to another one ;))
* Revert "Updating license headers"Morris Jobke2015-02-261-17/+5
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Extend the class so the Filesystem is cleaned upJoas Schilling2015-02-251-1/+1
|
* Updating license headersJenkins for ownCloud2015-02-231-5/+17
|
* show animated gifs on public sharing pageGeorg Ehrke2015-01-191-1/+3
|
* Don't disclose relative directory path for single shared files of userLukas Reschke2014-11-181-1/+1
| | | | | | | | | The "dir" key is used within the public sharing template to indicate in which directory the user currently is when sharing a directory with subdirectories. This is needed by the JS scripts. However, when not accessing a directory then "dir" was set to the relative path of the file (from the user's home directory), meaning that for every public shared file the sharee can see the path. (For example if you share the file "foo.txt" from "finances/topsecret/" the sharee would still see the path "finances/topsecret/" from the shared HTML template) This is not the excpected behaviour and can be considered a privacy problem, this patch addresses this by setting "dir" to an empty key.
* Added download size on public sharingVincent Cloutier2014-11-141-1/+2
|
* Refactor file sharing public link handlingLukas Reschke2014-11-141-0/+170
fixes download issue introduced by #10755 Conflicts: apps/files_sharing/public.php