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

[Form] do not validate non-submitted form fields in PATCH requests#30265

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
xabbuh merged 1 commit intosymfony:3.4fromxabbuh:issue-24453
Feb 21, 2019

Conversation

@xabbuh
Copy link
Member

@xabbuhxabbuh commentedFeb 15, 2019
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#11493,#19788,#20805,#24453,#30011
LicenseMIT
Doc PR

When a form field is not embedded as part of a HTTP PATCH requests, its
validation constraints configured through theconstraints option must
not be evaluated. The fix from#10567 achieved this by not mapping their
violations to the underlying form field. This however also means that
constraint violations caused by validating the whole underlying data
object will never cause the form to be invalid. This breaks use cases
where some constraints may, for example, depend on the value of other
properties that were changed by the submitted data.

HeahDude, Koc, and ogizanagi reacted with hooray emoji
Copy link
Contributor

@HeahDudeHeahDude left a comment

Choose a reason for hiding this comment

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

LGTM, this is so nice to approve such a PR :). Thank you so much!

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

uninformed vote, but still happy and confident you solved that many (old) issues :)

xabbuh reacted with laugh emoji
@xabbuhxabbuh merged commita60d802 intosymfony:3.4Feb 21, 2019
xabbuh added a commit that referenced this pull requestFeb 21, 2019
…requests (xabbuh)This PR was merged into the 3.4 branch.Discussion----------[Form] do not validate non-submitted form fields in PATCH requests| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#11493,#19788,#20805,#24453,#30011| License       | MIT| Doc PR        |When a form field is not embedded as part of a HTTP PATCH requests, itsvalidation constraints configured through the `constraints` option mustnot be evaluated. The fix from#10567 achieved this by not mapping theirviolations to the underlying form field. This however also means thatconstraint violations caused by validating the whole underlying dataobject will never cause the form to be invalid. This breaks use caseswhere some constraints may, for example, depend on the value of otherproperties that were changed by the submitted data.Commits-------a60d802 do not validate non-submitted form fields in PATCH requests
@xabbuhxabbuh deleted the issue-24453 branchFebruary 21, 2019 07:33
@ogizanagi
Copy link
Contributor

Confirming this is solving the issue, as I've just hit it and tried this patch 😉
Thanks for fixing it :)

xabbuh and HeahDude reacted with thumbs up emoji

@xabbuh
Copy link
MemberAuthor

Thanks for the confirmation@ogizanagi!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@HeahDudeHeahDudeHeahDude approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@ogizanagi@nicolas-grekas@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp