aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18256 from nextcloud/files-aditional-scripts-new-eventsRoeland Jago Douma2019-12-091-1/+3
|\ | | | | Use non-depricated events for loading additional scripts in files app
| * use OCP\EventDispatcher\GenericEvent in more placesRobin Appelman2019-12-091-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | rejig right to left join for sqlite's satisfactionArthur Schiwon2019-12-061-3/+3
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Update license headersChristoph Wurst2019-12-0598-109/+211
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* extend with group deletion handlingArthur Schiwon2019-11-282-6/+25
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* when a user was delete remove them from applicable list, unlessArthur Schiwon2019-11-282-0/+41
| | | | | | it is the only user, then remove the mount Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Some php-cs fixesRoeland Jago Douma2019-11-2255-236/+229
| | | | | | | | | | | * 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>
* | Disable app token creation for impersonated people, ref #15539Greta Doci2019-09-151-0/+20
| | | | | | | | Signed-off-by: Greta Doci <gretadoci@gmail.com>
* | Merge pull request #16790 from nextcloud/admin-use-user-global-authRoeland Jago Douma2019-09-103-1/+79
|\ \ | | | | | | Allow admin configured mounts to use user configured global credentials
| * | allow setting user provided global credentials trough credentials popupRobin Appelman2019-09-092-2/+12
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Allow admin configured mounts to use user configured global credentialsRobin Appelman2019-09-092-0/+68
| |/ | | | | | | 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>
* delay sending event from app init to when they are neededArthur Schiwon2019-08-022-6/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fixes terminology and allows to request an IUser instanceArthur Schiwon2019-08-022-7/+23
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not send null value when string is expectedArthur Schiwon2019-08-021-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Provide proper user context from initMountPointsJulius Härtl2019-08-023-4/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* files_external: Make sure the correct user context is used in substitution ↵Julius Härtl2019-08-023-16/+71
| | | | | | of variables Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix wrong indentationDaniel Kesselberg2019-07-221-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix invalid recursionDaniel Kesselberg2019-07-211-3/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Allow hidden smb sharesDaniel Kesselberg2019-07-161-1/+1
| | | | | | | A hidden smb share ends with $. This patch changes the placeholder detection to allow shares with $ at the end. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.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>
* do not attempt to replace anything in the passwordArthur Schiwon2019-04-021-1/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use two queries to mark parent as outdatedAri Selseng2019-03-181-15/+40
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Correct log attributeAri Selseng2019-03-041-1/+1
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Added logging to Notify command.Ari Selseng2019-03-041-2/+9
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Reconnect to DB after timeout for Notify command. Fixes #14479Ari Selseng2019-03-031-10/+48
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Merge pull request #14448 from mzamot/masterRoeland Jago Douma2019-03-011-1/+1
|\ | | | | Convert value of timestamp metadata key in swift files_external
| * 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
* | Fix a bug with smb notify having leading slash when it should notAri Selseng2019-03-011-1/+1
|/ | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* 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>
* | typos in doc, no code changesArthur Schiwon2019-02-153-4/+6
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | reject mounts with unsubstituted placeholders as incompletely configuredArthur Schiwon2019-02-141-0/+30
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | add LDAP ConfigHandler for external storages and "$home" varArthur Schiwon2019-02-143-4/+3
| | | | | | | | | | | | | | | | * 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>
* | files_external: allow to register config handlers for flexible placeholdersArthur Schiwon2019-02-147-18/+282
|/ | | | | | | | * BackendService (directly accessable via \OC_Server) offers registerConfigHandler * SimpleSubstitutionTrait brings reusable logic for simple string replacments * internal $user replacement mechanism was migrated Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>