aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* feature: first take on using the viewer to render single file sharesMax2022-08-251-5/+4
| | | | Signed-off-by: Max <max@nextcloud.com>
* Merge pull request #33574 from nextcloud/search-share-query-filter-no-initVincent Petry2022-08-231-2/+4
|\ | | | | directly build the search filter for shared storage instead of setting up the source cache
| * directly build the search filter for shared storage instead of setting up ↵Robin Appelman2022-08-171-2/+4
| | | | | | | | | | | | the source cache Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use user name cache in activity providersJoas Schilling2022-08-191-4/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | further pre-filter search result before setting up share source cacheRobin Appelman2022-08-171-0/+8
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make DisplayNameCache return null if user doesn't existsCarl Schwan2022-08-161-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix external share scanner not propagating locking-opt-outRobin Appelman2022-08-031-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Disable locking on federated sharesCarl Schwan2022-08-031-0/+5
| | | | | | | The old inneficiant code didn't do locking and adding locking is creating issues Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Revert "Remove inefficient fed share scanner""Carl Schwan2022-08-031-70/+0
| | | | | | This reverts commit 6667007bf235b90a7dd105c881cf5802b2a3f83e. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Multiple fixesCarl Schwan2022-07-314-57/+70
| | | | | | | | | | | - 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>
* Enforcing permission during resharingCarl Schwan2022-07-281-8/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Inherit hide download from share attributesVincent Petry2022-07-281-0/+27
| | | | | | | 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>
* Block download when needed on direct download endpointVincent Petry2022-07-281-0/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix view-only code after code review commentsVincent Petry2022-07-282-9/+14
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Don't reset share attributes when not specifiedVincent Petry2022-07-281-2/+6
| | | | | | When not specified in the OCS call, don't reset the share attributes. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-281-18/+25
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share controller to accept share attributes aloneVincent Petry2022-07-281-2/+5
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-284-8/+236
| | | | | | 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-261-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Recursively fetch subsharesLouis Chemineau2022-07-261-3/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Change share owner when moving share out of shareLouis Chemineau2022-07-261-12/+14
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update owner of subdir on move into/out of shareVincent Petry2022-07-261-0/+19
| | | | | | | | When moving a directory into or out of a received share, make sure to also update the share owner column for shares that exist insie the directory. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-142-2/+2
| | | | | | | | 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>
* Merge pull request #31771 from nextcloud/fix/hook-encryption-cronVincent Petry2022-06-101-1/+1
|\ | | | | Fix hook encryption with cron job
| * Fix hook encryption with cron jobCarl Schwan2022-06-071-1/+1
| | | | | | | | | | | | | | | | Make sure the setup fs is set before using the Update service Fix #29674 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #32741 from nextcloud/Valdnet-patch-2Joas Schilling2022-06-102-10/+10
|\ \ | | | | | | l10n: Delete apostrophe
| * | Fix unit testsJoas Schilling2022-06-071-2/+2
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | l10n: Delete apostropheValdnet2022-06-071-8/+8
| |/ | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Merge pull request #32806 from nextcloud/fix-federated-sharingVincent Petry2022-06-101-0/+70
|\ \ | | | | | | Revert "Remove inefficient fed share scanner"
| * | Revert "Remove inefficient fed share scanner"Carl Schwan2022-06-101-0/+70
| |/ | | | | | | | | | | This reverts commit ce319143142e2ee998ef4794b04ad684c4ffa911. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* / Various improvements related to the recent implementation of temporary passwordsCyrille Bollu2022-06-081-1/+1
|/ | | | | | | | | | | | | | | for mail shares: 1- Changes style of "forgot password?" and "Back" button 2- Adds information about share password's expiration time in the emails sent. 3- Shows password expiration time in the Share menu 4- Fixes an issue when the message "Password expires..." would be shown for non email share types (which don't have temporary passswords) 5- At share's creation, password should only be sent when it's a permanent one See also https://github.com/nextcloud/server/issues/31952 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #32349 from nextcloud/enh/projects-eventCarl Schwan2022-05-271-3/+4
|\ | | | | Add event to load additional scripts for projects
| * Move files_sharing over to new event for projectsJulius Härtl2022-05-121-3/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-122-0/+2
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32053 from nextcloud/cache-verify-share-mountpointblizzz2022-04-222-4/+29
|\ | | | | cache the verification of the share mountpoint
| * cache the verification of the share mountpointRobin Appelman2022-04-212-4/+29
| | | | | | | | | | | | after the initial verification this can only really be invalidated by a system mount (external/group/etc) being created at the share target since any normal file/folder creation will already conflict with the share Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Update cache when display name changeCarl Schwan2022-04-222-1/+4
| | | | | | | | | | | | This improve the correctness of the data Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Cache display nameCarl Schwan2022-04-222-30/+13
| | | | | | | | | | | | | | | | This should saves some query in the share backend when displaying the owner and it's not important if the display name is 10 minutes outdated as it is very rare that this gets changed. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #32050 from nextcloud/share-cache-owner-nameJohn Molakvoæ2022-04-221-4/+14
|\ \
| * | cache the share owner name for formating cache entriesRobin Appelman2022-04-211-4/+14
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | also apply the fix for the other storage typesRobin Appelman2022-04-211-1/+11
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | improve optimization for SharedStorage::instanceOfStorage(Common)Robin Appelman2022-04-211-1/+2
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Properly reset pw expirationVincent Petry2022-04-131-36/+0
| | | | | | | 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-46/+155
|\ | | | | 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-46/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #31713 from nextcloud/fed-performanceRobin Appelman2022-04-071-1/+8
|\ \ | |/ |/| Federated share performance improvements
| * only request free space once for external sharesRobin Appelman2022-04-041-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * use all possible permissions dav propertiesRobin Appelman2022-04-041-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman2022-04-041-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31845 from nextcloud/querybuilder-shareexternalCarl Schwan2022-04-071-7/+9
|\ \ | | | | | | Use querybuilder for share external mountpoint