aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #26397 from nextcloud/external-storage-login-ldap-publicblizzz2021-06-071-3/+34
|\ | | | | allow using any ldap property as login name when using external storage login credentials
| * allow using any ldap property as login name when using external storage ↵Robin Appelman2021-06-031-3/+34
| | | | | | | | | | | | login credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0458-67/+14
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Spelling unificationValdnet2021-05-212-2/+2
| | | | | Spelling unification in Transifex. Signed-off-by: Valdnet 47037905+Valdnet@users.noreply.github.com
* 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>
* 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>
* | catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-041-1/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.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>
* / Don't save credentials of another userJoas Schilling2021-01-201-0/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #23261 from nextcloud/enh/external-storage-session-typeMorris Jobke2021-01-071-2/+4
|\ | | | | Expose session based authentication through mount point type
| * Expose session based authentication through mount point typeJulius Härtl2020-12-211-2/+4
| | | | | | | | 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-1611-12/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* set mountid for personal external storage mountsRobin Appelman2020-12-021-2/+3
| | | | 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>
* 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>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-053-15/+15
| | | | 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>
* 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>
* Fix reading empty files from objectstorageRoeland Jago Douma2020-09-091-2/+8
| | | | | | | | Since we try to do range requests this will fail hard. However since empty files are not that interesting to read anyways we just read from an emptry memory stream. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21734 from nextcloud/external-s3-no-touchMorris Jobke2020-08-201-17/+1
|\ | | | | disable touch to update mtime for external s3 storage
| * disable touch to update mtime for external s3 storageRobin Appelman2020-07-071-17/+1
| | | | | | | | | | | | since updating the mtime requires doing a copy this can have a significant overhead and it messes with versioning Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-192-3/+3
| | | | | | | | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove setCustomJs of the files_external FrontendDefinitionTraitMorris Jobke2020-08-131-10/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove unused method uploadFileDaniel Kesselberg2020-08-131-9/+0
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Move event listener to dedicated classMorris Jobke2020-07-301-22/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | update saved credentials on password changeRobin Appelman2020-07-301-1/+27
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Only save login credentials in database once there is an external storage ↵Robin Appelman2020-07-301-23/+29
| | | | | | | | | | | | that needs it Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #21728 from nextcloud/bugfix/noid/s3-external-mtime-cacheMorris Jobke2020-07-151-0/+6
|\ \ | | | | | | Reuse cache for directory mtime/size if filesystem changes can be ignored
| * | Reuse cache for directory mtime/size if filesystem changes can be ignoredJulius Härtl2020-07-071-0/+6
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #21785 from ↵Morris Jobke2020-07-131-1/+1
|\ \ | | | | | | | | | | | | nextcloud/techdebt/noid/remove-classmap-in-files_external Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH us…
| * | Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-101-1/+1
| |/ | | | | | | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / filter files containing a hash in the path for ftp storagesRobin Appelman2020-07-101-0/+17
|/ | | | | | | | the php ftp streamwrapper doesn't handle hashes correctly and will break when it tries to enter a path containing a hash. By filtering out paths containing a hash we can at least stop the external storage from breaking completely Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove rescanDelay from directory mtimeJulius Härtl2020-06-221-6/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* normalize sftp path in read and write streamRobin Appelman2020-05-252-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-2916-1/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add tooltip to optionRobin Appelman2020-04-221-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add option to check share ACL's when listing directoriesRobin Appelman2020-04-212-0/+37
| | | | | | | | | | | | | | If a file or folder in a directory doesn't have read permissions they will not be shown Note that enabling this option incurs a performance penalty additional requests need to be made to get all the acl. Additionally the acl resolving logic is fairly primitive at the moment and might not work correctly in all setups (it should error to showing the entry) Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add method to storage backends to get directory content with metadataRobin Appelman2020-04-201-8/+57
| | | | | | | | | | | | | | | | | Currently you need to use `opendir` and then call `getMetadata` for every file, which adds overhead because most storage backends already get the metadata when doing the `opendir`. While storagebackends can (and do) use caching to relief this problem, this adds cache invalidation dificulties and only a limited number of items are generally cached (to prevent memory usage exploding when scanning large storages) With this new methods storage backends can use the child metadata they got from listing the folder to return metadata without having to keep seperate caches. Signed-off-by: Robin Appelman <robin@icewind.nl>