aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: adjust testingJohn Molakvoæ2023-07-111-32/+88
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-2/+2
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Honor permissions of new link share via OCS APIJan-Philipp Litza2022-12-061-4/+4
| | | | | | | | | | | The API currently overrides the supplied permissions with "read only" when a file is shared via link. It allows to update the permissions later, however. This keeps the default to "read only" but honors the permissions supplied by API call if any. Signed-off-by: Jan-Philipp Litza <jpl@plutex.de>
* More fixesCarl Schwan2022-10-181-8/+18
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Small progress with fixing unit testsCarl Schwan2022-10-111-167/+82
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Only normalize data in public shares and not crudCarl Schwan2022-09-081-3/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Multiple fixesCarl Schwan2022-07-311-43/+144
| | | | | | | | | | | - 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>
* Fix share attribute related tests + code styleVincent Petry2022-07-281-9/+25
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-281-5/+44
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix unit testsJoas Schilling2022-06-071-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-0/+2
| | | | | | | | | | | | | | | | | | 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 #31684 from nextcloud/user-share-permissions-mergeSimon L2022-04-051-0/+44
|\ | | | | take permissions from multiple paths into account for share permissions
| * take permissions from multiple paths into account for share permissionsRobin Appelman2022-03-311-0/+44
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31240 from nextcloud/Valdnet-patch-3Louis2022-03-311-1/+1
|\ \ | |/ |/| l10n: Add a dot
| * Fix testValdnet2022-03-311-1/+1
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Add test to spelling unificationLouis Chemineau2022-03-211-1/+1
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Support CRUD share permissionsLouis Chemineau2022-02-151-0/+93
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Limit more contact searchesJoas Schilling2021-12-081-2/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use specific email getter where necessaryArthur Schiwon2021-09-091-4/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update "Sending password by Nextcloud Talk failed" sentenceszaimen2021-07-071-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Unify spelling in testValdnet2021-05-201-2/+2
|
* Change size of the letter in testValdnet2021-04-281-1/+1
|
* Unit tests for federated share expiration dateVincent Petry2021-04-151-1/+191
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show unique displayname context in the user share list entriesJulius Härtl2020-12-141-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Address minor commentsJulius Härtl2020-12-091-4/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adjust mountprovider testsJulius Härtl2020-12-091-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Indicate preview availability in share api responsesRichard Steinmetz2020-10-131-1/+90
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Expose status via Collaborators APIGeorg Ehrke2020-08-141-7/+24
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-15/+15
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-109/+108
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-72/+72
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't show link shares hash in inherited share listRoeland Jago Douma2020-01-151-26/+26
| | | | | | This adds no value at all. Just showing the text "(Shared link)" now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-051-2/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fixing tests + avoid duplicate in getFormattedShares()Maxence Lange2019-12-031-5/+6
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-96/+98
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix more testsRoeland Jago Douma2019-11-271-32/+32
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-8/+9
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix current user edit/delete permissionsJohn Molakvoæ (skjnldsv)2019-10-291-0/+81
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Do not return shares with the current userDaniel Calviño Sánchez2019-10-251-2/+0
| | | | | | | | Getting the shares of a file no longer returns shares with the current user for consistency with the results when getting the shares including subfiles. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add missing share types when getting shares of a fileDaniel Calviño Sánchez2019-10-251-0/+8
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Unify share type sorting when getting shares of a file or with subfilesDaniel Calviño Sánchez2019-10-251-1/+1
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>