7a5a5531cc
If we supply a CSR that contains an empty field in the Subject, Lemur will crash with an error 500 as the ValueError exception is not captured. This change captures the exception and raises a ValidationError which in this case is a 400 sent back to client. Example to reproduce: Subject: C=ZZ, ST=Something, L=, O=My_Org, OU=My_Dept, CN=www.booking.com The empty L= causes a ValueError which needs to be captured. |
||
---|---|---|
.. | ||
__init__.py | ||
celery.py | ||
defaults.py | ||
fields.py | ||
health.py | ||
managers.py | ||
missing.py | ||
redis.py | ||
schema.py | ||
utils.py | ||
validators.py |