http 500 error if CSR presented with no CN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anchor |
Fix Released
|
Undecided
|
Dave Walker |
Bug Description
It is possible to create a CSR with the omission of a CN. This currently throws a 500 as it is an unhanded error. We can't work with a CSR like this, so we should handle this and throw a 400 Bad Request instead.
2015-06-15 16:46:45,827 ERROR [anchor.
Traceback (most recent call last):
File "/home/
valid = _run_validator(
File "/home/
validator(
File "/home/
cn = csr_get_cn(csr)
File "/home/
return data[0].get_value()
IndexError: list index out of range
2015-06-15 16:46:45,828 INFO [wsgi][
Changed in anchor: | |
assignee: | nobody → Dave Walker (davewalker) |
Changed in anchor: | |
status: | In Progress → Fix Committed |
Changed in anchor: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/191899
Review: https:/