mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-12 05:11:56 +01:00
reset username and blank password
Former-commit-id: 398c0723854c8c43d674d03a6433611c8572cec5
This commit is contained in:
@@ -185,7 +185,7 @@ public class CveDB {
|
|||||||
*/
|
*/
|
||||||
@edu.umd.cs.findbugs.annotations.SuppressWarnings(
|
@edu.umd.cs.findbugs.annotations.SuppressWarnings(
|
||||||
value = "DMI_EMPTY_DB_PASSWORD",
|
value = "DMI_EMPTY_DB_PASSWORD",
|
||||||
justification = "Yes, I know... Blank password. With the embedded DB the password doesn't have any affect.")
|
justification = "Yes, I know... Blank password.")
|
||||||
public void open() throws IOException, SQLException, DatabaseException, ClassNotFoundException {
|
public void open() throws IOException, SQLException, DatabaseException, ClassNotFoundException {
|
||||||
final String fileName = CveDB.getDataDirectory().getCanonicalPath()
|
final String fileName = CveDB.getDataDirectory().getCanonicalPath()
|
||||||
+ File.separator
|
+ File.separator
|
||||||
@@ -194,7 +194,7 @@ public class CveDB {
|
|||||||
final boolean createTables = !f.exists();
|
final boolean createTables = !f.exists();
|
||||||
final String connStr = "jdbc:h2:file:" + fileName;
|
final String connStr = "jdbc:h2:file:" + fileName;
|
||||||
Class.forName("org.h2.Driver");
|
Class.forName("org.h2.Driver");
|
||||||
conn = DriverManager.getConnection(connStr, "local", "");
|
conn = DriverManager.getConnection(connStr, "sa", "");
|
||||||
if (createTables) {
|
if (createTables) {
|
||||||
createTables();
|
createTables();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user