aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
* l10n: Spelling unificationValdnet2021-05-212-2/+2
| | | | | Spelling unification in Transifex. Signed-off-by: Valdnet 47037905+Valdnet@users.noreply.github.com
* Rename External storages to External storageszaimen2021-05-205-6/+6
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* better cleanup of filecache when deleting an external storageRobin Appelman2021-05-191-38/+1
| | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* set mimetype for objects uploaded to object storagesRobin Appelman2021-04-212-4/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Continue iterating over diretory contents and just hide file if denied by aclJulius Härtl2021-04-201-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #23444 from nextcloud/notify-dry-runRoeland Jago Douma2021-03-301-32/+52
|\ | | | | add dry-run option to files_external:notify
| * add dry-run option to files_external:notifyRobin Appelman2021-03-241-32/+52
| | | | | | | | | | | | and add some additional logging Signed-off-by: Robin Appelman <robin@icewind.nl>
* | ignore readonly flag for directoriesRobin Appelman2021-03-251-8/+2
|/ | | | | | see http://support.microsoft.com/kb/326549 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #26145 from nextcloud/smb-force-write-optionMorris Jobke2021-03-191-1/+9
|\ | | | | add (hidden) option to always show smb root as writable
| * add (hidden) option to always show smb root as writableRobin Appelman2021-03-161-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 #25129 from nextcloud/bugfix/smb-notify-subpathVincent Petry2021-03-191-1/+1
|\ \ | | | | | | Fix files_external:notify command when running withing a subdirectory
| * | Fix files_external:notify command when running withing a subdirectory of the ↵Julius Härtl2021-01-141-1/+1
| | | | | | | | | | | | | | | | | | SMB share Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Use correct exception type hint in catch statementMorris Jobke2021-03-161-2/+2
| |/ |/| | | | | | | | | Found by psalm update 4.6.2 to 4.6.3 in #26111 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-041-1/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix types in the Group ManagerRoeland Jago Douma2021-03-031-1/+1
| | | | | | | | | | | | | | | | | | Psalm found an issue. However the issue found was because of lying docblocks. Fixed those and did some typing to make it all better. For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix a few RedundantCastRoeland Jago Douma2021-03-011-1/+1
| | | | | | | | | | | | | | Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-2/+2
| | | | | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Drop redundant indesRoeland Jago Douma2021-02-162-3/+65
| | | | | | | | | | | | | | Those indexes are already covered by others. So those can just be used. THose extra indexes just take up space. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | 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
| * | add option to disable notify self checkRobin Appelman2020-09-231-1/+10
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Format code to a single space around binary operatorsChristoph Wurst2020-10-055-31/+31
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* improve handling of out of space errors for smbRobin Appelman2020-09-171-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-4/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Set delimiter so that the CommonPrefixes response can properly be determinedJulius Härtl2020-09-101-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix s3 doesDirectoryExist check for empty directoriesRobin Appelman2020-09-101-1/+1
| | | | | | | | | | if a directory is empty, only the 'marker' object `/` exists. since not all s3 implementations return just the prefix when listing objects by prefix, when listing objects by the folder prefix, nothing will be returned if the directory is empty. by not including the trailing slash in the prefix, the folder marked will always be returned if it exists Signed-off-by: Robin Appelman <robin@icewind.nl>