{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/15749","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/15749/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/15749/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/15749/events","html_url":"https://github.com/laravel/framework/issues/15749","id":180882922,"number":15749,"title":"FTP Storage driver appears to issue directory commands when working with files. (Not sure if intentional?)","user":{"login":"ryanmortier","id":2053960,"avatar_url":"https://avatars.githubusercontent.com/u/2053960?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmortier","html_url":"https://github.com/ryanmortier","followers_url":"https://api.github.com/users/ryanmortier/followers","following_url":"https://api.github.com/users/ryanmortier/following{/other_user}","gists_url":"https://api.github.com/users/ryanmortier/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmortier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmortier/subscriptions","organizations_url":"https://api.github.com/users/ryanmortier/orgs","repos_url":"https://api.github.com/users/ryanmortier/repos","events_url":"https://api.github.com/users/ryanmortier/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmortier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-04T12:45:18Z","updated_at":"2016-10-06T12:58:38Z","closed_at":"2016-10-06T12:58:38Z","body":"- Laravel Version: 5.3.15\r\n- PHP Version: 7.0.8\r\n- Database Driver & Version: MySQL 5.7.15\r\n\r\n### Description:\r\nI'm using the FTP storage driver. This is how my FTP config is setup in `config/filesystems.php`\r\n\r\n```php\r\n        'ftp' => [\r\n            'driver'   => 'ftp',\r\n            'host'     => env('FTP_HOST'),\r\n            'username' => env('FTP_USERNAME'),\r\n            'password' => env('FTP_PASSWORD'),\r\n            'port'     => env('FTP_PORT'),\r\n            'root'     => '',\r\n            'passive'  => true,\r\n            'ssl'      => true,\r\n            'timeout'  => 30,\r\n        ],\r\n```\r\n\r\n### Steps To Reproduce:\r\nThese are the only two storage commands I'm using:\r\n\r\n```php\r\n        if (Storage::disk('ftp')->exists($this->file_name)) {\r\n            if ($this->file = Storage::disk('ftp')->get($this->file_name)) {\r\n                // do stuff with file\r\n            }\r\n        }\r\n```\r\n\r\nMy FTP server (FileZilla) is reporting warnings because these commands are issuing directory commands when I'm working with a file. The file transfer works (which makes me think this might be intentional for some reason). Here is my FTP server log so you can see what I'm talking about:\r\n\r\n```\r\nConnected on port 21, sending welcome message...\r\n220 Welcome to [redacted] FTP service.\r\nAUTH TLS\r\n234 Using authentication type TLS\r\nTLS connection established\r\nPBSZ 0\r\n200 PBSZ=0\r\nPROT P\r\n200 Protection level set to P\r\nUSER [redacted]\r\n331 Password required for [redacted]\r\nPASS ********************\r\n230 Logged on\r\nPASV\r\n227 Entering Passive Mode ([redacted])\r\nCWD /\r\n250 CWD successful. \"/\" is current directory.\r\nPWD\r\n257 \"/\" is current directory.\r\nCWD CustomerList.CSV\r\n550 CWD failed. \"/CustomerList.CSV\": directory not found.\r\nTYPE A\r\n200 Type set to A\r\nLIST -A CustomerList.CSV\r\n150 Opening data channel for directory listing of \"/CustomerList.CSV\"\r\nTLS connection for data connection established\r\n226 Successfully transferred \"/CustomerList.CSV\"\r\nPASV\r\n227 Entering Passive Mode ([redacted])\r\nLIST /\r\n150 Opening data channel for directory listing of \"/\"\r\nTLS connection for data connection established\r\n226 Successfully transferred \"/\"\r\nCWD CustomerList.CSV\r\n550 CWD failed. \"/CustomerList.CSV\": directory not found.\r\nPASV\r\n227 Entering Passive Mode ([redacted])\r\nLIST -A CustomerList.CSV\r\n150 Opening data channel for directory listing of \"/CustomerList.CSV\"\r\nTLS connection for data connection established\r\n226 Successfully transferred \"/CustomerList.CSV\"\r\nPASV\r\n227 Entering Passive Mode ([redacted])\r\nLIST /\r\n150 Opening data channel for directory listing of \"/\"\r\nTLS connection for data connection established\r\n226 Successfully transferred \"/\"\r\nTYPE I\r\n200 Type set to I\r\nPASV\r\n227 Entering Passive Mode ([redacted])\r\nRETR CustomerList.CSV\r\n150 Opening data channel for file download from server of \"/CustomerList.CSV\"\r\nTLS connection for data connection established\r\n226 Successfully transferred \"/CustomerList.CSV\"\r\n```\r\n\r\nSpecifically, it's the multiple `CWD CustomerList.CSV` commands. CWD is a \"change working directory\" command. However, `CustomerList.CSV` is a file.\r\n\r\nThank you."}}
{"actor":{"display_login":"GrahamCampbell"}}