[Zope-Checkins] SVN: Zope/trunk/ - Launchpad ##332168: Connection.py: do not expose DB connection strings

Andreas Jung andreas at andreas-jung.com
Sat Feb 21 10:26:02 EST 2009


Log message for revision 96949:
  
  - Launchpad ##332168: Connection.py: do not expose DB connection strings
    through exceptions
  

Changed:
  U   Zope/trunk/doc/CHANGES.rst
  U   Zope/trunk/src/Shared/DC/ZRDB/Connection.py

-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst	2009-02-21 15:18:00 UTC (rev 96948)
+++ Zope/trunk/doc/CHANGES.rst	2009-02-21 15:26:01 UTC (rev 96949)
@@ -134,6 +134,9 @@
 Bugs Fixed
 ++++++++++
 
+- Launchpad ##332168: Connection.py: do not expose DB connection strings
+  through exceptions
+
 - Specified height/width of icons in ZMI listings so the table doesn't
   jump around while loading.
 

Modified: Zope/trunk/src/Shared/DC/ZRDB/Connection.py
===================================================================
--- Zope/trunk/src/Shared/DC/ZRDB/Connection.py	2009-02-21 15:18:00 UTC (rev 96948)
+++ Zope/trunk/src/Shared/DC/ZRDB/Connection.py	2009-02-21 15:26:01 UTC (rev 96949)
@@ -194,9 +194,9 @@
             except:
                 t, v, tb = sys.exc_info()
                 raise BadRequest, (
-                    '<strong>Invalid connection string: </strong><CODE>%s</CODE><br>\n'
+                    '<strong>Error connecting to DB.</strong><br>\n'
                     '<!--\n%s\n%s\n-->\n'
-                    % (s,t,v)), tb
+                    % (t,v)), tb
         finally: tb=None
         self._v_connected=DateTime()
 



More information about the Zope-Checkins mailing list