From 49b0e3025d64e24dda575482bdb84d1e023e98dc Mon Sep 17 00:00:00 2001 From: OfficeCom Codex Date: Sat, 25 Jul 2026 21:14:50 +0200 Subject: [PATCH] Fix Ninja client configuration parsing --- release/stable/version.json | 8 ++++---- src/OCSentinelCli/JsonOptions.cs | 3 +++ src/OCSentinelCli/OCSentinelCli.csproj | 8 ++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/release/stable/version.json b/release/stable/version.json index 04b6cf0..b3554d2 100644 --- a/release/stable/version.json +++ b/release/stable/version.json @@ -1,8 +1,8 @@ { "channel": "stable", - "version": "1.2.6", - "publishedAtUtc": "2026-07-25T00:00:00Z", - "artifactUrl": "https://gitea.officecom.cloud/officecom/oc-sentinel/releases/download/v1.2.6/OCSentinelClient-win-x64.zip", - "sha256": "d6256f3e376701bff18d9dfd8d5825498e85fb6d94c15227828a50678693d097", + "version": "1.2.10", + "publishedAtUtc": "2026-07-25T19:14:36.9210206Z", + "artifactUrl": "https://gitea.officecom.cloud/officecom/oc-sentinel/releases/download/v1.2.10/OCSentinelClient-win-x64.zip", + "sha256": "4de7abf96ff9ed47da02ac7f586cc39102fa508372825c2f7bf5e1df2b0f6c80", "minUpdaterVersion": "1.0.0" } diff --git a/src/OCSentinelCli/JsonOptions.cs b/src/OCSentinelCli/JsonOptions.cs index 393f901..ffd9672 100644 --- a/src/OCSentinelCli/JsonOptions.cs +++ b/src/OCSentinelCli/JsonOptions.cs @@ -8,6 +8,9 @@ internal static class JsonOptions public static readonly JsonSerializerOptions Default = new() { WriteIndented = true, + // Client configuration is also written by PowerShell/NinjaOne scripts. + // Accept their conventional camelCase names (for example n8nWebhookUrl). + PropertyNameCaseInsensitive = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull }; } diff --git a/src/OCSentinelCli/OCSentinelCli.csproj b/src/OCSentinelCli/OCSentinelCli.csproj index 4346516..9c8a07b 100644 --- a/src/OCSentinelCli/OCSentinelCli.csproj +++ b/src/OCSentinelCli/OCSentinelCli.csproj @@ -9,10 +9,10 @@ OCSentinelCli OfficeCom Sentinel OfficeCom - 1.2.9 - 1.2.3.0 - 1.2.3.0 - 1.2.3 + 1.2.10 + 1.2.10.0 + 1.2.10.0 + 1.2.10