-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[BrowserKit] Nested file array prevents uploading file #35827
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
Conversation
I don't understand what's wrong with thew CI system. Appveyor reports an error despite having all checks green. fabpot.io reports CS issues. I went and fixed CS issues in preexisting code as per the CONTRIBUTING.md docs, and now fabpot.io reports reports one more issue than previously. I have no idea what I'm expected to do here to pass the build. The rules are obfuscated and this bug is going to affect my workshop on Monday. |
3c2dc58
to
dae8f18
Compare
dae8f18
to
e15f05e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @afilina.
I rebased your PR to target 4.4 + fixed some minor CS issues meanwhile.
Thank you @afilina. |
… uploads (codebay) This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [BrowserKit] fixed missing post request parameters in file uploads | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT Pull Request #35827 "[BrowserKit] Nested file array prevents uploading file" introduced a bug that had not been previously covered by unit tests for the component. Requests that include additional parameters with a file upload are not being included Commits ------- 7abee62 [BrowserKit] fixed missing post request parameters in file uploads
The HttpBrowser doesn't play nicely with Symfony\Component\DomCrawler::getPhpFiles().
The former assumes a flat array structure, while the latter explicitly un-flattens it, causing files to silently get ignored by the DomCrawler's submitForm.