Skip to content

Fix potential MacAddressField crash in DRF #116

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

Merged
merged 1 commit into from
Dec 15, 2021
Merged

Conversation

tfromme
Copy link
Contributor

@tfromme tfromme commented Dec 13, 2021

Using the MACAddressField on a model, then attempting to submit an "extra large" mac address such as be:ef:be:ef:be:ef:be:ef results in an IndexError, which gets bubbled out of DRF and results in a 500 ServerError. This should raise a ValidationError instead.

Using the MACAddressField on a model, then attempting to submit an "extra large" mac address such as `be:ef:be:ef:be:ef:be:ef` results in an IndexError, which gets bubbled out of DRF and results in a 500 ServerError.  This should raise a ValidationError instead.
@jimfunk jimfunk merged commit b1ad445 into jimfunk:master Dec 15, 2021
@jimfunk
Copy link
Owner

jimfunk commented Dec 15, 2021

Thanks!

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