Bug #10170
mode sql, config inaccessible si port spécifique
Start date:
03 March 2016
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
Description
après un convert-to-sql contenant une option --port 5433, trace sur /backoffice/settings/postgresql :
Exception: type = '<type 'exceptions.AssertionError'>', value = 'form value 'port' not a <type 'int'>: got '5433'' Stack trace (most recent call first): File "/usr/lib/pymodules/python2.7/quixote/form/widget.py", line 640, in __init__ 638 "form value '%s' not a %s: got %r" % (name, 639 self.TYPE_OBJECT, > 640 value)) 641 StringWidget.__init__(self, name, value, **kwargs) 642 locals: self = <ERROR WHILE PRINTING VALUE> name = 'port' value = '5433' kwargs = {'hint': 'Num\xc3\xa9ro du port (TCP) pour la connexion', 'required': False, 'render_br': False, 'title': 'Port'} File "/usr/lib/pymodules/python2.7/quixote/form/form.py", line 234, in add 232 if name in self._names: 233 raise ValueError, "form already has '%s' widget" % name > 234 widget = widget_class(name, *args, **kwargs) 235 self._names[name] = widget 236 if isinstance(widget, SubmitWidget): locals: widget_class = <class 'quixote.form.widget.IntWidget'> self = <qommon.form.Form object at 0x3808d50> args = () name = 'port' kwargs = {'title': 'Port', 'required': False, 'value': '5433', 'render_br': False, 'hint': 'Num\xc3\xa9ro du port (TCP) pour la connexion'} File "/usr/lib/python2.7/dist-packages/wcs/qommon/form.py", line 285, in add 283 advanced = True 284 del kwargs['advanced'] > 285 QuixoteForm.add(self, widget_class, name, *args, **kwargs) 286 widget = self._names[name] 287 widget.advanced = advanced
Files
Associated revisions
History
Updated by Frédéric Péters about 7 years ago
- File 0001-convert-to-sql-make-sure-port-number-is-saved-as-an-.patch 0001-convert-to-sql-make-sure-port-number-is-saved-as-an-.patch added
- Status changed from Nouveau to En cours
- Patch proposed changed from No to Yes
Correction à la source, que le numéro de port ne soit pas enregistré comme une chaine de caractères.
Updated by Thomas Noël about 7 years ago
Ack
(quel boulet, j'avais fait le patch de mon côté, oublié de le mettre ici...)
Updated by Frédéric Péters about 7 years ago
- Status changed from En cours to Résolu (à déployer)
- Target version set to v1.37
commit ae3a0f2caa999e06bf8e4b9129d81f4d52105828 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Mar 11 10:08:55 2016 +0100 convert-to-sql: make sure port number is saved as an integer (#10170)
convert-to-sql: make sure port number is saved as an integer (#10170)