Skip to content
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

fix(core-magistrate-crypto): improve 'name' field validation to avoid illegal characters #3148

Merged
merged 6 commits into from
Oct 28, 2019
Merged

Conversation

Lemii
Copy link
Contributor

@Lemii Lemii commented Oct 27, 2019

Summary

Closes #3125.

The chosen validation for Business and Bridgechain names is a RegEx that validates for alphanumeric characters, with the addition of a lowercase and dash. This validation has been saved as the 'genericName' schema.

Addtional schemas and validation on the website and repository fields has intentionally not been created as it's out of scope of this PR (+ ongoing discussion in #3106 ).

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@ghost
Copy link

ghost commented Oct 27, 2019

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@faustbrian
Copy link
Contributor

@Lemii could you add some functional tests that ensure that transactions with invalid names get properly rejected and thus not forged?

@Lemii
Copy link
Contributor Author

Lemii commented Oct 28, 2019

@faustbrian Yes, will do.

EDIT: Done

@ghost
Copy link

ghost commented Oct 28, 2019

A collaborator has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.

Thank you for your contribution!

@faustbrian faustbrian merged commit e67abe7 into ArkEcosystem:develop Oct 28, 2019
@ghost
Copy link

ghost commented Oct 28, 2019

Your pull request has been merged and marked as tier 4. It will earn you $20 USD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants