fix: separate diagnostics gui log and accept ntfs prefix alias

This commit is contained in:
Meik
2026-03-10 10:19:44 +01:00
parent 599ee096a0
commit d893e165b6
2 changed files with 20 additions and 9 deletions

View File

@@ -467,10 +467,18 @@ namespace C4IT.LIAM
private string GetRequiredCustomTag(string key)
{
if (!CustomTags.TryGetValue(key, out var value))
throw new InvalidOperationException($"Missing NTFS custom tag '{key}'.");
if (CustomTags.TryGetValue(key, out var value) && !string.IsNullOrWhiteSpace(value))
return value;
if (string.Equals(key, "Filesystem_GroupPrefixTag", StringComparison.OrdinalIgnoreCase)
&& CustomTags.TryGetValue("ADGroupPrefix", out value)
&& !string.IsNullOrWhiteSpace(value))
{
return value;
}
throw new InvalidOperationException($"Missing NTFS custom tag '{key}'.");
return value;
}