From f629444008ed759674df70b14f520bd353616d8f Mon Sep 17 00:00:00 2001 From: Nicolaj Hansen Date: Mon, 18 Nov 2024 11:16:00 +0100 Subject: [PATCH 1/2] fixed the if operator and the succes criteria in GetMetaDataUrl --- src/ODataProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ODataProvider.cs b/src/ODataProvider.cs index bd59ee1..a6f95ca 100644 --- a/src/ODataProvider.cs +++ b/src/ODataProvider.cs @@ -131,7 +131,7 @@ public string DestinationEndpointId private string GetMetadataURL() { - if (GetEndpointResponse(ODataSourceReader.GetEndpointUrlWithTop(_endpoint.Url), out string endpointResponse, out Exception exception) == HttpStatusCode.OK && exception is null) + if (GetEndpointResponse(ODataSourceReader.GetEndpointUrlWithTop(_endpoint.Url), out string endpointResponse, out Exception exception) != HttpStatusCode.OK || exception is not null) return GetMetadataURLFallBack(); using var responseJson = JsonDocument.Parse(endpointResponse); From fd1917e7785deddb461252ffefe8dd2c846bd734 Mon Sep 17 00:00:00 2001 From: Nicolaj Hansen Date: Wed, 20 Nov 2024 14:13:12 +0100 Subject: [PATCH 2/2] bump version --- src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj index db8d407..764534e 100644 --- a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj @@ -1,6 +1,6 @@  - 10.8.2 + 10.8.3 1.0.0.0 OData Provider The Odata Provider lets you fetch and map data from or to any OData endpoint.