Skip to content

Use flysystem for the ftp backend - #14551

Closed
icewind1991 wants to merge 6 commits into
masterfrom
flysystem
Closed

icewind1991 wants to merge 6 commits into
masterfrom
flysystem

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

Our current ftp backend has some issues (not passing all unit tests, mostly unmaintained).

This switches the ftp backend to use flysystem which is done by introducing a wrapper to make flysystem compatible with our storage system.

cc @DeepDiver1975 @PVince81

@PVince81

Copy link
Copy Markdown
Contributor

also CC @Xenopathic

@icewind1991

Copy link
Copy Markdown
Contributor Author

@owncloud-bot retest this please

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 7 new issues, 8 updated code elements

@DeepDiver1975 DeepDiver1975 added this to the 8.1-current milestone Feb 26, 2015
@LukasReschke

Copy link
Copy Markdown
Contributor

Not sure why, doesn't work. Same config work fine on master:

Array
(
    [Exception] => Array
        (
            [Message] => File not found at path: 
            [Code] => 0
            [Trace] => #0 /Users/lreschke/Programming/owncloud/master/apps/files_external/3rdparty/league/flysystem/src/Filesystem.php(480): League\Flysystem\Filesystem->assertPresent('')
#1 /Users/lreschke/Programming/owncloud/master/apps/files_external/3rdparty/league/flysystem/src/Plugin/GetWithMetadata.php(31): League\Flysystem\Filesystem->getMetadata('')
#2 [internal function]: League\Flysystem\Plugin\GetWithMetadata->handle('', Array)
#3 /Users/lreschke/Programming/owncloud/master/apps/files_external/3rdparty/league/flysystem/src/Plugin/PluggableTrait.php(66): call_user_func_array(Array, Array)
#4 /Users/lreschke/Programming/owncloud/master/apps/files_external/3rdparty/league/flysystem/src/Filesystem.php(564): League\Flysystem\Filesystem->invokePlugin('getWithMetadata', Array, Object(League\Flysystem\Filesystem))
#5 /Users/lreschke/Programming/owncloud/master/apps/files_external/lib/flysystem.php(157): League\Flysystem\Filesystem->__call('getWithMetadata', Array)
#6 /Users/lreschke/Programming/owncloud/master/apps/files_external/lib/flysystem.php(157): League\Flysystem\Filesystem->getWithMetadata('', Array)
#7 /Users/lreschke/Programming/owncloud/master/lib/private/files/storage/common.php(419): OCA\Files_External\Flysystem->stat('')
#8 /Users/lreschke/Programming/owncloud/master/apps/files_external/lib/config.php(463): OC\Files\Storage\Common->test(false)
#9 /Users/lreschke/Programming/owncloud/master/apps/files_external/lib/config.php(545): OC_Mount_Config::getBackendStatus('\\OC\\Files\\Stora...', Array, false)
#10 /Users/lreschke/Programming/owncloud/master/apps/files_external/ajax/addMountPoint.php(46): OC_Mount_Config::addMountPoint('FTP', '\\OC\\Files\\Stora...', Array, 'group', 'admin', false)
#11 /Users/lreschke/Programming/owncloud/master/lib/private/route/route.php(151) : runtime-created function(1): require_once('/Users/lreschke...')
#12 [internal function]: __lambda_func(Array)
#13 /Users/lreschke/Programming/owncloud/master/lib/private/route/router.php(270): call_user_func('\x00lambda_2221', Array)
#14 /Users/lreschke/Programming/owncloud/master/lib/base.php(825): OC\Route\Router->match('/apps/files_ext...')
#15 /Users/lreschke/Programming/owncloud/master/index.php(38): OC::handleRequest()
#16 {main}
            [File] => /Users/lreschke/Programming/owncloud/master/apps/files_external/3rdparty/league/flysystem/src/Filesystem.php
            [Line] => 533
        )

)

@LukasReschke

Copy link
Copy Markdown
Contributor

@DeepDiver1975

Copy link
Copy Markdown
Contributor

I tend to move this to 8.2 - just that we do not loose focus on the tasks for 8.1

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.2-next, 8.1-current Feb 27, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

Spending research time will still be valid trough out the next weeks 🙊

@ghost

ghost commented Apr 30, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/12024/
💣 Test FAILed. 💣

nooo432

@cdamken

cdamken commented May 26, 2015

Copy link
Copy Markdown
Contributor

@DeepDiver1975 Will be in 8.2-next?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@icewind1991 we shall take the opportunity to extract this to it's own app and repo.

@butonic will move his curl based implementation #16568 into an isolated app as well.

@icewind1991

Copy link
Copy Markdown
Contributor Author

It might make sense to have the generic flysystem stuff core so we can have apps implementing the various flysystem backends with minimal code

@DeepDiver1975

Copy link
Copy Markdown
Contributor

It might make sense to have the generic flysystem stuff core so we can have apps implementing the various flysystem backends with minimal code

yes - indeed

  • flysystem to 3rdparty
  • some base adapter-fu in core
  • any explicit implementation in it's own repos

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

@icewind1991 @cdamken ping, we need this for 8.2

@icewind1991

Copy link
Copy Markdown
Contributor Author

Work is being done here: https://github.com/icewind1991/files_external_ftp

Atm all tests succeed when running against proftpd, when running againsts vsftpd or pure-ftpd there are various issues but I dont know if those exists in the ftp backend we currently ship

@DeepDiver1975 DeepDiver1975 modified the milestones: 9.0-next, 8.2-current Sep 18, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

Work is being done here: https://github.com/icewind1991/files_external_ftp

@icewind1991 I guess we can close this one - right? THX

@icewind1991

Copy link
Copy Markdown
Contributor Author

Yes

@icewind1991
icewind1991 deleted the flysystem branch October 28, 2015 12:40
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants