aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge pull request #41053 from nextcloud/bug/smb/in-place-case-renameBenjamin Gaussorgues2023-10-312-0/+24
| |\ | | | | | | fix(files_external): on case insensitive system, block case change
| | * fix(files_external): on case insensitive system, block case changeBenjamin Gaussorgues2023-10-232-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | When a file/directory is renamed to the same name with only case change, the rename fail. We block this kind of rename. The user will have to rename to another name first. Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * | fix(external): Get storage before update itJoas Schilling2023-10-261-0/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Return correct status if touch failedLouis Chemineau2023-10-231-11/+13
| |/ | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
| * fix(files_external): basic auth user storage triggerJohn Molakvoæ2023-10-101-0/+1
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * Merge pull request #39131 from fsamapoor/refactor_lib_files_external_commandsLouis2023-09-2811-204/+135
| |\ | | | | | | Refactors files_external app commands
| | * Adds parameter type hints.Faraz Samapoor2023-09-282-2/+2
| | | | | | | | | | | | | | | | | | Co-authored-by: Côme Chilliet <come.chilliet@nextcloud.com> Signed-off-by: Faraz Samapoor <fsa@adlas.at> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| | * Refactors files_external app commands.Faraz Samapoor2023-09-2811-206/+137
| | | | | | | | | | | | | | | | | | | | | To improve code readability. Signed-off-by: Faraz Samapoor <fsa@adlas.at> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-282-4/+4
| |/ | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
| * Add single status code descriptions for OpenAPIjld31032023-09-271-0/+2
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * Merge pull request #40499 from nextcloud/known-mtime-wrapperRobin Appelman2023-09-211-18/+10
| |\ | | | | | | add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| | * apply known mtime wrapper for external storagesRobin Appelman2023-09-191-18/+10
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix: avoid side-effect importsJohn Molakvoæ (skjnldsv)2023-09-211-0/+2
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | use multipart copy for s3Robin Appelman2023-09-201-4/+1
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Merge pull request #40183 from nextcloud/sftp-fixesRobin Appelman2023-09-182-9/+151
| |\ | | | | | | SFTP improvements
| | * sftp psalm fixesRobin Appelman2023-09-182-11/+15
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * psalm suppressRobin Appelman2023-09-041-0/+4
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * implement fseek for sftp read streamRobin Appelman2023-09-042-3/+30
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * more optimized getPermissions/getMetaDataRobin Appelman2023-09-041-0/+44
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * sftp optimize file_put_contents, writeStream and copyRobin Appelman2023-09-041-1/+55
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * fix error during sftp stream closeRobin Appelman2023-09-041-0/+7
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * clear sftp stat cache when opening a write streamRobin Appelman2023-09-041-3/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Merge pull request #39895 from nextcloud/fix/noid/revoke-admin-overwriteJohn Molakvoæ2023-09-051-1/+1
| |\ \ | | |/ | |/|
| | * admin have no special rights on users' entriesMaxence Lange2023-09-011-1/+1
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Whenever an external storage of type Local points at a non-existing directory, process this as a StorageNotAvailable instead of returning 404. This makes desktop clients ignore the folder instead of deleting it when it becomes unavailable. The code change was limited to external storages to avoid issues during setup and with the default home storage. Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
| * use fresh builders when deleting storagesRobin Appelman2023-08-141-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * files_external: Fix OpenAPIjld31032023-08-073-5/+27
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanupJoas Schilling2023-08-041-1/+2
| |\ | | | | | | fix!: Final round of moving to IEventDispatcher
| | * fix!: Move getEventDispatcher usage to IEventDispatcherJoas Schilling2023-07-281-1/+2
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | feat(files_external): migrate to vueJohn Molakvoæ2023-08-0110-62/+135
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * | Migrate files external to PSR LoggerInterfaceBenjamin Gaussorgues2023-08-019-92/+56
| |/ | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * Merge pull request #39367 from nextcloud/s3-fopen-exceptionRobin Appelman2023-07-201-1/+1
| |\ | | | | | | handle more exceptions in AmazonS3::fopen
| | * handle more exceptions in AmazonS3::fopenRobin Appelman2023-07-131-1/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Merge pull request #39321 from nextcloud/feature/openapi/files_externalRobin Appelman2023-07-133-4/+50
| |\ \ | | |/ | |/| files_external: Add OpenAPI spec
| | * files_external: Add OpenAPI specjld31032023-07-113-4/+50
| | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * | getStorage before removeMaxence Lange2023-07-111-0/+6
| |/ | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* / Clean-up some remaining readdir calls with undesirable false evaluation ↵Josh Richards2023-06-241-2/+2
|/ | | | | | potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* Merge pull request #38591 from nextcloud/fix/caching/avoid-haskey-getSimon L2023-06-121-2/+3
|\ | | | | fix(caching): Avoid checking existence before fetching
| * fix(caching): Avoid checking existence before fetchingChristoph Wurst2023-06-121-2/+3
| | | | | | | | | | | | | | | | The cache might expire between checking for key existence and fetching the value. In this rare case the code continues with a null value when it doesn't expect one. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Update apps/files_external/lib/Lib/Storage/SMB.phpFaraz Samapoor2023-06-051-3/+1
| | | | | | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | Refactors "strpos" calls in /apps/files_external to improve code readability.Faraz Samapoor2023-06-025-9/+11
|/ | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Merge pull request #38115 from DerGenaue/patch-1Simon L2023-05-161-6/+6
|\ | | | | Rename `numericStorageId` to `numericExternalStorageId` in PersonalMount.php
| * Rename `numericStorageId` to `numericExternalStorageId` in PersonalMount.phpDaniel2023-05-071-6/+6
| | | | | | | | | | | | | | | | so that it doesn't override `numericStorageId` in the `MountPoint` baseclass fixes https://github.com/nextcloud/server/issues/37473 fixes https://github.com/nextcloud/server/issues/37414 Signed-off-by: Daniel <7558512+DerGenaue@users.noreply.github.com>
* | check the username when doing external storage session authRobin Appelman2023-05-111-0/+5
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #37717 from ↵Louis2023-04-241-2/+2
|\ | | | | | | | | nextcloud/artonge/fix/dont_override_stored_credentials_with_saml Do not override stored credentials when login in with SAML
| * Do not override stored credentials when login in with SAMLLouis Chemineau2023-04-131-2/+2
| | | | | | | | | | | | | | | | | | | | When login in with SAML, the password from `$event->getPassword()` is `null`. This PR makes sure that this `null` value won't be used to override the stored password even though it is different. This PR also allow for the password and user to be updated even though they were not set before. Signed-off-by: Louis Chemineau <louis@chmn.me>
* | add command for getting fileinfo for debuggingRobin Appelman2023-04-171-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #37611 from ZE3kr/patch-1Julius Härtl2023-04-141-1/+1
|\ \ | |/ |/| Unquote S3 ETag stored in oc_filecache
| * Update AmazonS3.phpJames Guo2023-04-061-1/+1
| | | | | | Signed-off-by: James Guo <i@ze3kr.com>
* | handle not being able to write file for notify self-testRobin Appelman2023-04-061-1/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>