freeipa / freeipa-community-portal

[ABANDONED] FreeIPA Community Portal extension
GNU General Public License v3.0
4 stars 6 forks source link

CherryPy debug logger reveals internals #6

Open tiran opened 8 years ago

tiran commented 8 years ago

Some errors reveal internal information like paths when an error occurs. Debug mode and tracebacks should be disabled by default.

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/srv/freeipa-community-portal/lib/python2.7/site-packages/freeipa_community_portal/app.py", line 69, in POST
    SignUpMailer(user).mail()
  File "/srv/freeipa-community-portal/lib/python2.7/site-packages/freeipa_community_portal/mailers/mailer.py", line 65, in mail
    self._send(contents)
  File "/srv/freeipa-community-portal/lib/python2.7/site-packages/freeipa_community_portal/mailers/mailer.py", line 81, in _send
    server = smtplib.SMTP(MAIL_SERVER, SMTP_PORT)
  File "/usr/lib64/python2.7/smtplib.py", line 256, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib64/python2.7/smtplib.py", line 316, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib64/python2.7/smtplib.py", line 291, in _get_socket
    return socket.create_connection((host, port), timeout)
  File "/usr/lib64/python2.7/socket.py", line 557, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

Powered by CherryPy 3.5.0