Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

[BrowserKit] fixed missing post request parameters in file uploads#36181

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:4.4fromcodebay:multipart-missing-textplain-parameters
Mar 28, 2020
Merged

[BrowserKit] fixed missing post request parameters in file uploads#36181

fabpot merged 1 commit intosymfony:4.4fromcodebay:multipart-missing-textplain-parameters
Mar 28, 2020

Conversation

@codebay
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
LicenseMIT

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

]);
}

publicfunctiontestMultiPartRequestWithAdditonalParameters()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
publicfunctiontestMultiPartRequestWithAdditonalParameters()
publicfunctiontestMultiPartRequestWithAdditionalParameters()


if ($uploadedFiles =$this->getUploadedFiles($request->getFiles())) {
$part =newFormDataPart($uploadedFiles);
$part =newFormDataPart(array_merge($uploadedFiles,$fields));
Copy link
Member

Choose a reason for hiding this comment

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

Here, the order looks wrong. We should probably swap $fields and $uploadedFiles (to be consistent with the previous behavior). Also, can you add a test to avoid any regression in the future.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good spot, I've fixed this and created a second test as suggested. BTW Enjoyed watching the pull request being reviewed online.

@codebay
Copy link
ContributorAuthor

codebay commentedMar 27, 2020
edited
Loading

Oops sorry rebased branch with master not 4.4 by accident, how do I reverse this?

@bobvandevijver
Copy link
Contributor

I would hard reset this branch on 4.4, and then chery-pick the relevant commits for this PR

@codebay
Copy link
ContributorAuthor

codebay commentedMar 27, 2020
edited
Loading

Thank you for the advice, hopefully all fixed now.

@fabpot
Copy link
Member

Thank you@codebay.

@fabpotfabpot merged commitb580dd8 intosymfony:4.4Mar 28, 2020
@codebaycodebay deleted the multipart-missing-textplain-parameters branchMarch 28, 2020 16:24
This was referencedMar 30, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@dunglasdunglasAwaiting requested review from dunglas

@jderussejderusseAwaiting requested review from jderusse

@lyrixxlyrixxAwaiting requested review from lyrixx

@srozesrozeAwaiting requested review from sroze

@xabbuhxabbuhAwaiting requested review from xabbuh

+1 more reviewer

@bobvandevijverbobvandevijverbobvandevijver left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

5 participants

@codebay@bobvandevijver@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp