aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Share
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_sharing,files): Do not validate shares before adjusting the ownerprovokateurin2024-11-251-3/+6
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(files_sharing): reminder for link shares with expiration dateStefan Cherniakov2024-09-031-0/+16
| | | | Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
* fix: Add `acceptShare` as an interfaceFerdinand Thiessen2024-07-303-13/+29
| | | | | | | | | It was commented out because at that time no other share provider supported the `acceptShare` method. Today it is the same no other provider supports it, but we should make it discoverable by adding it to the public API as an additional interface. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): adjust IAttributes API and files_versionsskjnldsv2024-07-121-6/+7
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: psalm, cs, autoloader and lintskjnldsv2024-07-122-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow mixed values in share attributes and allow ↵skjnldsv2024-07-121-2/+2
| | | | | | storing email arrays Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): implement IShareProviderWithNotification and refactor ↵skjnldsv2024-07-122-2/+26
| | | | | | sendMailNotification Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-2419-376/+52
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(shareManager): Respect empty `expireDate` in serverfenn-cs2024-05-231-3/+21
| | | | | | If `expireDate` is an empty string and not `null` then the server should not set a default. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix: Fix tiny phpdoc errors related to ShareCôme Chilliet2024-04-301-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* ShareByMailProvider: getAccessList: add token to returned arrayAdam Serbinski2024-03-211-4/+4
| | | | | | This allows the share URI to be regenerated. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* ShareByMailProvider: getAccessList: return full list of recipientsAdam Serbinski2024-03-211-3/+6
| | | | | | | | Previously was returning only boolean true if the Node was shared by email, or false if not. Now provides an array containing the list of email share recipients. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(php,vue): Create a new parameterBaptiste Fotia2024-01-311-0/+9
| | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* feat: public dav endpoint v2John Molakvoæ2024-01-091-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-3/+3
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Fix return type of IShare::getExpirationDateVarun Patil2023-10-181-1/+1
| | | | Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* feat!: Migrate Share accepted event to typed eventJoas Schilling2023-07-281-0/+50
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate unShare events to typed eventsJoas Schilling2023-07-282-0/+100
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate Sharing events to typed eventsJoas Schilling2023-07-281-0/+66
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+5
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Pluggable share providerLouis Chemineau2023-02-022-0/+77
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* composer run cs:fixCôme Chilliet2023-01-2011-11/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix checkpassword undocummented null parameterCarl Schwan2022-10-171-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix view-only code after code review commentsVincent Petry2022-07-281-2/+4
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-282-8/+8
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-282-1/+94
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-262-10/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Recursively fetch subsharesLouis Chemineau2022-07-261-0/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use email settings in DAV searchLouis Chemineau2022-04-191-1/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use share setting in DAV searchLouis Chemineau2022-04-191-0/+8
| | | | | | shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-0/+13
| | | | | | | | | | | | | | | | | | shares of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves. - Creates a migration step for the files_sharing app to add the 'password_expiration_time' attribute to the oc_shares table. - Makes share temporary passwords' expiration time configurable via a system value. - Adds a system config value to allow permanent share passwords -Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue See https://github.com/nextcloud/server/issues/31005 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
* Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-1/+3
| | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Clarify that some interface are not meant to be implementedCarl Schwan2022-03-041-1/+5
| | | | | | | | | This make sure that apps don't implement this interfaces and gives us more liberty to add new methods to them (as long as it is compatible from an usage point of view) Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com>
* Move common logic to share managerJoas Schilling2021-11-091-0/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Default message for ShareNotFound exceptionJohn Molakvoæ (skjnldsv)2021-08-181-0/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0412-20/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* update public interface with new methodsRobin Appelman2021-05-121-0/+48
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove duplicated query for email sharesDaniel Calviño Sánchez2021-03-221-1/+1
| | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-101-0/+8
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-101-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* send share notification instead of erroring on duplicate shareRobin Appelman2021-03-091-0/+50
| | | | | | when creating a share that already exists, instead of erroring, resend the notifications Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix docblock return type for IShareProviderRoeland Jago Douma2021-03-021-1/+1
| | | | | | | All the implementations already returned an array of array of shares. So better to make sure the docblock also doesn't lie. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move to single share event. Just emit more if neededRoeland Jago Douma2020-12-231-21/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* cs fixMaxence Lange2020-12-231-3/+3
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>