aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* Migrate federated file sharing to PSR LoggerInterfaceBenjamin Gaussorgues2023-07-071-4/+4
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix types for reading and writing config valuesjld31032023-04-051-1/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* also set the node when re-using existing share on share createRobin Appelman2023-04-031-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* hide shared files located in group folder's trash binArthur Schiwon2023-03-281-0/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-082-0/+3
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Pluggable share providerLouis Chemineau2023-02-021-0/+63
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* composer run cs:fixCôme Chilliet2023-01-208-13/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #34477 from ↵Joas Schilling2022-12-091-0/+4
|\ | | | | | | | | nextcloud/bugfix/noid/sharee-recommendations-show-group-id Show group name instead of group id as recommendation
| * Show group name instead of group id as recommendationJoas Schilling2022-10-081-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix PHP CSJoas Schilling2022-10-201-1/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Also catch in getProviderJoas Schilling2022-10-201-3/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Don't crash with outdated share providerJoas Schilling2022-10-201-4/+23
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix checkpassword undocummented null parameterCarl Schwan2022-10-171-1/+1
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup tags and Share componentCarl Schwan2022-09-291-0/+3
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Use bigger slice in share providerCarl Schwan2022-08-161-2/+2
| | | | | | | | Probably won't make a big difference as it is unlikely a user has > 100 shares but this make sure we use the same code in spreed where the change has a bigger impact. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* don't reduce file public link permissions if public upload is not enabledJulien Veyssier2022-08-011-2/+2
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Multiple fixesCarl Schwan2022-07-311-8/+6
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Inherit hide download from share attributesVincent Petry2022-07-281-0/+2
| | | | | | | When resharing by link, if the download permission was removed through share attributes, convert it to the hide download flag. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix view-only code after code review commentsVincent Petry2022-07-281-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Attempt to fix sqlite json issueVincent Petry2022-07-281-2/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-282-16/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-284-1/+179
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix typos in lib/private subdirectoryluz paz2022-07-273-3/+3
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-262-28/+19
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Recursively fetch subsharesLouis Chemineau2022-07-261-0/+18
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Prevent column name conflict between tablesLouis Chemineau2022-07-261-1/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Rename setting name to reduce its lengthLouis Chemineau2022-06-271-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #32185 from nextcloud/fix/default-share-provider-oracleCarl Schwan2022-05-121-7/+18
|\ | | | | Fix getting shares in a folder on Oracle
| * Fix getting shares in a folder on OracheCarl Schwan2022-05-121-7/+18
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Use email settings in DAV searchLouis Chemineau2022-04-191-0/+4
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Use share setting in DAV searchLouis Chemineau2022-04-191-0/+4
|/ | | | | | 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>
* Adjust settings for mail link passwordVincent Petry2022-04-141-17/+5
| | | | | | | | | Rename the settings and invert the meaning. Increase default interval to one hour. Changed the interval to be a number of seconds, to align with other setting styles. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Default to permanent link passwordsVincent Petry2022-04-131-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Properly reset pw expirationVincent Petry2022-04-131-0/+37
| | | | | | | When requesting a new password for share by mail link, now we correctly reset the expiration date. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #31220 from nextcloud/enhancement/31005/temporary-passwordsVincent Petry2022-04-123-0/+23
|\ | | | | Temporary passwords for public non-anonymous protected shares (ie: files shared with an email recipient).
| * Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-113-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #31610 from nextcloud/shares-in-folder-mountsVincent Petry2022-04-111-1/+14
|\ \ | |/ |/| fix shared mount roots not being returned from `getSharesInFolder`
| * fix shared mount roots not being returned from `getSharesInFolder`Robin Appelman2022-03-311-1/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31194 from ↵Vincent Petry2022-04-061-1/+13
|\ \ | | | | | | | | | | | | nextcloud/feat/allow-to-exclude-groups-from-password-enforcement Allow to disable password policy enforcement for selected groups
| * | Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-1/+13
| |/ | | | | | | | | | | 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>
* / Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-5/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to pass note when creating a share and send it with directly in the ↵Julius Härtl2021-12-032-2/+12
| | | | | | share mail when set Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix warning about passing null to substr_countCôme Chilliet2021-11-231-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move common logic to share managerJoas Schilling2021-11-091-1/+43
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Patch for master-branchJanBartels2021-10-181-1/+1
|
* Merge pull request #26688 from nextcloud/enh/better-share-exceptiondebugJohn Molakvoæ2021-10-131-1/+1
|\