summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
* Update phpseclib to version 0.3.9.Andreas Fischer2015-02-181-10/+2
|
* make sure the root has a trailing slashRobin Appelman2015-02-161-0/+3
|
* handle deleting non existing filesRobin Appelman2015-02-161-7/+11
|
* Use better way to check for the existence of smbclientRobin Appelman2015-02-161-7/+2
|
* New SMB storage backendRobin Appelman2015-02-162-111/+228
|
* Merge pull request #13190 from is-apps/master-sftp-keyVincent Petry2015-02-102-4/+211
|\ | | | | Add SFTP public key authentication support
| * Add support for SFTP key authenticationRoss Nicoll2015-01-142-4/+211
| | | | | | | | | | | | | | | | | | | | Add support for external files accessed via SFTP using public key exchange authentication. Keys are generated automatically when the configuration is added, or can be regenerated on demand if a key is compromised. Creation of a new configuration row now triggers focus on that row. This is used to trigger auto-configuration for SFTP keys. Generated public keys are saved in user's data directory for easy retrieval by an external application. Add controller for SFTP key generation AJAX SFTP class initialisation no longer produces a warning if the password field is missing. Add unit tests for SFTP with key authentication backend
* | Allow saving incomplete external storage configVincent Petry2015-01-271-2/+29
|/ | | | This is needed for Dropbox and others that need a token.
* Merge pull request #12879 from owncloud/mountconfigMorris Jobke2014-12-181-2/+3
|\ | | | | Add mount specific options
| * Load mount specific options from the mount configRobin Appelman2014-12-171-2/+3
| |
* | Merge pull request #12896 from owncloud/drop-deprecatedJörn Friedrich Dreyer2014-12-182-2/+2
|\ \ | | | | | | first step to drop \OCP\Config:: in favour of IConfig
| * | first step to drop \OCP\Config:: in favour of IConfigMorris Jobke2014-12-172-2/+2
| |/
* / Add the storage id to the mount configRobin Appelman2014-12-171-103/+162
|/
* Remove conditional check for 5.3 compatibilityLukas Reschke2014-12-121-6/+1
|
* Merge pull request #12090 from AdamWill/google-rename-deleteMorris Jobke2014-12-101-0/+12
|\ | | | | google: delete original after successful rename
| * google: delete original after successful renameAdam Williamson2014-11-301-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In GDrive, filenames aren't unique, and directories are just special files - so you can have multiple files with the same name, multiple directories with the same name, and even files with the same names as directories. OC doesn't handle this at all, though, and just wants to act as if file and directory names *are* unique. So when renaming, we must check if there's an existing object with the same file or directory name before we commit the rename, and explicitly delete it if the rename is successful. (Other providers like dropbox do the same for files, but intentionally don't do it for directories; we really need to do it for directories too.) A good way to observe this is to run the storage unit tests and look at the state of the Drive afterwards. Without this commit, there will be several copies of all the test files and directories. After this commit, there's just one of each. We can't just say "hey, Drive lets us do this, what's the problem?" because we don't handle multiple-objects, same-name cases - getDriveFile() just bails and prints an error if it searches for the file or directory with a given name and gets multiple results.
* | Merge pull request #12577 from owncloud/public-mount-apiLukas Reschke2014-12-083-18/+46
|\ \ | | | | | | Add a public api for apps to add mounts
| * | Use the mount config api for files_externalRobin Appelman2014-12-043-18/+46
| |/
* | Keep spaces out of the stringVolkan Gezer2014-12-071-1/+1
| | | | | | Otherwise translators cannot notice them on Transifex.
* | Only store user credentials when SMB_OC storage is enabledLukas Reschke2014-12-011-3/+28
|/ | | | | Conflicts: apps/files_external/lib/smb_oc.php
* Merge pull request #6989 from AdamWill/google-1Robin Appelman2014-11-261-24/+32
|\ | | | | Migrate Google Drive external storage app to v1.0.6-beta of the google-api-php-client library
| * google: disable compression when curl is not availableAdam Williamson2014-11-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a slightly hacky workaround for https://github.com/google/google-api-php-client/issues/59 . There's a bug in the Google library which makes it go nuts on file uploads and transfer *way* too much data if compression is enabled and it's using its own IO handler (not curl). Upstream 'fixed' this (by disabling compression) for one upload mechanism, but not for the one we use. The bug doesn't seem to happen if the google lib detects that curl is available and decides to use it instead of its own handler. So, let's disable compression, but only if it looks like the Google lib's check for curl is going to fail.
| * scrutinizer fix: explicitly declare Google class property $clientAdam Williamson2014-11-061-0/+1
| |
| * scrutinizer fix: correct @return for getDriveFile()Adam Williamson2014-11-061-2/+3
| |
| * Migrate Google Drive storage app to v1.0.0 of the client libraryAdam Williamson2014-11-061-24/+24
| |
* | Merge pull request #12411 from owncloud/unknown-command-windowsLukas Reschke2014-11-261-7/+2
|\ \ | | | | | | Replace some more "command -v" calls with the Helper method
| * | Replace some more "command -v" calls with the Helper methodJoas Schilling2014-11-251-7/+2
| | |
* | | Replace deprecated constant with new class constantJoas Schilling2014-11-251-2/+2
|/ /
* | Merge pull request #12290 from owncloud/ext-preventbreakageduetobugs2Lukas Reschke2014-11-191-0/+8
|\ \ | | | | | | Show warning when invalid user was passed
| * | Show warning when invalid user was passedVincent Petry2014-11-141-0/+8
| |/ | | | | | | | | | | Sometimes there are bugs that cause setupFS() to be called for non-existing users. Instead of failing hard and breaking the instance, this fix simply logs a warning.
* | Do not remove dir entry if it has the same name as the parentVincent Petry2014-11-131-4/+1
| | | | | | | | | | This fixes an issue when a subdir has the same name as its parent, it would get exluded from the list.
* | fix touch() when $mtime is set (Google wants RFC3339) #11267Adam Williamson2014-11-101-1/+4
|/ | | | | | | | | | ownCloud passes us a Unix time integer, but the GDrive API wants an RFC3339-formatted date. Actually it wants a single particular RFC3339 format, not just anything that complies will do - it requires the fractions to be specified, though RFC3339 doesn't. This resolves issue #11267 (and was also noted by PVince81 in reviewing PR #6989).
* fix files_external storage id migrationJörn Friedrich Dreyer2014-10-311-3/+20
|
* Add type hinting to functionsLukas Reschke2014-10-241-1/+1
| | | | It's only reasonable to have proper type hinting here which might even help us to catch bugs.
* Use function outside of loopLukas Reschke2014-10-241-3/+4
| | | | Otherwise the function is executed n times which is a lot of overhead
* Make files non executableLukas Reschke2014-10-242-0/+0
| | | | There is not much sense in having these files marked executable, we should avoid that.
* Merge pull request #11721 from owncloud/fix-s3-regressionMorris Jobke2014-10-231-5/+11
|\ | | | | [master] Fix S3 connection regression
| * Fix S3 connectionVincent Petry2014-10-221-5/+11
| |
* | Merge pull request #11726 from owncloud/s3-fixunittestsMorris Jobke2014-10-231-0/+1
|\ \ | |/ |/| Fix S3 folder creation for new AWS API
| * Fix S3 folder creation for new AWS APIVincent Petry2014-10-221-0/+1
| | | | | | | | This also fixes the unit tests
* | Lazy initialize external storagesVincent Petry2014-10-226-107/+163
|/ | | | | | | | Fixed the following external storages to not connect in the constructor, but do it on-demand when getConnection() is called. - S3 - SWIFT - SFTP
* guess mimetype on touchJörn Friedrich Dreyer2014-10-212-2/+5
|
* Allow specifying protocol in ext storage OC configVincent Petry2014-10-131-0/+8
| | | | | | Allow specifying a protocol in the host field when mounting another ownCloud instance. Note that this was already possible with the WebDAV config but this bug made it inconsistent.
* Merge pull request #11305 from owncloud/ext-updateetagonmountVincent Petry2014-10-092-1/+170
|\ | | | | Update etag of parent dir when adding/removing ext storage mount points
| * Added PHP docs for etag propagatorVincent Petry2014-10-081-4/+17
| |
| * More phpdocRobin Appelman2014-10-081-0/+5
| |
| * Hookup the etag propagatorRobin Appelman2014-10-082-0/+17
| |
| * Add EtagPropagator to handle etag changes when external storages are changedRobin Appelman2014-10-081-0/+107
| |
| * Fix add/remove mountpoint hooksRobin Appelman2014-10-081-2/+4
| |
| * Added failing unit tests for mount config hooksVincent Petry2014-10-081-8/+8
| |