bug report - quote parameters send to plugins

From: Francisco Puga <fpuga(at)cartolab(dot)es>
To: pgadmin-support(at)postgresql(dot)org
Subject: bug report - quote parameters send to plugins
Date: 2011-04-18 16:46:00
Message-ID: BANLkTi=DM1hppFaGqtH8YjKqROqu7q=VOA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

hi,

I'm new to the list, so sorry if i do something wrong.

I'm testing QgsPostGIS-Viewer [1] (trunk version) with pgAdmin 1.10.5
and PostgreSQL 8.3

My user password has a whitespace in it, something like '1111 1111'. I
think that the parameters send to the plugins are not quoted so the
plugin can get the correct information.

I try to debug using this code,

app = SingletonApp( argv )

dictOpts = { '-h':'', '-p':'5432', '-U':'', '-W':'', '-d':'', '-s':'public',
'-t':'', '-g':'', 'type':'unknown',
'srid':'' }

print >> sys.stderr, argv

opts, args = getopt.getopt( sys.argv[1:], 'h:p:U:W:d:s:t:g:', [] )

print >> sys.stderr, args
print >> sys.stderr, opts

And the output is:

['/home/shared/development/varios/QgsPostGIS-Viewer/postgis_viewer.py',
'-h', '127.0.0.1', '-p', '5432', '-U', 'postgres', '-W', '1111',
'1111', '-d', mybd', '-s', 'myschema', '-t', 'mytable']

['1111', '-d', 'mybd', '-s', 'myschema', '-t', 'mytable']
[('-h', '127.0.0.1'), ('-p', '5432'), ('-U', 'postgres'), ('-W', '1111')]

regards,

[1] https://github.com/imincik/QgsPostGIS-Viewer
--
Francisco Puga
Grupo de Desarrollo
Cartolab - Laboratorio de Ingeniería Cartográfica.
http://www.cartolab.es

ETS Ingeniería de Caminos, Canales y Puertos
Universidade da Coruña
Campus de Elviña - 15071 A Coruña (España)
(34)981167000 ext. 5493

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Julius Tuskenis 2011-04-18 19:56:58 broken link
Previous Message Guillaume Lelarge 2011-04-18 12:23:45 Re: pgadmin