aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Implement expiration date for federated sharesVincent Petry2021-04-151-0/+24
| | | | | | | | | | | | | | | | | | Add expiration date field in UI. Save expiration date when creating or updating federated share. Read expiration date from DB in federated share provider. Applies to both federated user and group shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Use correct getSystemValue typeJ0WI2021-04-121-1/+1
| | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
| * Map old account scope properties to new namesVincent Petry2021-03-261-1/+1
| | | | | | | | | | | | | | | | Use new scope values in settings page. Adjust all consumers to use the new constants. Map old scope values to new ones in account property getter. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | dont return private storage interface from public mount interfaceRobin Appelman2021-03-231-5/+0
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove duplicated query for email sharesDaniel Calviño Sánchez2021-03-221-2/+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 labels to mail sharesJohn Molakvoæ (skjnldsv)2021-03-221-7/+6
| | | | | | Now the email is shown on a second line if a label is set. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #25331 from ↵Morris Jobke2021-03-181-3/+13
|\ | | | | | | | | nextcloud/fix-valid-storages-removed-when-cleaning-remote-storages Fix valid storages removed when cleaning remote storages
| * Fix valid storages removed when cleaning remote storagesDaniel Calviño Sánchez2021-01-281-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The remote URL of a share is always stored in the database with a trailing slash. However, when a cloud ID is generated trailing slashes are removed. The ID of a remote storage is generated from the cloud ID, but the "cleanup-remote-storage" command directly used the remote URL stored in the database. Due to this, even if the remote storage was valid, its ID did not match the ID of the remote share generated by the command and ended being removed. Now the command generates the ID of remote shares using the cloud ID instead, just like done by the remote storage, so there is no longer a mismatch. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry2021-03-151-0/+4
|\ \ | | | | | | do cachejail search filtering in sql
| * | fix search in nested jailsRobin Appelman2021-01-261-0/+4
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Log exceptions when creating shareVincent Petry2021-03-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | Because the exceptions don't always contain a useful message for the UI, but also because in some cases we need to find out what went wrong. In some setups, a ShareNotFoundException might happen during creation when we try to re-read the just written share. Usually related to Galera Cluster where node syncing wait is not enabled. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Fix invalid check after constructing DateTimeRoeland Jago Douma2021-03-081-4/+0
| | | | | | | | | | | | | | | | | | We construct an object. Either that works on not.But the result can't be false. Found by psalm Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-042-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #25912 from nextcloud/techdept/psalm/sharedstorage_some_typesChristoph Wurst2021-03-041-22/+23
|\ \ | | | | | | Add some typing to SharedStorage
| * | Add some typing to SharedStorageRoeland Jago Douma2021-03-041-22/+23
| | | | | | | | | | | | | | | | | | Makes psalm a bit more happy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Add appconfig to always show the unique label of a shareeJulius Härtl2021-03-041-1/+2
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #25892 from nextcloud/techdept/initialstate/part1Roeland Jago Douma2021-03-031-5/+5
|\ \ | | | | | | Move some settings over to the IInitialState
| * | Move some settings over to the IInitialStateRoeland Jago Douma2021-03-021-5/+5
| | | | | | | | | | | | | | | | | | The old one has been deprecated. Part one of many. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Pimp sharingcheckmiddlewareRoeland Jago Douma2021-03-021-16/+9
|/ / | | | | | | | | | | Reported by psalm Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-184-6/+6
| | | | | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Drop redundant indesRoeland Jago Douma2021-02-162-1/+55
|/ | | | | | | Those indexes are already covered by others. So those can just be used. THose extra indexes just take up space. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-122-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-112-3/+2
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-082-82/+106
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24829 from nextcloud/bugfix/24813/add-missing-migrationsJulius Härtl2021-01-052-0/+85
|\
| * Also add missing oc_share_external.share_type columnVincent Petry2020-12-232-0/+13
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Adjust share_external tableVincent Petry2020-12-232-0/+72
| | | | | | | | | | | | | | Add column "parent" if missing. Drop column "lastscan" if exists. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Update license headersChristoph Wurst2020-12-301-0/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-1/+1
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-1/+1
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-1619-14/+22
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-1/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Show unique displayname context in the user share list entriesJulius Härtl2020-12-141-0/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #24605 from nextcloud/enh/share-deckRoeland Jago Douma2020-12-104-7/+105
|\ \ | | | | | | Add deck share provider support
| * | Address minor commentsJulius Härtl2020-12-092-4/+4
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Include deck shares in sharing mountsJulius Härtl2020-12-091-0/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Introduce deck share type to ShareAPIControllerJulius Härtl2020-12-092-5/+91
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Let sharees endpoint properly handle deck sharesJulius Härtl2020-12-091-0/+10
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Adjust defaultJulius Härtl2020-12-082-3/+45
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Do not register share menu in cases where the files app has not been ↵Julius Härtl2020-12-081-1/+1
| | | | | | | | | | | | | | | | | | registered yet Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Move columns to bigintJulius Härtl2020-12-081-3/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Migrate files_sharing to migrations and move remote_id to a string in ↵Julius Härtl2020-12-081-0/+90
| | | | | | | | | | | | | | | | | | share_external Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Move remoteId of remote reshares to stringJulius Härtl2020-12-081-3/+3
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #24017 from nextcloud/enh/share_expirationMorris Jobke2020-11-191-10/+34
|\ \ | | | | | | Make the expire shares cron job actually expire the shares
| * | Make the expire shares cron job actually expire the sharesRoeland Jago Douma2020-11-191-10/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now we just delete the shares from the DB. Which is efficient sure. But doesn't trigger any real cleanup. So no Admin audit entries or any other post processing is done. This makes sure we really trigger this. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Limit shared cache search if it is just a fileRoeland Jago Douma2020-11-191-0/+16
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | circleId too short in some requestMaxence Lange2020-11-131-3/+4
|/ / | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Improve CertificateManager to not be user context dependentMorris Jobke2020-11-032-2/+2
| | | | | | | | | | | | | | | | | | * removes the ability for users to import their own certificates (for external storage) * reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions) The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix invalid usages of the new dispatcherRoeland Jago Douma2020-10-291-4/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Return correct error message on share download without read permissionMorris Jobke2020-10-261-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>