From 2a6cc5c9a658cc15cc86edadf42406ff992713c7 Mon Sep 17 00:00:00 2001 From: Apollo3zehn Date: Tue, 27 Feb 2024 12:29:41 +0100 Subject: [PATCH] Prepare release. --- CHANGELOG.md | 4 ++++ src/Nexus.Sources.Federation/Federation.cs | 4 ++-- version.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71c3486..c575efa 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v2.0.0-beta.3 - 2024-02-27 + +- Fix prefix modification algorithm. + ## v2.0.0-beta.2 - 2024-02-27 - Enable federation of a sub catalog path. diff --git a/src/Nexus.Sources.Federation/Federation.cs b/src/Nexus.Sources.Federation/Federation.cs index 07972d7..45f0c41 100644 --- a/src/Nexus.Sources.Federation/Federation.cs +++ b/src/Nexus.Sources.Federation/Federation.cs @@ -130,12 +130,12 @@ public async Task ReadAsync(DateTime begin, DateTime end, ReadRequest[] requests private string ToMountPointPrefixedCatalogId(string catalogId) { - return _mountPoint + catalogId.Substring(_sourcePath.Length); + return _mountPoint + catalogId.Substring(_sourcePath.Length + 1); } private string ToSourcePathPrefixedCatalogId(string catalogId) { - return _sourcePath + catalogId.Substring(_mountPoint.Length); + return _sourcePath + catalogId.Substring(_mountPoint.Length + 1); } } } diff --git a/version.json b/version.json index 78a3859..0d3d74f 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { "version": "2.0.0", - "suffix": "beta.2" + "suffix": "beta.3" } \ No newline at end of file