summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib
Commit message (Collapse)AuthorAgeFilesLines
* do not overwrite global user auth credentials with empty valuesArthur Schiwon2020-02-061-0/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2019-12-0556-63/+139
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-2241-139/+134
| | | | | | | | | | | * 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>
* Make timeout a optional parameterDaniel Kesselberg2019-11-091-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Remove superfluous fcloseDaniel Kesselberg2019-10-211-1/+0
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #17258 from nextcloud/smb-timeout-configRoeland Jago Douma2019-09-272-1/+11
|\ | | | | add (hidden) option to configure smb timeout
| * Update apps/files_external/lib/Lib/Backend/SMB.phpRobin Appelman2019-09-251-1/+1
| | | | | | Co-Authored-By: Daniel Kesselberg <mail@danielkesselberg.de>
| * add (hidden) option to configure smb timeoutRobin Appelman2019-09-252-1/+11
| | | | | | | | | | | | | | | | hidden from ui to prevent clutter ```occ files_external:config <mount> timeout 30``` Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use local variable for directory nameDaniel Kesselberg2019-09-231-2/+3
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Don't strip path from directory prefixDaniel Kesselberg2019-09-231-1/+6
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Fill directory cache from opendirDaniel Kesselberg2019-09-231-1/+3
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Change visibility to private (from protected)Daniel Kesselberg2019-09-231-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Rename $location to $pathDaniel Kesselberg2019-09-231-7/+7
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Add method to check if directory existsDaniel Kesselberg2019-09-231-2/+41
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #16790 from nextcloud/admin-use-user-global-authRoeland Jago Douma2019-09-101-0/+75
|\ \ | | | | | | Allow admin configured mounts to use user configured global credentials
| * | allow setting user provided global credentials trough credentials popupRobin Appelman2019-09-091-1/+10
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Allow admin configured mounts to use user configured global credentialsRobin Appelman2019-09-091-0/+66
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | set a storage availability delay on auth issues to avoid lock outArthur Schiwon2019-08-221-5/+13
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | catch auth issues also when php-smbclient is in useArthur Schiwon2019-08-221-0/+8
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Ignore forbidden exception when fetching share mtime on SMB for symlinksMorris Jobke2019-07-081-0/+2
| | | | | | See https://github.com/nextcloud/server/pull/7556#issuecomment-499028026 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add option to show hidden files in SMB sharesRobin Appelman2019-05-232-5/+16
| | | | | | | | | | | Note hidden files can mean different things in smb and the option the the files web ui, the webui only counts files starting with '.' as hidden, while smb files can be marked as hidden regardless, any files that are marked as hidden on smb will thus be shown in the webui regardless of the setting in the files app. Fixes #15644 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Convert timestamp key value of metadata in Swift files_externalMichael Zamot2019-03-011-1/+1
| | | | | | | | modified: apps/files_external/lib/Lib/Storage/Swift.php Signed-off-by: Michael Zamot <michael@zamot.io> Convert value of timestamp metadata key in swift files_external to string
* Merge pull request #14211 from nextcloud/bugfix/prefix-path-to-filecache-s3Morris Jobke2019-02-191-2/+2
|\ | | | | Prefix $path for filename for internal file cache
| * Call headObject if file not in filecache :see_no_evil:Daniel Kesselberg2019-02-141-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Prefix $path for filename for internal file cacheDaniel Kesselberg2019-02-141-2/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | add LDAP ConfigHandler for external storages and "$home" varArthur Schiwon2019-02-141-2/+0
|/ | | | | | | | * handler registered upon OCA\\Files_External::loadAdditionalBackends event as user_ldap is loaded before files_external * new configuration field "ldapExtStorageHomeAttribute" (not in GUI yet) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-291-1/+2
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove value from cache on delete/clearDaniel Kesselberg2018-10-081-0/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use helper method for content length and last modifiedDaniel Kesselberg2018-10-011-11/+54
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Reuse information from ListObjects for stat / filetypeDaniel Kesselberg2018-09-301-0/+5
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #10589 from nextcloud/smb-stat-retryMorris Jobke2018-08-241-1/+8
|\ | | | | retry smb stat on timeout
| * retry stat on timeoutRobin Appelman2018-08-081-1/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | log entries that are hidden during file listingRobin Appelman2018-08-161-11/+25
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #10025 from nextcloud/smb-rename-invalidargument-retryMorris Jobke2018-07-111-3/+17
|\ | | | | also retry rename operation on InvalidArgumentException
| * also retry rename operation on InvalidArgumentExceptionRobin Appelman2018-06-271-3/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Improved logging of smb connection errorsRobin Appelman2018-07-031-0/+8
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add support for using kerberos ticket to authenticate to smb serversRobin Appelman2018-06-224-15/+74
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update icewind/smb to 3.0.0Robin Appelman2018-06-211-13/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add SFTP auth mechanism to use a password and public key for SFTPRoeland Jago Douma2018-06-072-6/+82
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8842 from lanxenet/patch-1Morris Jobke2018-05-071-8/+10
|\ | | | | fix(AmazonS3): fix loop $result['Contents'] error
| * fix(AmazonS3): fix loop $result['Contents'] errorenoch2018-03-161-8/+10
| | | | | | Invalid argument supplied for foreach() at /var/www/html/apps/files_external/lib/Lib/Storage/AmazonS3.php#295
* | Use an actual function of the storage to determine needsPartFileRoeland Jago Douma2018-05-011-0/+4
| | | | | | | | | | | | | | We have a function for it so better to override that. Also because other codes that might check this should get the right value. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | move log constants to ILoggerArthur Schiwon2018-04-262-10/+12
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Remove \OCP\Files::tmpFileRoeland Jago Douma2018-03-194-5/+5
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #8857 from nextcloud/swift-verify-cached-tokenMorris Jobke2018-03-191-1/+5
|\ \ | |/ |/| verify cached swift token
| * verify cached swift tokenRobin Appelman2018-03-161-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use proper method to log exceptionsMorris Jobke2018-03-121-12/+12
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8285 from ↵Roeland Jago Douma2018-02-271-3/+13
|\ | | | | | | | | nextcloud/apps_files-smb-catch-exceptions-on-listing Make SMB module more fault-tolerant
| * Make SMB module more fault-tolerantRoland Tapken2018-02-091-3/+13
| | | | | | | | | | | | | | | | | | Ignore unavailable files when fetching the share's mtime or reading directory listings. This can happen on servers using a distributed file system (DFS) with unavailable destinations, for example when the remote server is offline. Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
* | Merge pull request #8359 from nextcloud/swift-v3Morris Jobke2018-02-264-6/+67
|\ \ | | | | | | Support swift v3 authentication