Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 046d0b7

Browse files
author
Shakeel Mohamed
committed
Release 2.2.4
2 parents 8a9169b + 54cf71e commit 046d0b7

File tree

7 files changed

+29
-8
lines changed

7 files changed

+29
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Splunk SDK for C# PCL
22

3+
## Version 2.2.4
4+
5+
### Bug Fixes
6+
7+
* Handle empty strings in Atom entry responses from the REST API. GitHub pull request #60.
8+
39
## Version 2.2.3
410

511
### New features and APIs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Splunk SDK for C#
2-
## Version 2.2.3
2+
## Version 2.2.4
33

44
> **Note:** For the most up to date documentation for the Splunk SDK for C#,
55
> see http://dev.splunk.com/csharp.

src/Splunk.Client.Helpers/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.2.3.0")]
36-
[assembly: AssemblyFileVersion("2.2.3.0")]
35+
[assembly: AssemblyVersion("2.2.4.0")]
36+
[assembly: AssemblyFileVersion("2.2.4.0")]

src/Splunk.Client/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141

4242
//// Version information
4343

44-
[assembly: AssemblyVersion("2.2.3.0")]
45-
[assembly: AssemblyFileVersion("2.2.3.0")]
44+
[assembly: AssemblyVersion("2.2.4.0")]
45+
[assembly: AssemblyFileVersion("2.2.4.0")]

src/Splunk.Client/Splunk/Client/AtomEntry.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,21 @@ static async Task<dynamic> ParseDictionaryAsync(XmlReader reader, int level)
389389
string propertyName;
390390
dynamic propertyValue;
391391

392+
// There are cases where the server sends us bad values for "s:key", namely
393+
// the empty string. This happens for example when we get back the metadata for
394+
// a search job which contains an "eval". In these cases, we simply replace the
395+
// empty string with a literal string called "empty", so that we know where it came
396+
// from.
397+
//
398+
// The risk with this fix is that we will have multiple empty keys at the same
399+
// level, and thus using "empty" would clash. However, this would be an even more
400+
// serious error on the part of the API, as it would mean we have no way to disambiguate
401+
// those two entries. As such, we feel it is safe.
402+
if (names[names.Length - 1] == "")
403+
{
404+
names[names.Length - 1] = "empty";
405+
}
406+
392407
for (int i = 0; i < names.Length - 1; i++)
393408
{
394409
propertyName = NormalizePropertyName(names[i]);

src/Splunk.Client/Splunk/Client/Context.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public Context(Scheme scheme, string host, int port, TimeSpan timeout, HttpMessa
103103
this.Host = host;
104104
this.Port = port;
105105
this.httpClient = handler == null ? new HttpClient(new HttpClientHandler { UseCookies = false }) : new HttpClient(handler, disposeHandler);
106-
this.httpClient.DefaultRequestHeaders.Add("User-Agent", "splunk-sdk-csharp/2.2.3");
106+
this.httpClient.DefaultRequestHeaders.Add("User-Agent", "splunk-sdk-csharp/2.2.4");
107107
this.CookieJar = new CookieStore();
108108

109109
if (timeout != default(TimeSpan))

src/Splunk.ModularInputs/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@
3939

4040
//// Version information
4141

42-
[assembly: AssemblyVersion("2.2.3.0")]
43-
[assembly: AssemblyFileVersion("2.2.3.0")]
42+
[assembly: AssemblyVersion("2.2.4.0")]
43+
[assembly: AssemblyFileVersion("2.2.4.0")]

0 commit comments

Comments
 (0)