aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
* fix(sharing): Don't change the type of the controller argumentJoas Schilling2024-04-181-2/+2
| | | | | | [EA] New value type (\DateTime) is not matching the resolved parameter type and might introduce types-related false-positives. Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(shareApiController): avoid duplicated expiryDate operationsfenn-cs2024-04-181-27/+10
| | | | | | | | `expireDate` can be set once and used anywhere needed, the current implementation, duplicates this behavior which leads to `parseDate` receiving an a date object it parsed and returend earlier in the createShare method. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(shareApiController): use contrusctor property promotion & DI loggerfenn-cs2024-04-181-56/+20
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-022-17/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files_sharing): ShareesAPI - Return empty response when user is not ↵Ferdinand Thiessen2024-03-151-24/+9
| | | | | | | | allowed to share Resolves: https://github.com/nextcloud/server/issues/20950 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-043-24/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #43428 from nextcloud/feat/share-expiration-with-timeBenjamin Gaussorgues2024-02-261-1/+4
|\
| * feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-221-1/+4
| | | | | | | | | | | | | | | | Because of timezones, not saving time can lead to unexpected behaviour when sharing an item sooner than timezone offset Example: sharing a file before 9am when in UTC+9 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | fix truncated circleId returned from Share APIAragon Gouveia2024-02-231-3/+4
|/
* Merge pull request #43461 from nextcloud/fix/get-rid-of-getloggerF. E Noel Nfebe2024-02-141-2/+2
|\ | | | | chore: Migrate away from OC::$server->getLogger
| * chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-131-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | feat: rename users to account or personVincent Petry2024-02-131-2/+2
|/ | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* refactor: Migrate IgnoreOpenAPI attributes to OpenAPIprovokateurin2024-01-182-4/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(share): use user timezone to parse share expiration dateBenjamin Gaussorgues2024-01-091-17/+6
| | | | | | | | If an user in UTC+1 try to create a share at 00:00, it's day D for him, but D-1 for the server (UTC). This fix aims to apply the correct offset Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: public dav and files_sharing testing fixesJohn Molakvoæ2024-01-092-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: public dav endpoint v2John Molakvoæ2024-01-091-1/+6
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-237-29/+29
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* refactor: Rename OpenAPI type aliases to their namespacesjld31032023-11-025-29/+29
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix(federation): Use `sharing.federation.allowSelfSignedCertificates` config ↵Joas Schilling2023-10-111-18/+9
| | | | | | for all OCM requests Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add single status code descriptions for OpenAPIjld31032023-09-274-0/+10
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* ocm controllerMaxence Lange2023-09-201-4/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* files_sharing: Add OpenAPI specjld31032023-07-318-132/+232
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix(files_sharing): error and size/mtime for deleted sharesJohn Molakvoæ2023-07-111-0/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: adjust testingJohn Molakvoæ2023-07-111-3/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(sharing): add sharing overview viewJohn Molakvoæ2023-07-111-1/+13
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Migrate files sharing to PSR LoggerInterfaceBenjamin Gaussorgues2023-07-062-71/+24
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* displayname on federated sharesMaxence Lange2023-06-281-11/+127
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Refactors "strpos" calls in /apps/files_sharing to improve code readability.Faraz Samapoor2023-06-022-2/+2
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Mutualize expireDate handling when creating and updating a shareLouis Chemineau2023-04-271-30/+19
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update apps/files_sharing/lib/Controller/ShareAPIController.phprakekniven2023-04-181-1/+1
| | | | Co-authored-by: Valdnet <47037905+Valdnet@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* fix(l10n): Fixed grammarrakekniven2023-04-181-1/+1
| | | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-083-6/+103
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Merge pull request #36515 from nextcloud/fix/sharees-remove-deckJulius Härtl2023-02-161-10/+1
|\
| * Remove Deck from Sharees APIjld31032023-02-031-10/+1
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | Merge pull request #36452 from nextcloud/perf/share-availability-checkVincent Petry2023-02-031-8/+13
|\ \ | |/ |/| perf(federation): Only request root share info for checking availability
| * chore: Add return typesJulius Härtl2023-01-311-5/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * perf(federation): Only request root share info for checking availabilityJulius Härtl2023-01-311-6/+10
| | | | | | | | | | | | Otherwise this would request a full recursive dirctory listing while the result is never being used Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Pluggable share providerLouis Chemineau2023-02-021-217/+33
|/ | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* Honor permissions of new link share via OCS APIJan-Philipp Litza2022-12-061-3/+8
| | | | | | | | | | | 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>
* Check share attributes on preview endpointsJulius Härtl2022-10-251-0/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #34502 from nextcloud/fix/correct-attribute-resharingCarl Schwan2022-10-201-28/+24
|\ | | | | Propagate attributes when resharing
| * Small progress with fixing unit testsCarl Schwan2022-10-111-2/+5
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Propagate attributes when resharingCarl Schwan2022-10-101-27/+20
| | | | | | | | | | | | | | When updating a share, load the node from the initiator instead of the owner similar to how this is done when creating the share. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix various other small psalm issuesCarl Schwan2022-10-171-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix checkpassword undocummented null parameterCarl Schwan2022-10-171-3/+3
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix permission not being intCarl Schwan2022-10-171-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix exception getCode typeCarl Schwan2022-10-171-2/+2
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix type when getting appconfig with intCarl Schwan2022-10-171-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #34544 from nextcloud/fix/more-flexible-date-validationSimon L2022-10-131-1/+1
|\ \ | | | | | | More flexible date validation
| * | More flexible date validationCarl Schwan2022-10-111-1/+1
| |/ | | | | | | | | | | Fix #34542 Signed-off-by: Carl Schwan <carl@carlschwan.eu>