summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
* files_external SMB: throw InvalidArgument when user is not setAnderson Luiz Alves2022-01-141-0/+4
| | | | Signed-off-by: Anderson Luiz Alves <alacn1@gmail.com>
* better cleanup of filecache when deleting an external storageRobin Appelman2021-11-241-38/+1
| | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add migration to move over existing storage idsJulius Härtl2021-11-101-0/+111
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use unique combination of hostname/bucket/key for external storagesJulius Härtl2021-11-101-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* cache versioning enabled statusRobin Appelman2021-10-261-2/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* minor directory detect improvementsRobin Appelman2021-10-261-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* always set Key field in `headObject`Robin Appelman2021-10-261-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more reliable hasUpdated for s3Robin Appelman2021-10-261-0/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove old migration methodRobin Appelman2021-10-261-31/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize filetype for s3 directories a bitRobin Appelman2021-10-261-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more reliable directory copyRobin Appelman2021-10-261-20/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* doesDirectoryExist fixesRobin Appelman2021-10-261-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* s3 external storage listing reworkRobin Appelman2021-10-261-96/+150
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Delete object to cleanup leftover of paths when removing directoriesJulius Härtl2021-10-111-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix folder size contained in S3 bucketsLouis Chemineau2021-08-201-4/+9
| | | | | | If 'filesystem_check_changes' was set to never, the cached size was alway set to -1 (Pending) on every access Signed-off-by: Louis Chemineau <louis@chmn.me>
* Gracefully handle smb acls for users without a domainRichard Steinmetz2021-08-131-1/+1
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Revert "[stable21] better cleanup of filecache when deleting an external ↵John Molakvoæ2021-07-271-1/+38
| | | | storage"
* better cleanup of filecache when deleting an external storageRobin Appelman2021-07-131-38/+1
| | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* ignore readonly flag for directoriesRobin Appelman2021-05-121-8/+2
| | | | | | see http://support.microsoft.com/kb/326549 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Continue iterating over diretory contents and just hide file if denied by aclJulius Härtl2021-04-211-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add (hidden) option to always show smb root as writableRobin Appelman2021-03-191-1/+9
| | | | | | | | | | | | | | | | | | | | some smb servers are very insistent in reporting that the root of the share is readonly, even if it isn't. This works around the problem by adding a hidden option to overwrite the permissions of the root of the share. This can be enabled using ```bash occ files_external:config <mount id> root_force_writable true ``` where you can find your mount id using ```bash occ files_external:list ``` Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #25943 from nextcloud/backport/25659/stable21Morris Jobke2021-03-171-1/+7
|\ | | | | [stable21] catch notfound and forbidden exception in smb::getmetadata
| * catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-051-1/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use correct exception type hint in catch statementMorris Jobke2021-03-171-2/+2
|/ | | | | | Found by psalm update 4.6.2 to 4.6.3 in #26111 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly handle SMB ACL blocking scanning a directoryJulius Härtl2021-01-291-2/+7
| | | | | | | | This makes sure that a possible ForbiddenException is properly passed through the storage as a ForbiddenException and can be catched when trying to fetch the quota info of a parent folder Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #25214 from ↵Morris Jobke2021-01-211-0/+1
|\ | | | | | | | | nextcloud/dependabot/composer/phpseclib/phpseclib-2.0.30 Bump phpseclib/phpseclib from 2.0.25 to 2.0.30
| * Bump phpseclib/phpseclib from 2.0.25 to 2.0.30Christoph Wurst2021-01-191-0/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix potential empty resultJoas Schilling2021-01-201-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Compare and store the login name via the eventJoas Schilling2021-01-201-3/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Also fix the username when it changedJoas Schilling2021-01-201-2/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Don't save credentials of another userJoas Schilling2021-01-201-0/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-121-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-115-18/+18
| | | | | | 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>
* dont offer to edit external config settings if we can't edit themRobin Appelman2021-01-084-22/+53
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #23261 from nextcloud/enh/external-storage-session-typeMorris Jobke2021-01-073-3/+18
|\ | | | | Expose session based authentication through mount point type
| * Expose session based authentication through mount point typeJulius Härtl2020-12-213-3/+18
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Revert "allow using any ldap property as login name when using login ↵blizzz2021-01-071-38/+2
| | | | | | | | credentials"
* | allow using any ldap property as login name when using external storage ↵Robin Appelman2021-01-041-2/+38
| | | | | | | | | | | | login credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Bump icewind/streams from 0.7.1 to 0.7.2Christoph Wurst2020-12-291-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-1627-27/+26
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Adjust further columnsVincent Petry2020-12-091-0/+6
| | | | | | | - calendarsubscriptions.lastmodified -> not null - external_config.value -> allow null Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* set mountid for personal external storage mountsRobin Appelman2020-12-022-3/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove the deprecated update.phpChristoph Wurst2020-11-271-1/+1
| | | | | | | | * It was documented as deprecated. * The app code checker warned about it * It's been three years Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused and deprecated methods from files_external MountConfigMorris Jobke2020-11-101-49/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Check if array elements exist before using themRoeland Jago Douma2020-10-251-1/+7
| | | | | | | | It seems that in some recent upgrade here. Not always the entries we expect are returned. So we should first check if they exist. As to not spam the log. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #23021 from nextcloud/notify-saved-login-authblizzz2020-10-131-14/+56
|\ | | | | allow using saved login credentials for notify
| * also give storage backend it's change to manipulate the configRobin Appelman2020-10-071-0/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * allow using saved login credentials for notifyRobin Appelman2020-09-231-14/+47
| | | | | | | | | | | | when only the user is provided, we use to provided user to try and get saved login credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #23020 from nextcloud/disable-notify-self-checkRobin Appelman2020-10-081-1/+10
|\ \ | | | | | | add option to disable notify self check