Skip to content

Conversation

isoos
Copy link
Collaborator

@isoos isoos commented Apr 10, 2018

Closes #1081

Manual testing revealed that pub client already validates against missing values and values without http(s) prefixes. However it accepted eg. http://, and now we are filtering those too.

I think that manually accessing the web page is not a strict requirement at upload time, because it may be that it has a temporary access issue, and I wouldn't block uploads on that. However, it is reasonable to make it part of the package analysis, and give some penalty if the homepage is 404. We have already an open issue for it here: dart-lang/pana#287

Copy link
Contributor

@jakobr-google jakobr-google left a comment

Choose a reason for hiding this comment

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

LGTM

@isoos isoos merged commit 551a23d into dart-lang:master Apr 11, 2018
@isoos isoos deleted the url_validation branch April 11, 2018 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forbid uploads of packages with homepage "example.com"
3 participants