Bug #3695
closedConfiugration throws error if db user is left blank
0%
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)
Updated by Michael Daigle about 16 years ago
Moved the db connection credential initialization into the constructor of DBConnection so they are read every time a new connection is created.