Project

General

Profile

Bug #3695

Confiugration throws error if db user is left blank

Added by Michael Daigle about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Category:
metacat
Target version:
Start date:
12/09/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3695

Description

If the db user is left blank when configuring metacat, it will report that to the browser. Once the user is entered, and the configuration is accepted, if you use the "go to metacat" link, it throws an exception:

javax.servlet.ServletException: SQL problem while intializing MetaCat Servlet: Connection rejected: FATAL: no PostgreSQL user name specified in startup packet.
edu.ucsb.nceas.metacat.MetaCatServlet.initSecondHalf(MetaCatServlet.java:313)
edu.ucsb.nceas.metacat.MetaCatServlet.handleGetOrPost(MetaCatServlet.java:528)
edu.ucsb.nceas.metacat.MetaCatServlet.doGet(MetaCatServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)

History

#1 Updated by Michael Daigle about 11 years ago

Moved the db connection credential initialization into the constructor of DBConnection so they are read every time a new connection is created.

#2 Updated by Redmine Admin almost 7 years ago

Original Bugzilla ID was 3695

Also available in: Atom PDF