aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller/ShareController.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_sharing): show proper share not found error messageskjnldsv2024-08-061-4/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* refactor(files_sharing): Replace security annotations with respective attributesprovokateurin2024-07-271-9/+8
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-40/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-2/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor: Migrate IgnoreOpenAPI attributes to OpenAPIprovokateurin2024-01-181-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: public dav and files_sharing testing fixesJohn Molakvoæ2024-01-091-1/+1
| | | | 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-231-5/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* files_sharing: Add OpenAPI specjld31032023-07-311-2/+3
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Migrate files sharing to PSR LoggerInterfaceBenjamin Gaussorgues2023-07-061-56/+17
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Pluggable share providerLouis Chemineau2023-02-021-217/+33
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix various other small psalm issuesCarl Schwan2022-10-171-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* feature: first take on using the viewer to render single file sharesMax2022-08-251-5/+4
| | | | Signed-off-by: Max <max@nextcloud.com>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-46/+67
| | | | | | | | | | | | | | | | | | 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>
* Fix too many file download notifications when watching a videoszaimen2022-03-071-0/+6
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Revert "Add non-breaking space in the file size"szaimen2022-02-101-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Add non-breaking space in the file sizeCarl Schwan2022-01-141-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Emit event on link share actionJohn Molakvoæ2021-09-101-2/+32
| | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* Migrate HintException to OCPGary Kim2021-06-301-2/+2
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Use product name in places where it is appropriate rather than the instance nameJulius Härtl2021-06-161-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.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>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Return correct error message on share download without read permissionMorris Jobke2020-10-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show filename on share link downloadJohn Molakvoæ (skjnldsv)2020-09-171-1/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add BeforeTemplateRenderedEvent for files_sharingJulius Härtl2020-07-151-12/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update share type constant usageJoas Schilling2020-06-241-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17623 from j3l11234/masterRoeland Jago Douma2020-04-241-0/+1
|\ | | | | Add support for download share on old android browser
| * Add support for download share on old android browserj3l112342019-10-211-0/+1
| | | | | | | | Signed-off-by: j3l11234 <297259024@qq.com>
* | Format control structures, classes, methods and functionChristoph Wurst2020-04-101-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove user name from public sharing pageJoas Schilling2020-04-011-5/+25
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | 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-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Allow the video player on the hide downloadJoas Schilling2020-03-191-8/+18
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Properly emit Viewer event on files and files_sharingJohn Molakvoæ (skjnldsv)2020-03-111-0/+6
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix import order and formattingJohn Molakvoæ (skjnldsv)2020-03-111-1/+2
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Allow single file downloads so the video player works againJoas Schilling2020-02-281-8/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #19349 from ↵Roeland Jago Douma2020-02-081-1/+4
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/prevent-download-on-secure-view Prevent archieved download on secure view
| * | Prevent archieved download on secure viewJoas Schilling2020-02-071-1/+4
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Disable link shares of disabled usersRoeland Jago Douma2020-02-071-0/+12
|/ / | | | | | | | | | | Fixes #10869 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Update license headersChristoph Wurst2019-12-051-1/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Some php-cs fixesRoeland Jago Douma2019-11-221-13/+13
|/ | | | | | | | | | | * 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>
* Include the share in the Files_Sharing::loadAdditionalScripts eventDaniel Calviño Sánchez2019-10-171-1/+2
| | | | | | | | This provides a better context for apps using the event, for example to load one script or another depending on whether the share is a file or a folder. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix public upload by also load the semaphore methodMorris Jobke2019-05-071-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not allow JavaScript "eval" in the public share auth page with TalkDaniel Calviño Sánchez2019-04-101-2/+0
| | | | | | | | Talk no longer uses JavaScript "eval", so the Content Security Policy can now be configured to prevent its use in the public share authentication page when the password is protected by Talk. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix grid toggle button on public pageJohn Molakvoæ (skjnldsv)2019-02-211-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>