aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api
Commit message (Collapse)AuthorAgeFilesLines
...
* Filter contacts from the local system addressbook - remote share with local ↵Thomas Müller2016-02-021-0/+3
| | | | users is not allowed
* In some cases $contact['CLOUD'] is not an arrayThomas Müller2016-02-021-1/+5
|
* Add path filter to OCS Share API ?shared_with_me=trueRoeland Jago Douma2016-01-291-7/+11
| | | | | | This allows all clients to quickly get the share info for a given path. Instead of returning everything and filtering it then manually on the client side.
* Fix OCS unit tests after two share mergesRoeland Jago Douma2016-01-281-1/+1
| | | | | * Use getNode * Return IShare object so typechecking is happy
* Merge pull request #21960 from owncloud/share2_ocs_fix_passing_empty_stringsThomas Müller2016-01-281-27/+79
|\ | | | | Share2 ocs fix passing empty strings
| * [Share 2.0] Allow using permissions to update link shareRoeland Jago Douma2016-01-271-14/+41
| |
| * [Share 2.0] Still allow isolated updatesRoeland Jago Douma2016-01-271-4/+4
| | | | | | | | Still allow isolated updates of parameters
| * [Share 2.0] Also handle empty parameter in updateShareRoeland Jago Douma2016-01-271-24/+45
| | | | | | | | | | * More sanity checks * More unit tests
| * [Share 2.0] When passing empty strings don't failRoeland Jago Douma2016-01-271-5/+9
| | | | | | | | | | The password and expiration date can be set to empty strings when created. This is now handled gracefully.
* | [Share 2.0] Fix interfaces and commentsRoeland Jago Douma2016-01-281-11/+11
| | | | | | | | | | | | | | | | * 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-7/+5
|/
* Merge pull request #21940 from ↵Thomas Müller2016-01-271-1/+8
|\ | | | | | | | | owncloud/share2_do_not_returned_removed_group_shares [Share 2.0] Properly handle user deleted group shares
| * [Share 2.0] Properly handle user deleted group sharesRoeland Jago Douma2016-01-271-1/+8
| | | | | | | | | | | | If a user deletes a group share we create a special share entry. To the API this is just a normal group share for that user with permissions 0. But we should not return this.
* | [Share 2.0] Add update shareRoeland Jago Douma2016-01-262-1/+68
|/
* Comments from VincentRoeland Jago Douma2016-01-211-5/+3
|
* [Share 2.0] Add subfiles=xRoeland Jago Douma2016-01-211-0/+44
|
* [Sharing 2.0] Start with getSharesRoeland Jago Douma2016-01-212-1/+57
|
* [Share 2.0] Add share owner information to OCS Share APIRoeland Jago Douma2016-01-151-0/+2
|
* [Share 2.0] Use full share id (providerId:shareId)Roeland Jago Douma2016-01-131-10/+21
| | | | | | | | | | | | Now that we support multiple managers we communicate shares to the outside as 'providerId:shareId'. This makes sures that id's are unique when references from the OCS API. However, since we do not want to break the OCS API v1 we need to somewhat hack around this. When we switch to OCS API v2 (which we should when we support more custom providers). We will change the id to always be the fullShareId.
* [Share 2.0] Add share provider factoryRoeland Jago Douma2016-01-131-27/+1
| | | | | | | * Add providers * Add share manager to server container * Use share manager from server container * Properly get the share manager
* [Share 2.0] Allow registering of share providersRoeland Jago Douma2016-01-131-12/+24
| | | | * Properly register the default share provider
* Happy new year!Thomas Müller2016-01-126-6/+8
|
* Do not lower the sharee searchRoeland Jago Douma2016-01-121-1/+1
| | | | | | | | | | Fixes #21639 When lowering the remote search it break remotes that have uppercase letters like foo@example.com/ownCloud/ Backends do the mathcing so they should also make sure that the search string is converted to the format they require.
* [Sharing 2.0] Add L10N instance to manager for translated errorsRoeland Jago Douma2016-01-062-5/+9
|
* [Sharing 2.0] Do not use static function to get numeric storage idRoeland Jago Douma2016-01-061-1/+1
|
* [Sharing 2.0] General exceptions return 403Roeland Jago Douma2016-01-061-1/+1
| | | | This is the same as the old behaviour
* [Share 2.0] Enable share creation via OCS APIRoeland Jago Douma2016-01-062-5/+155
|
* Use proper public API for OC_Helper::getFileNameMimeTypeMorris Jobke2015-12-171-2/+4
|
* Only return the exact match, when it's allowedJoas Schilling2015-12-021-7/+18
|
* [Sharing 2.0] Use the rootfolder to get the path of a shareRoeland Jago Douma2015-11-242-6/+7
| | | | | We need to use the rootfolder here since we also other people than the shareOwner can request a share.
* [Sharing 2.0] Fix phpdoc etcRoeland Jago Douma2015-11-241-6/+6
|
* [Sharing 2.0] Move authentication to the OCS APIRoeland Jago Douma2015-11-242-13/+65
|
* [Sharing 2.0] Default share provider only generic DIRoeland Jago Douma2015-11-241-1/+1
| | | | | | No injection of userfolders etc. Only generic DI components (IRootFolder) etc should be used to make sure we can also run this from the cli
* [Sharing 2.0] Removed unused DI stuffRoeland Jago Douma2015-11-241-19/+16
| | | | | The share manager etc should not care about filtering stuff. They should return what is asked for them.
* Merge pull request #20558 from owncloud/remove-path-from-shared-withThomas Müller2015-11-231-0/+1
|\ | | | | Unset `path` for shared with me
| * Unset `path` for shared with meLukas Reschke2015-11-171-0/+1
| | | | | | | | The original path is not required for a share recipient.
* | Use proper variableLukas Reschke2015-11-181-1/+1
|/ | | `$shares` is not defined. Introduced with https://github.com/owncloud/core/commit/c3e7d324c5e61eb087fb2ea5102d332f9f08db3d and thus also in stable8.2
* [Share2.0] OCS Share API getShare uses new codeRoeland Jago Douma2015-11-162-13/+101
|
* Use the old code for remote shares for nowRoeland Jago Douma2015-11-051-0/+8
|
* The new sharing code now handles deletionRoeland Jago Douma2015-11-052-3/+83
| | | | OCS -> ShareManager -> DefaultShareProvider
* Prepare OCS Share endpointRoeland Jago Douma2015-11-051-0/+62
|
* Update license headersLukas Reschke2015-10-264-3/+4
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-1/+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.
* Make sure that remote shares use the correct uid casingJoas Schilling2015-10-061-0/+1
|
* update licence headers via scriptMorris Jobke2015-10-054-0/+5
|
* Extend share infoRoeland Jago Douma2015-10-021-1/+23
| | | | | | | | | | | | The data from the share_external is not to much. Thus we enrich this data with info from the filecache. This allows endpoints using this to actually show usefull information. The filecache might not be up to date but that is a sacrifice we need to make in terms of speed. Else the number of remote PROPFINDS grows lineary with the number of remote shares wich will make this endpoint practically unusable.
* Added '../remote_shares' endpointRoeland Jago Douma2015-10-021-2/+77
| | | | | | * list incoming remote shares at 'remote_shares' * get per share info at 'remote_shares/<ID>' * delete remote share with a DELETE to 'remote_shares/<ID>'
* Do not allow user enumeration if the config is disabledJoas Schilling2015-09-231-2/+18
|
* Merge pull request #19087 from ↵Thomas Müller2015-09-181-5/+8
|\ | | | | | | | | owncloud/disable-remote-share-notifications-for-now Disable remote share notifications for now
| * Disable the remote sharing notifications until they work properlyJoas Schilling2015-09-171-0/+3
| |