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

Updating .lock files for security reasons #846

Merged
merged 1 commit into from Sep 3, 2018
Merged

Updating .lock files for security reasons #846

merged 1 commit into from Sep 3, 2018

Conversation

bobdenotter
Copy link
Contributor

Currently, composer install as well as Travis CI fails, because of symfony/http-foundation (v4.1.1):

https://symfony.com/blog/cve-2018-14773-remove-support-for-legacy-and-risky-http-headers

screen shot 2018-08-12 at 15 14 37

This PR updates the composer.lock and symfony.lock files to use the latest Symfony 4.1.3. Should also fix Travis breakage on #845.

@bobdenotter
Copy link
Contributor Author

The build now breaks on this:

PHPUnit 6.5.11 by Sebastian Bergmann and contributors.

Testing Project Test Suite
..................................................                50 / 50 (100%)

Time: 1.03 minutes, Memory: 56.25MB

OK (50 tests, 92 assertions)

Remaining deprecation notices (1)

  1x: Doctrine\Common\ClassLoader is deprecated.
    1x in BlogControllerTest::testAdminBackendHomePage from App\Tests\Controller\Admin

Which is something that (i think) needs to be fixed upstream:

symfony/symfony#28119

@bshaffer
Copy link

Looks like this demo application doesn't work w/o this fix. Is this still being maintained?

@stof
Copy link
Member

stof commented Aug 17, 2018

a solution to avoid this issue would be to update Symfony packages, but not Doctrine ones (until Doctrine ORM makes another release removing the usage of the deprecated API)

@stof
Copy link
Member

stof commented Aug 17, 2018

@bshaffer the demo app works. It reports being affected by a security vulnerability, but that's not "not working".
And this PR cannot be merged as is, as it turns the CI red.

@bobdenotter bobdenotter reopened this Aug 17, 2018
@bobdenotter
Copy link
Contributor Author

@stof

a solution to avoid this issue would be to update Symfony packages, but not Doctrine ones

I've updated the PR like that, but now Travis passes on PHP 7.2, but not on PHP 7.1:

Executing script security-checker security:check [KO]
 [KO]
Script security-checker security:check returned with error code 1
!!                                                                     
!!    An error occurred: gnutls_handshake() failed: Handshake failed.  
!!                                                                     
!!  
Script @auto-scripts was called via post-install-cmd
The command "composer install" failed and exited with 1 during .
Your build has been stopped.

Suggestions on how to proceed?

@bshaffer
Copy link

I meant it doesn't work because it throws an error on create-project. You're right, if you ignore the error it works. But it breaks build scripts unless you suppress the error with || true

@bobdenotter
Copy link
Contributor Author

Update: That took a little bit of trial and error, but the tests are green again.

  • Updated symfony/* components to 4.1.3
  • Updated composer/ca-bundle to 1.1.2
  • Set Travis to use PHP 7.1.18, instead of 7.1.6 or something

See here for details on the TLS issue workaround: travis-ci/travis-ci#6339

If/when Travis fixes this properly, i'll revert travis.yml to use plain 7.1 again.

@javiereguiluz
Copy link
Member

javiereguiluz commented Sep 3, 2018

@bobdenotter I warmly appreciate your work to fix this issue and to investigate all these problems. Sorry for the late merge.

@bshaffer I'm sorry for these issues. About the Symfony Demo app, we intend to keep updating and evolving it. It's an important tool for us to showcase and teach Symfony. If you find any further issues or if you think we can help you making this app more cloud-friendly, just ask us. Thanks!

@javiereguiluz javiereguiluz merged commit 318d101 into symfony:master Sep 3, 2018
javiereguiluz added a commit that referenced this pull request Sep 3, 2018
This PR was merged into the master branch.

Discussion
----------

Updating `.lock` files for security reasons

Currently, `composer install` as well as Travis CI fails, because of symfony/http-foundation (v4.1.1):

https://symfony.com/blog/cve-2018-14773-remove-support-for-legacy-and-risky-http-headers

![screen shot 2018-08-12 at 15 14 37](https://user-images.githubusercontent.com/1833361/44002460-14b8afc6-9e43-11e8-873e-d5182cd20849.png)

This PR updates the `composer.lock` and `symfony.lock` files to use the latest Symfony 4.1.3. Should also fix Travis breakage on #845.

Commits
-------

318d101 Updating `.lock` files for security reasons
@bobdenotter
Copy link
Contributor Author

@javiereguiluz You're welcome! I noticed some breakage in the NPM/Encore worklfow as well. Now that this has been merged, expect a PR to straighten that one out, too.

javiereguiluz added a commit that referenced this pull request Sep 7, 2018
…cations (bobdenotter)

This PR was squashed before being merged into the master branch (closes #855).

Discussion
----------

Updating composer deps, don't fail tests on vendor deprecations

Follows #846, replaces #854

I've taken the liberty of updating @nicolas-grekas' PR to update flex to 1.1, whilst keeping bound constraints for the symfony components.

Tests would fail on a deprecation in doctrine/common. I have also added a temporary `SYMFONY_DEPRECATIONS_HELPER=weak_vendors`, so it'll pass tests. After Symfony 4.2 has been released, I'll remove it.

Commits
-------

bbe1e49 Updating composer deps, don't fail tests on vendor deprecations
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

5 participants