summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
Commit message (Collapse)AuthorAgeFilesLines
* filelist only refreshed if directory changesnoveens2017-03-021-0/+18
| | | | | | | | | | | | | | | | check introduced at another method comment added to explain one check comment added to explain one check unit tests added small fixes in unit tests missing semicolon added Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix app name of files appMorris Jobke2017-02-141-6/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add tests for getUser()Joas Schilling2017-02-071-0/+71
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add tests for getFile()Joas Schilling2017-02-071-0/+137
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Style modifications of favorite star on main detail view (#26658)Michael Jobst2016-12-191-10/+10
| | | | | | | | | | | | * Style modifications of favorite star on main detail view * Removed unused opacity change on mouse over * favorite star title fixed * favorite star opacity should always be .7 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add tests for favorite actionJoas Schilling2016-12-041-8/+55
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add some generic testsJoas Schilling2016-12-042-0/+244
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Catch status code 400Lukas Reschke2016-12-011-0/+5
| | | | | | In case the server returns a statuscode 400 we should also gracefully return to the home directory. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #2123 from nextcloud/downstream-26522Joas Schilling2016-11-161-0/+28
|\ | | | | Skip hidden files when counting visible files in list
| * Skip hidden files when counting visible files in list (#26522)Vincent Petry2016-11-141-0/+28
| | | | | | | | | | | | The file list UI logic that renders the next page doesn't properly exclude hidden files when not shown. This fix makes sure that only rows that are actually visible are counted when rendering a page, this makes sure that the page will always have enough elements displayed.
* | Remove the old activity extensionJoas Schilling2016-11-161-367/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Move the favorites filter to IFilterJoas Schilling2016-11-161-7/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Introduce an event for first time login based on the last login time stampThomas Müller2016-11-141-3/+5
|/ | | | | | | | | | | | Use firstLogin event to trigger creation of default calendar and default address book Delay login of admin user after setup so that firstLogin event can properly be processed for the admin Fixing tests ... Skeleton files are not copied over -> only 3 cache entries are remaining Use updateLastLoginTimestamp to properly setup lastLogin value for a test user
* Merge pull request #1741 from nextcloud/new_previewLukas Reschke2016-11-031-13/+32
|\ | | | | Improve previews
| * Added genertor helper & testsRoeland Jago Douma2016-11-031-13/+32
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #1908 from nextcloud/downstream-26078Morris Jobke2016-11-031-4/+57
|\ \ | |/ |/| Upload autorename on client side
| * Upload autorename on client sideVincent Petry2016-11-021-4/+57
| | | | | | | | | | | | | | | | | | | | | | Removes the need for POST to collection which would hit against upload limits. The client tries to auto rename the file by adding a suffix "(2)". It tries to use the file list on the client side to guess a suitable name. In case a file still cannot be uploaded and creates a conflict, which can happen when the file was concurrently uploaded, the logic will continue increasing the suffix.
* | Merge pull request #1978 from nextcloud/remove-send-mail-optionMorris Jobke2016-11-021-2/+0
|\ \ | |/ |/| Remove send mail option
| * remove 'send mail notification' option from sharing, replaced by ↵Bjoern Schiessle2016-11-021-2/+0
| | | | | | | | | | | | send-by-mail feature Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Remove upload_limit in files app as it is not needed with PUT upload (#26069)Vincent Petry2016-11-021-14/+0
|/ | | | | | | The web UI now uses for PUT uploads which aren't restricted by PHP's upload_max_filesize and post_max_size Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix more testsRoeland Jago Douma2016-10-282-15/+13
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Highlight files and update storage stats at end of upload (#26164)Vincent Petry2016-10-251-4/+13
| | | | | Properly trigger the "stop" even from the uploader. Also update storage stats at the end of all uploads instead of for each upload.
* Merge pull request #1883 from nextcloud/downstream-26145Morris Jobke2016-10-251-1/+1
|\ | | | | Storage 503 message improvements
| * Storage 503 message improvementsVincent Petry2016-10-241-1/+1
| | | | | | | | | | "Storage not available" is now "Storage temporarily not available". Exceptions are now logged in DEBUG level, not FATAL.
* | More fixes to file uploadVincent Petry2016-10-241-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix js unit tests for webdav put upload changesVincent Petry2016-10-242-49/+37
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use Webdav PUT for uploads in the web browserVincent Petry2016-10-242-92/+257
|/ | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make it possible to filter by tags with REPORT methodVincent Petry2016-10-192-207/+22
| | | | | | | | | | | Enhanced the REPORT method on the Webdav endpoint and added a "oc:favorite" filter rule. When set, it will return a flat list of results filtered with only favorite files. The web UI was also adjusted to use this REPORT method instead of the private API endpoint. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix getMock filesRoeland Jago Douma2016-09-063-7/+12
|
* Also prevent null byte characterJoas Schilling2016-09-011-0/+1
|
* Filter out %0A from pathsJoas Schilling2016-09-011-1/+2
|
* Display number of hidden files in files summary (#25870)Vincent Petry2016-08-292-25/+153
| | | | When dot files are hidden, the table summary and selection summary will not show how many hidden files were included.
* Merge pull request #956 from nextcloud/fix_952Lukas Reschke2016-08-231-64/+31
|\ | | | | When using permalinks don't error out if file id can't be found
| * When requesting a permalink to an invalid file redirectRoeland Jago Douma2016-08-191-3/+7
| | | | | | | | We need to do the redirect to update address bar.
| * When using permalinks don't error out if file id can't be foundRoeland Jago Douma2016-08-191-64/+27
| | | | | | | | | | | | | | | | Fixes #952 * Use only the index route (since it went to showFile anyways) * Fix tests * Use getUserFolder to force init of users mounts
* | Fix hidden files handlingVincent Petry2016-08-191-1/+36
|/ | | | | | | Hidden files (dot files) are now always rendered in the DOM to make sure that all file operations and selection still work as expected. Their visibility is now toggled on CSS level.
* Merge pull request #893 from nextcloud/ie8_be_goneMarius Blüm2016-08-171-73/+20
|\ | | | | IE8 be gone!
| * Remove IE8 support from ViewControllerRoeland Jago Douma2016-08-161-73/+20
| | | | | | | | | | * Update tests * Fix getMock in tests
* | Use MockBuilder instead of createMockLukas Reschke2016-08-151-2/+2
| | | | | | | | CI uses an older PHPUnit
* | Add unit testsLukas Reschke2016-08-151-0/+83
|/
* Fix javascript tests for sidebar animationJulius Haertl2016-07-301-0/+4
|
* fix js testRobin Appelman2016-07-271-5/+10
|
* fix testRobin Appelman2016-07-251-1/+1
|
* fix testRobin Appelman2016-07-222-7/+26
|
* Update with robinJoas Schilling2016-07-212-2/+2
|
* Fix apps/Joas Schilling2016-07-218-14/+22
|
* Merge branch 'master' into sync-masterMorris Jobke2016-07-071-8/+13
|\
| * Match on 405Lukas Reschke2016-07-011-0/+5
| |
| * Match for /../Lukas Reschke2016-07-011-0/+4
| |
| * Do not allow directory traversal using "../"Lukas Reschke2016-07-011-0/+4
| | | | | | | | | | | | | | | | We should not allow directory traversals using "../" here. To test access the following URL once with and then without this patch: http://localhost/server/index.php/apps/files/?dir=../../This+Should+Not+Be+Here