cname_lookup middleware fails if requested domain does not resolve
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Colin Nicholson |
Bug Description
The cname_lookup middleware plugin raises an exception if the domain in the request does not resolve.
Reading the code, it would seem that the NXDOMAIN exception is caught and dealt with, but this does not seem to be the case.
This means that any swift request using localhost or 127.0.0.1 or anything else that doesn't resolve will fail.
Jan 20 12:39:04 Proxy2 proxy-server Error: : Traceback (most recent call last): File "/usr/local/
Related branches
- Chuck Thier (community): Approve
- John Dickinson: Approve
-
Diff: 18 lines (+2/-1)1 file modifiedswift/common/middleware/cname_lookup.py (+2/-1)
Changed in swift: | |
assignee: | nobody → Colin Nicholson (colin-nicholson) |
Changed in swift: | |
status: | New → Fix Committed |
Changed in swift: | |
milestone: | none → 1.2.0 |
Changed in swift: | |
status: | Fix Committed → Fix Released |