Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed phpseclib\Net\SFTP constants used in write() method #6894

Merged
merged 1 commit into from
Mar 21, 2017
Merged

Fixed phpseclib\Net\SFTP constants used in write() method #6894

merged 1 commit into from
Mar 21, 2017

Conversation

federivo
Copy link
Member

@federivo federivo commented Oct 6, 2016

I noticed the \Magento\Framework\Filesystem\Io\Sftp class was modified to use an updated phpseclib library in commit 1383a49

The write method uses the constants NET_SFTP_LOCAL_FILE and NET_SFTP_STRING that worked just fine prior the library update. Since the library has changed, these constants are outdated and the write method throws this:
Notice: Use of undefined constant NET_SFTP_LOCAL_FILE - assumed 'NET_SFTP_LOCAL_FILE' in /var/www/releases/release-0/vendor/magento/framework/Filesystem/Io/Sftp.php on line 187

when trying to use it.

I modified the constants according the actual library used in Magento. Please refer to https://github.com/phpseclib/phpseclib/blob/master/phpseclib/Net/SFTP.php to verify correctness.

Regards.

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Oct 6, 2016

CLA assistant check
All committers have signed the CLA.

@federivo
Copy link
Member Author

@orlangur @vkublytskyi This is still broken in current dev branch. Any news? Can I help with something in order to get this merged?

Regards!

@orlangur
Copy link
Contributor

Hi @federivo, from https://github.com/magento/magento2/projects/3 it looks like things are heating up ;) Let's wait a little more time or you can try to ping some active community PR reviewer directly.

@federivo
Copy link
Member Author

Thank you @orlangur :)

@vrann vrann self-assigned this Mar 20, 2017
@vrann vrann added this to the March 2017 milestone Mar 20, 2017
@magento-team magento-team merged commit 5e9fe60 into magento:develop Mar 21, 2017
@vrann
Copy link
Contributor

vrann commented Mar 21, 2017

@federivo Thank you for the contribution.

@federivo federivo deleted the phpseclib-net-sftp-constants branch March 24, 2017 00:05
@chrismshea
Copy link

@vrann Any idea when this will make it into a release?

magento-engcom-team pushed a commit that referenced this pull request May 29, 2021
[Arrows] MC-24548: collect-totals API call not updating the selected shippingMethod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants