aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| * | Use querybuilder for share external mountpointCarl Schwan2022-04-061-7/+9
| |/ | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #31684 from nextcloud/user-share-permissions-mergeSimon L2022-04-051-11/+22
|\ \ | | | | | | take permissions from multiple paths into account for share permissions
| * | take permissions from multiple paths into account for share permissionsRobin Appelman2022-03-311-11/+22
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #31773 from nextcloud/share-limited-owner-setupVincent Petry2022-04-051-11/+30
|\ \ \ | | | | | | | | Perform a limited filesystem setup when getting share source
| * | | use UserFolder to get the share source nodeRobin Appelman2022-04-041-11/+30
| | |/ | |/| | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / | Set oc_share_external.name column length to 4000 to remove arbitrary limitationCôme Chilliet2022-04-041-0/+56
|/ / | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #31240 from nextcloud/Valdnet-patch-3Louis2022-03-311-1/+1
|\ \ | | | | | | l10n: Add a dot
| * | l10n: Delete dotValdnet2022-02-171-2/+2
| | | | | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
| * | l10n: Add a dotValdnet2022-02-171-1/+1
| | | | | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | | invalidate mount cache after accepting or renaming federated shareRobin Appelman2022-03-251-0/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | invalidate mount cache after share renameRobin Appelman2022-03-242-20/+26
| |/ |/| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | l10n: Spelling unification in Transifex.Valdnet2022-03-181-3/+3
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Merge pull request #31431 from nextcloud/fs-setup-managerRobin Appelman2022-03-082-2/+6
|\ \ | | | | | | Unify/cleanup filesystem setup
| * | type fixesRobin Appelman2022-03-041-0/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | adjust tests to new fs setupRobin Appelman2022-03-041-2/+4
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix too many file download notifications when watching a videoszaimen2022-03-077-14/+53
|/ / | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* | store mountprovider for each mount in the mounts tableRobin Appelman2022-02-232-2/+2
| | | | | | | | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* | improve errors for external share availability checkRobin Appelman2022-02-211-7/+5
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Support CRUD share permissionsLouis Chemineau2022-02-151-10/+17
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Revert "Add non-breaking space in the file size"szaimen2022-02-101-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Use the new option to signaling insensitivityJoas Schilling2022-02-071-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add non-breaking space in the file sizeCarl Schwan2022-01-141-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove inefficient fed share scannerVincent Petry2022-01-101-70/+0
| | | | | | | | | | Remove scanAll which relies on the "shareinfo" endpoint that returns the full cache tree. The latter can become big for big shares and result in timeouts. Furthermode, the full tree would be retrieved again for each and every detected change which can become expensive quickly. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #30020 from nextcloud/feat/webpack-vendors-bundlesCarl Schwan2022-01-103-5/+5
|\ | | | | Feat/webpack vendors bundles
| * Move bundles to /distJohn Molakvoæ (skjnldsv)2022-01-083-5/+5
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Handle LocalServerException when scanning external sharesCarl Schwan2022-01-061-2/+11
|/ | | | | | | | When remoteIsOwnCloud trows LocalServerException, the storage is unavailable and instead of crashing the scanner, ignore the specific storage. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix passing on the parameterJoas Schilling2022-01-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve api documentation for file sharing external storageCarl Schwan2022-01-031-28/+24
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Handle external share with invalid hostCarl Schwan2021-12-201-3/+11
| | | | | | | | remoteIsOwnCloud might throw an exception when the host is localhost. Handle this case instead of aborting completely. The behavior is the same as that is done 10 lines under it Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Discard share notification for non-existing groupsVincent Petry2021-12-151-1/+1
| | | | | | | | | | Group shares might exist even after a group got deleted. This fix catches the situation and discards the notification for the obsolete group. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Joas Schilling <coding@schilljs.com>
* Limit more contact searchesJoas Schilling2021-12-082-3/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #30055 from nextcloud/enh/note-share-apiJulius Härtl2021-12-061-0/+5
|\
| * Allow to pass note when creating a share and send it with directly in the ↵Julius Härtl2021-12-031-0/+5
| | | | | | | | | | | | share mail when set Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow scripts prioritization based on other appsJohn Molakvoæ (skjnldsv)2021-12-022-3/+5
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>