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

[Validator] add domain test for windows check dns#27559

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

Closed
beebop1032 wants to merge9 commits intosymfony:2.8frombeebop1032:ova_add_point_email_validator_dns
Closed

[Validator] add domain test for windows check dns#27559

beebop1032 wants to merge9 commits intosymfony:2.8frombeebop1032:ova_add_point_email_validator_dns

Conversation

@beebop1032
Copy link

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Bug fix compatibility windows RFC on Email validation
RFC windows check host gmailcom as gmailcom.com so its ok but is not..

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedJun 8, 2018
edited
Loading

Looks like this broke some tests.

Copy link
Member

@fabpotfabpot left a comment

Choose a reason for hiding this comment

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

The file mode change must be reverted.

Copy link
Author

@beebop1032beebop1032 left a comment

Choose a reason for hiding this comment

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

@fabpot sure. I will look at how to improve this request.

));

$this->validator->validate('foo@example.com',$constraint);
$this->validator->validate('foo@another-example.com',$constraint);
Copy link
Author

Choose a reason for hiding this comment

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

example.com.com is valid but test want violation. I continue to investigate

@fabpot
Copy link
Member

The file mode still needs to be reverted. Also, I'm not sure I understand the bug. Can you give us an example were your fix would be needed?

@beebop1032
Copy link
Author

The problem is related to this note in checkdnsrr php doc :

http://php.net/manual/fr/function.checkdnsrr.php#119969

I attach a screenshot of results that are different depending on the server

The majority problem for me is that email@gmailcom returns true (actually it tests gmailcom.com).

checkdns

@nicolas-grekasnicolas-grekas changed the titleadd point on host for windows check dns[Validator] Add dot on host for windows check dnsJun 14, 2018
@beebop1032beebop1032 changed the title[Validator] Add dot on host for windows check dns[Validator] add domain test for windows check dnsJun 19, 2018
@beebop1032
Copy link
Author

Do you need more information@fabpot ?

@beebop1032
Copy link
Author

Hi. When are you gonna look? Thanks a lot !

@xabbuh
Copy link
Member

The problem is related to this note in checkdnsrr php doc :

http://php.net/manual/fr/function.checkdnsrr.php#119969

Reading the comment in the docs wouldn't a better fix be to append a dot to the hostname when callingcheckdnsrr()?

@fabpot
Copy link
Member

Suggestion from@xabbuh sounds good, but I don't think it will work on Linux. We should try.

@beebop1032
Copy link
Author

I tested it but it doesn't work on windows. The best solution for me is to validate a parsed domain and it's faster.

@fabpot
Copy link
Member

I'm still 👎 for this change. Email validation is complex (see the various PRs on this topic) and opinionated. And I would not recommend anyone to use these options anyway, so I propose to instead deprecate checkMX and checkHost and remove them in 5.0.

beebop1032 reacted with thumbs up emoji

fabpot added a commit that referenced this pull requestOct 12, 2018
…alidator (fabpot)This PR was merged into the 4.2-dev branch.Discussion----------[Validator] Deprecate checkMX and checkHost on Email validator| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | yes| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets |fixes#27559fixes#28665| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features --><!--Write a short README entry for your feature/bugfix here (replace this comment block.)This will help people understand your PR and can be used as a start of the Doc PR.Additionally: - Bug fixes must be submitted against the lowest branch where they apply   (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch.-->Commits-------c6009a0 [Validator] deprecate checkMX and checkHost on Email validator
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

Assignees

No one assigned

Projects

None yet

Milestone

2.8

Development

Successfully merging this pull request may close these issues.

6 participants

@beebop1032@nicolas-grekas@fabpot@xabbuh@carsonbot@oliviervangest

[8]ページ先頭

©2009-2025 Movatter.jp