RelStorage and PostgreSQL without 'dsn' parameter remove all other keys

Bug #408125 reported by Rudá Porto Filgueiras
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
collective.buildout
New
Undecided
Unassigned

Bug Description

RelStorage support when used with postgresql driver type can be specified in two ways (with and without dsn key).

Ex, with dsn key:

rel-storage =
   type postgresql
   dsn dbname='zodb' user='ruda' host='localhost' password='12345'
   cache-module-name cmemcache
   cache-servers 127.0.0.1:11211

or without dns key:

rel-storage =
   type postgresql
   dbname zodb
   user ruda
   host localhost
   password 12345
   cache-module-name cmemcache
   cache-servers 127.0.0.1:11211

When this last format is used, plone.recipe.zope2instance try to transform all db connection keys to dsn format, but it's also "eating" all other rel-storage keys.
Follow attached a patch to solve this issue, inserting the new 'dsn' key and removing all other db connection keys.

Tags: relstorage
Revision history for this message
Rudá Porto Filgueiras (rudaporto) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.