summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/helper.php
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup Files_Sharing CLASSPATHRoeland Jago Douma2016-05-021-2/+2
| | | | | | | | | | * OC\Files\Cache\SharedScanner * OC\Files\Cache\Shared_Cache * OC\Files\Cache\Shared_Permissions * OC\Files\Cache\Shared_Updater * OC\Files\Cache\Shared_Watcher * OCA\Files\Share\Maintainer * OCA\Files\Share\Proxy
* There is no need to do old etag propagationRoeland Jago Douma2016-04-301-5/+0
| | | | Etags are calculated differently now and don't require manual updating.
* move federated sharing settings to the federatedfilesharing appBjörn Schießle2016-04-221-20/+0
|
* get the actual user instead of a federated cloud idBjoern Schiessle2016-02-181-15/+43
| | | | | | $view->getUidAndFilename($filename); returns the federated cloud id in case of a federated share. But in this case we need the local user who "owns" the file which is the current logged in user in case of a federated share
* Merge pull request #21117 from owncloud/owner-file-existsThomas Müller2016-01-151-8/+2
|\ | | | | Only return an owner if the file exists + improved getUidAndFilename
| * de-deplicate getUidAndFilenameRobin Appelman2016-01-111-8/+2
| |
* | Happy new year!Thomas Müller2016-01-121-1/+1
|/
* Add the user's cloud id to the vCardThomas Müller2015-12-021-16/+0
|
* Update license headersLukas Reschke2015-10-261-1/+1
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-2/+6
| | | | | | | | | | 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.
* Merge pull request #19589 from owncloud/shares-external-mount-providerThomas Müller2015-10-071-1/+0
|\ | | | | Move the setup of external share mounts to a mountprovider
| * Make the external share manager a mount providerRobin Appelman2015-10-051-1/+0
| |
* | update licence headers via scriptMorris Jobke2015-10-051-0/+1
|/
* Merge pull request #15506 from rullzer/core_apps_oc_log2ocp_utilMorris Jobke2015-07-011-2/+2
|\ | | | | Move core apps from OC_Log::write to OCP\Util
| * Move core apps from OC_Log::write to OCP\UtilRoeland Jago Douma2015-05-181-2/+2
| |
* | show federated cloud id in the personal settingsBjoern Schiessle2015-06-021-0/+16
|/
* propagate etags for all user of a shareRobin Appelman2015-04-271-2/+0
|
* Keep shares when deleting shared foldersVincent Petry2015-04-091-1/+0
| | | | | | | | The share entries will be linked with the fileid while they are kept in the trashbin. In the future a background just will scrape orphaned shares and delete them.
* always fall back to default share folderBjoern Schiessle2015-03-261-1/+14
|
* replace share proxy with hookRobin Appelman2015-03-261-0/+1
|
* Update license headersJenkins for ownCloud2015-03-261-1/+26
|
* Revert "Updating license headers"Morris Jobke2015-02-261-26/+1
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-1/+26
|
* delete all server-to-server shares if a user gets deletedBjoern Schiessle2015-01-211-0/+2
|
* Next step in server-to-server sharing next generation, see #12285Bjoern Schiessle2014-12-191-27/+1
| | | | | | | | | | | | | | Beside some small improvements and bug fixes this will probably the final state for OC8. To test this you need to set up two ownCloud instances. Let's say: URL: myPC/firstOwnCloud user: user1 URL: myPC/secondOwnCloud user: user2 Now user1 can share a file with user2 by entering the username and the URL to the second ownCloud to the share-drop-down, in this case "user2@myPC/secondOwnCloud". The next time user2 login he will get a notification that he received a server-to-server share with the option to accept/decline it. If he accept it the share will be mounted. In both cases a event will be send back to user1 and add a notification to the activity stream that the share was accepted/declined. If user1 decides to unshare the file again from user2 the share will automatically be removed from the second ownCloud server and user2 will see a notification in his activity stream that user1@myPC/firstOwnCloud has unshared the file/folder from him.
* first step to drop \OCP\Config:: in favour of IConfigMorris Jobke2014-12-171-2/+2
|
* OCS API for server-to-server sharingBjoern Schiessle2014-12-041-0/+24
|
* Remove phpass and migrate to new Hasher interfaceLukas Reschke2014-11-171-7/+20
| | | | | | | This PR removes phpass and migrates to the new Hasher interface. Please notice that due to https://github.com/owncloud/core/issues/10671 old hashes are not updated but the hashes are backwards compatible so this shouldn't hurt. Once the sharing classes have a possibility to update the passwords of single shares those methods should be used within the newHash if block.
* Refactor file sharing public link handlingLukas Reschke2014-11-141-1/+1
| | | | | | | fixes download issue introduced by #10755 Conflicts: apps/files_sharing/public.php
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-3/+3
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* make share folder configurableBjoern Schiessle2014-08-181-0/+20
|
* don't move a share mount point into a different mount pointBjoern Schiessle2014-07-011-0/+1
|
* make sure that hooks are registered for the testsBjoern Schiessle2014-06-251-0/+14
|
* Fix setupFromToken when a password is setRobin Appelman2014-06-161-1/+1
|
* add settings to disable server to server sharingBjoern Schiessle2014-06-141-0/+20
|
* move the mount point up if a share is mounted to a subfolder and the ↵Bjoern Schiessle2014-05-211-0/+22
| | | | subfolder no longer exists
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-1/+1
| | | | * test case added to avoid adding them later
* Merge pull request #8221 from owncloud/type-hinting-sharingVincent Petry2014-05-081-1/+1
|\ | | | | Type hinting fixes for sharing
| * Merge branch 'master' into type-hinting-sharingBart Visscher2014-04-281-4/+69
| |\ | | | | | | | | | | | | | | | | | | Conflicts: apps/files_sharing/lib/share/file.php apps/files_sharing/tests/api.php lib/private/share/share.php
| * | Fix PHPdoc in apps/files_sharingBart Visscher2014-04-151-1/+1
| | | | | | | | | | | | using scrutinizer patch
* | | Fix endless loop on windows serversJoas Schilling2014-05-071-1/+1
| | | | | | | | | | | | | | | | | | Directory seperator is \ on windows However we can just check for path != dirname(path) because that is the same for '' (empty string), '.' and DIRECTORY_SEPARATOR on all OS
* | | check if we have a fileinfoBjoern Schiessle2014-05-071-1/+5
| |/ |/|
* | make it possible to move files out of a shared mount pointBjoern Schiessle2014-04-231-0/+31
| |
* | typos, use, unused and return fixedThomas Müller2014-04-231-4/+3
| |
* | fix etag propagationBjoern Schiessle2014-04-231-0/+35
|/
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-0/+114
Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app