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

Add FTP to composer.json #39084

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

rafaelstz
Copy link
Member

@rafaelstz rafaelstz commented Aug 21, 2024

Description (*)

PHP 8.2.15 removed the FTP extension, so I created this PR to add it as part of the dependencies.

Related Pull Requests

  1. Add FTP ext to PHP 8.2 and 8.3 magento-cloud-docker#367

Fixed Issues (if relevant)

  1. Fixes magento/magento2#39083

Manual testing scenarios (*)

  1. Try to use CSV import via FTP on PHP 8.2.15 or greater

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Copy link

m2-assistant bot commented Aug 21, 2024

Hi @rafaelstz. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.

Add the comment under your pull request to deploy test or vanilla Magento instance:
  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@m2-github-services m2-github-services added Partner: Le Site partners-contribution Pull Request is created by Magento Partner labels Aug 21, 2024
@engcom-Hotel engcom-Hotel added the Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. label Aug 22, 2024
@ihor-sviziev
Copy link
Contributor

@rafaelstz where is this funtionality is used?

@hostep
Copy link
Contributor

hostep commented Aug 22, 2024

@ihor-sviziev, only in 2 classes as far as I can see:

So yeah, it's indeed missing in the dependency declaration of the framework and the global composer.json files.
So @rafaelstz, you should add it as well in this file: https://github.com/magento/magento2/blob/2.4.7-p2/lib/internal/Magento/Framework/composer.json

(the statement PHP 8.2.15 removed FTP extension however makes not much sense, it's not being mentioned in https://www.php.net/ChangeLog-8.php#8.2.15, it's probably the vendor from where you get php that removed it, which might be different depending on operating system and package supplier, anyway, it doesn't make the issue invalid
update: it seems like it got removed from the docker image indeed)

@rafaelstz
Copy link
Member Author

rafaelstz commented Aug 24, 2024

@ihor-sviziev @hostep
Ext added to the /lib/internal/Magento/Framework/composer.json

@engcom-Bravo engcom-Bravo added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Aug 26, 2024
@Priyakshic Priyakshic added the Project: Community Picked PRs upvoted by the community label Sep 12, 2024
@engcom-Bravo
Copy link
Contributor

Hello,

Internal team has started to work on it

Thanks.

@engcom-Charlie
Copy link
Contributor

As per this moving this to On Hold until further updates.

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit 02457f9 into magento:2.4-develop Oct 19, 2024
1 check passed
@hostep
Copy link
Contributor

hostep commented Oct 19, 2024

@engcom-Charlie, @glo60612, it was merged and then reverted again, so it didn't made it in the codebase, is there an explanation for this?

@engcom-Bravo
Copy link
Contributor

engcom-Bravo commented Oct 29, 2024

@hostep Thanks for your Contribution!!!.

Hi @rafaelstz

There are no changes to composer.lock, it should be updated. We excluded these changes because we need to evaluate if the new dependency that you are adding to the env is really needed. Also, please add test scenario for this issue, currently it's not clear what use cases has a bug.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Partner: Le Site partners-contribution Pull Request is created by Magento Partner Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: ready for testing Project: Community Picked PRs upvoted by the community Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Status: Recently Merged
Development

Successfully merging this pull request may close these issues.

PHP 8.2.15 removed FTP extension
9 participants