Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Asset] Fix JsonManifest when there is no dependency on HttpClient #39865

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

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

maxhelias
Copy link
Contributor

@maxhelias maxhelias commented Jan 17, 2021

Q A
Branch? 5.x
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Recently on my project, I don't have any more dependency on HttpClient and the tests on the 5.x I have this error :

Capture d’écran 2021-01-17 à 14 26 16

I think this should also be the case for the RemoteJsonManifestVersionStrategy but I don't have a use case to try it.

It's related to #39484

@carsonbot
Copy link

Hey!

I had a quick look at this PR, I think it is alright.

I think @jschaedl has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a bugfix to me, can you please target the corresponding bugfix branch?

@maxhelias
Copy link
Contributor Author

Hi @nicolas-grekas,

This has been introduced in the 5.x branch for the 5.3.
So if we want the HttpClient to be 100% explicit, I can remove the condition !class_exists(HttpClient::class) and throw the exception with a better message ? It will be easier to test like that

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Jan 18, 2021

Yes please:
if (null === $this->httpClient && 0 === strpos(parse_url($this->manifestPath, \PHP_URL_SCHEME), 'http')) {

@maxhelias maxhelias force-pushed the fix-json-manifest branch 2 times, most recently from 76e185f to 63d9bd1 Compare January 18, 2021 12:12
@maxhelias maxhelias force-pushed the fix-json-manifest branch 2 times, most recently from 137ddab to e96c325 Compare January 18, 2021 13:47
@fabpot
Copy link
Member

fabpot commented Jan 18, 2021

Thank you @maxhelias.

@fabpot fabpot merged commit 2941951 into symfony:5.x Jan 18, 2021
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.