Description
In src/Servy.Core/Helpers/ProcessHelper.cs (lines 258–260):
public static string? ResolvePath(string? inputPath)
{
if (string.IsNullOrWhiteSpace(inputPath)) return inputPath;
When inputPath is " " (whitespace only), IsNullOrWhiteSpace returns true and the method returns the whitespace string instead of null. Callers in StartOptionsParser.Parse (lines 47–49, 64–66) pass this directly to ProcessStartInfo.WorkingDirectory or ProcessStartInfo.FileName, causing cryptic process launch failures.
Severity
Warning — whitespace-only paths from the database cause confusing downstream errors.
Suggested fix
Return null instead of the original whitespace string:
if (string.IsNullOrWhiteSpace(inputPath)) return null;
Description
In
src/Servy.Core/Helpers/ProcessHelper.cs(lines 258–260):When
inputPathis" "(whitespace only),IsNullOrWhiteSpacereturnstrueand the method returns the whitespace string instead ofnull. Callers inStartOptionsParser.Parse(lines 47–49, 64–66) pass this directly toProcessStartInfo.WorkingDirectoryorProcessStartInfo.FileName, causing cryptic process launch failures.Severity
Warning — whitespace-only paths from the database cause confusing downstream errors.
Suggested fix
Return
nullinstead of the original whitespace string: