From ce915292dca23b08cacb25e42b37e04d2982f06f Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 2 Jun 2025 20:22:15 +0200 Subject: [PATCH] Improved enterprise IT checks when run without such an environment (#494) --- .../Tools/PluginSystem/PluginFactory.Download.cs | 3 +++ .../Tools/Services/EnterpriseEnvironmentService.cs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs index ff4580c5..7bad7ec4 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Download.cs @@ -7,6 +7,9 @@ public static partial class PluginFactory { public static async Task DetermineConfigPluginETagAsync(Guid configPlugId, string configServerUrl, CancellationToken cancellationToken = default) { + if(configPlugId == Guid.Empty || string.IsNullOrWhiteSpace(configServerUrl)) + return null; + try { var serverUrl = configServerUrl.EndsWith('/') ? configServerUrl[..^1] : configServerUrl; diff --git a/app/MindWork AI Studio/Tools/Services/EnterpriseEnvironmentService.cs b/app/MindWork AI Studio/Tools/Services/EnterpriseEnvironmentService.cs index ac41b4ba..432796e4 100644 --- a/app/MindWork AI Studio/Tools/Services/EnterpriseEnvironmentService.cs +++ b/app/MindWork AI Studio/Tools/Services/EnterpriseEnvironmentService.cs @@ -54,6 +54,7 @@ public sealed class EnterpriseEnvironmentService(ILogger