pgsql::set_charset() fails when not properly authenticated
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=5344
Reported by Marcus Wellhardh wellhard@roxen.com
Got this error in the db-tab when trying to correct a non working pgsql connection to a working one:
: Internal server error: FATAL 28000: password authentication failed for user "postgres"
: (auth.c:auth_failed:1017)
:
: pike/lib/pike/modules/Sql.pmod/pgsql.pike:1071: pgsql(postgres@localhost:5432/my_db,0)->reconnect(1)
16:12:30 : pike/lib/pike/modules/Sql.pmod/pgsql.pike:963: pgsql(postgres@localhost:5432/my_db,0)->_decodemsg(7)
15m 5.8s : pike/lib/pike/modules/Sql.pmod/pgsql.pike:1746: pgsql(postgres@localhost:5432/my_db,0)->big_query("SET CLIENT_ENCODING TO 'UTF8'",UNDEFINED,UNDEFINED)
: pike/lib/pike/modules/Sql.pmod/pgsql.pike:335: pgsql(postgres@localhost:5432/my_db,0)->set_charset("UTF8")
: pike/lib/pike/modules/Sql.pmod/Sql.pike:326: Sql.Sql()->set_charset("UTF8")
: base_server/roxenloader.pike:1926: roxenloader->sq_cache_get("pgsql;//postgres;posgres@localhost/my_db:-",0,"UTF8")
: etc/modules/DBManager.pmod:672: DBManager->sql_cache_get("pgsql://postgres:posgres@localhost/my_db",0,0)
16:12:30 : etc/modules/DBManager.pmod:654: DBManager->low_get("rw","pgsql",0,UNDEFINED)
15m 5.8s : etc/modules/DBManager.pmod:1164: DBManager->get("pgsql",UNDEFINED,UNDEFINED,0,UNDEFINED)
: etc/modules/DBManager.pmod:1171: DBManager->cached_get("pgsql",UNDEFINED,UNDEFINED,UNDEFINED)
: config_interface/dbs/browser.pike:301: /lhome/wellhard/Testarea/roxen-5.0.449-release3-cms-rhel5_x86/roxen/server-5.0.449/config_interface/dbs/browser()->move_db("pgsql",RequestID(/dbs/browser.pike))
: config_interface/dbs/browser.pike:663: /lhome/wellhard/Testarea/roxen-5.0.449-release3-cms-rhel5_x86/roxen/server-5.0.449/config_interface/dbs/browser()->parse(@0=RequestID(/dbs/browser.pike))
: modules/scripting/pikescript.pike:138: RoxenModule(Administration Interface/pikescript#0)->call_script(/lhome/wellhard/Testarea/roxen-5.0.449-release3-cms-rhel5_x86/roxen/server-5.0.449/config_interface/dbs/browser()->parse,@0,Stdio.File("config_interface/dbs/browser.pike", "r", 777 /* fd=24 */))
16:12:30 : modules/scripting/pikescript.pike:262: RoxenModule(Administration Interface/pikescript#0)->handle_file_extension(@1=Stdio.File("config_interface/dbs/browser.pike", "r", 777 /* fd=24 */),"pike",@0)
15m 5.8s : base_server/configuration.pike:2359: Configuration(Administration Interface)->low_get_file(@0,UNDEFINED)
: base_server/configuration.pike:2493: Configuration(Administration Interface)->get_file(@0,UNDEFINED,UNDEFINED)
: base_server/configuration.pike:2468: Configuration(Administration Interface)->handle_request(@0,UNDEFINED)
: protocols/http.pike:2823: RequestID(/dbs/browser.pike)->handle_request()
: base_server/roxen.pike:849: roxen()->handler_thread(3)