#80 AppServer fails to start when picking passwords containing %

closed-fixed
WebKit (58)
5
2005-10-28
2005-08-02
No

When you pick a password for admin containig a %
character Cnfigurable .py ends with errors like this :

Traceback (most recent call last):
File "WebKit/ThreadedAppServer.py", line 592, in run
File "WebKit/ThreadedAppServer.py", line 66, in __init__
File "WebKit/AutoReloadingAppServer.py", line 43, in
__init__
File "WebKit/AppServer.py", line 67, in __init__
File "WebKit/AppServer.py", line 171, in
createApplication
File "WebKit/Application.py", line 76, in __init__
File "WebKit/ConfigurableForServerSidePath.py", line
15, in setting
File "/root/Webware-0.8.1/MiscUtils/Configurable.py",
line 66, in setting
return self.config()[name]
File "/root/Webware-0.8.1/MiscUtils/Configurable.py",
line 59, in config
self._config.update(self.userConfig())
File "/root/Webware-0.8.1/MiscUtils/Configurable.py",
line 115, in userConfig
raise ConfigurationError, 'Unable to embed
replacement text in %s.' % self.configFilename()
ConfigurationError: Unable to embed replacement text in
/root/AvalApp/Configs/Application.config.

password for admin must be saved escaped in install.py
like
password=getpass.getpass().replace('%','%%') line 172
, and 178

Discussion

  • Christoph Zwerschke

    Logged In: YES
    user_id=193957

    The replacement happens only for dictionary-style syntax.
    Since the Application.config has now new syntax, it does not
    happen any more.

    However, two other critical characters (single quotes and
    backslash) need to be escaped as well. I have checked in a
    fix for this.

     
  • Christoph Zwerschke

    • assigned_to: nobody --> cito
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks