Skip to content

Commit c098f83

Browse files
Alex Williams-FerreiraCopilot
andcommitted
Fix HammerDB/PostgreSQL: use hex password to avoid TCL parsing error
Base64 password contains + and = characters which break HammerDB 4.12's TCL diset command argument parsing. Changed to hex encoding which produces alphanumeric-only output across all three components that share the SuperUserPassword: - HammerDBExecutor - PostgreSQLServerConfiguration - SysbenchExecutor All three must use the same encoding since they share the same PostgreSQL credential. This has been the sole cause of HammerDB parse failures since Mar 16 (~1700 errors/day). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 08d1fc1 commit c098f83

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.14
1+
3.0.15

src/VirtualClient/VirtualClient.Actions/HammerDB/HammerDBExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public string SuperUserPassword
9898
get
9999
{
100100
byte[] hashBytes = SHA256.HashData(Encoding.UTF8.GetBytes("default"));
101-
return Convert.ToBase64String(hashBytes);
101+
return Convert.ToHexString(hashBytes);
102102
}
103103
}
104104

src/VirtualClient/VirtualClient.Actions/Sysbench/SysbenchExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public string SuperUserPassword
170170
get
171171
{
172172
byte[] hashBytes = SHA256.HashData(Encoding.UTF8.GetBytes("default"));
173-
return Convert.ToBase64String(hashBytes);
173+
return Convert.ToHexString(hashBytes);
174174
}
175175
}
176176

src/VirtualClient/VirtualClient.Dependencies/PostgreSQLServer/PostgreSQLServerConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public string SuperUserPassword
108108
get
109109
{
110110
byte[] hashBytes = SHA256.HashData(Encoding.UTF8.GetBytes("default"));
111-
return Convert.ToBase64String(hashBytes);
111+
return Convert.ToHexString(hashBytes);
112112
}
113113
}
114114

0 commit comments

Comments
 (0)