Skip to content

Commit 5305995

Browse files
author
Shakeel Mohamed
committed
Release 1.6.4
2 parents 27c51d4 + 4690618 commit 5305995

File tree

18 files changed

+106
-52
lines changed

18 files changed

+106
-52
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ TEST-com.splunk.*.xml
1414

1515
# IntelliJ
1616
.idea/workspace.xml
17+
.idea/misc.xml
1718

1819
# Unknown
1920
*.swp

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@ before_install:
2828
- sleep 30
2929

3030
env:
31-
- SPLUNK_VERSION=6.2.6-sdk
32-
- SPLUNK_VERSION=6.3.1-sdk
31+
- SPLUNK_VERSION=6.6-sdk
32+
- SPLUNK_VERSION=7.0-sdk
3333

3434
language: java
3535

36+
addons:
37+
apt:
38+
packages:
39+
- ant-optional
40+
3641
jdk:
3742
- oraclejdk8
38-
- oraclejdk7
43+
- openjdk7
3944

4045
before_script:
4146
- ant

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Splunk SDK for Java Changelog
22

3+
## Version 1.6.4
4+
5+
### Bug Fixes
6+
7+
* Fixed bug in modinput Windows shims that caused Splunk Enterprise to fail to restart (GitHub PR [#120](https://github.com/splunk/splunk-sdk-java/pull/120)).
8+
* Fixed bug with data model endpoint on Splunk Enterprise 7+ (GitHub PR [#117](https://github.com/splunk/splunk-sdk-java/pull/117)).
9+
* Fixed bug with invalid `Index.submit()` forming an invalid REST API path for namespaced services ([#118](https://github.com/splunk/splunk-sdk-java/pull/118)).
10+
* Fixed bug with `Value.toDate(string value)` not being thread safe (GitHub PR [#109](https://github.com/splunk/splunk-sdk-java/pull/109)).
11+
312
## Version 1.6.3
413

514
### New features and APIs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build Status](https://travis-ci.org/splunk/splunk-sdk-java.svg?branch=master)](https://travis-ci.org/splunk/splunk-sdk-java)
22
# The Splunk Software Development Kit for Java
33

4-
#### Version 1.6.3
4+
#### Version 1.6.4
55

66
The Splunk Software Development Kit (SDK) for Java contains library code and
77
examples designed to enable developers to build applications using Splunk.

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<project name="splunk-sdk-java" basedir="." default="dist" xmlns:jacoco="antlib:org.jacoco.ant"
2020
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="antlib:org.jacoco.ant ">
21-
<property name="version.number" value="1.6.3"/>
21+
<property name="version.number" value="1.6.4"/>
2222

2323
<!-- Paths within the repository that are referenced
2424
multiple times. -->

deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare -r scriptDirectory="$(dirname $(readlink -e $0))"
44
declare -r scriptName="$(basename $0)"
5-
declare -r version="1.6.3"
5+
declare -r version="1.6.4"
66

77
if [[ $# -ne 1 ]]; then
88
echo 1>&2 "Usage: ${scriptName} {local|staging||production}"

deploy.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ deploy \<repository-name>
99

1010
##DESCRIPTION
1111

12-
Deploy transmits **dist/splunk-1.6.3.jar**, **dist/splunk-1.6.3-javadoc.jar**, and
13-
**dist/splunk-1.6.3-sources.jar** to the **local**, **staging**, or **production**
12+
Deploy transmits **dist/splunk-1.6.4.jar**, **dist/splunk-1.6.4-javadoc.jar**, and
13+
**dist/splunk-1.6.4-sources.jar** to the **local**, **staging**, or **production**
1414
maven repository. Repository names are mapped to locations as follows.
1515

1616
| repository-name | location |
@@ -21,18 +21,18 @@ maven repository. Repository names are mapped to locations as follows.
2121

2222
After deployment you should find this tree structure at the location of your repository
2323

24-
com/splunk/splunk/1.6.3/
25-
├── splunk-1.6.3-javadoc.jar
26-
├── splunk-1.6.3-javadoc.jar.md5
27-
├── splunk-1.6.3-javadoc.jar.sha1
28-
├── splunk-1.6.3-sources.jar
29-
├── splunk-1.6.3-sources.jar.md5
30-
├── splunk-1.6.3-sources.jar.sha1
31-
├── splunk-1.6.3.jar
32-
├── splunk-1.6.3.jar.md5
33-
├── splunk-1.6.3.jar.sha1
34-
├── splunk-1.6.3.pom
35-
├── splunk-1.6.3.pom.md5
36-
└── splunk-1.6.3.pom.sha1
24+
com/splunk/splunk/1.6.4/
25+
├── splunk-1.6.4-javadoc.jar
26+
├── splunk-1.6.4-javadoc.jar.md5
27+
├── splunk-1.6.4-javadoc.jar.sha1
28+
├── splunk-1.6.4-sources.jar
29+
├── splunk-1.6.4-sources.jar.md5
30+
├── splunk-1.6.4-sources.jar.sha1
31+
├── splunk-1.6.4.jar
32+
├── splunk-1.6.4.jar.md5
33+
├── splunk-1.6.4.jar.sha1
34+
├── splunk-1.6.4.pom
35+
├── splunk-1.6.4.pom.md5
36+
└── splunk-1.6.4.pom.sha1
3737

3838
Verify this structure prior to release.

launchers/shim-windows_x86.exe

42 KB
Binary file not shown.

launchers/shim-windows_x86_64.exe

54.5 KB
Binary file not shown.

launchers/shim/shim/shim.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ int _tmain(int argc, _TCHAR* argv[])
2727
HANDLE &jvmHandle = processHandles[1];
2828
HANDLE ghJob = NULL;
2929
PTSTR customizedJavaCmd = NULL, jarPath = NULL, jvmOptions = NULL, jvmCommandLine = NULL;
30-
DWORD waitOutcome, exitCode;
31-
30+
DWORD waitOutcome;
3231
DWORD returnCode = 0;
3332

3433
STARTUPINFO si;
@@ -74,7 +73,7 @@ int _tmain(int argc, _TCHAR* argv[])
7473
jvmOptions = readJvmOptions(jarPath);
7574
jvmCommandLine = assembleJvmCommand(customizedJavaCmd, jarPath, jvmOptions, argc, argv);
7675

77-
if (!CreateProcess(NULL, jvmCommandLine, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
76+
if (!CreateProcess(NULL, jvmCommandLine, NULL, NULL, FALSE, CREATE_NEW_PROCESS_GROUP, NULL, NULL, &si, &pi)) {
7877
// Process creation failed.
7978
printErrorMessage(GetLastError(), jvmCommandLine);
8079

@@ -155,7 +154,7 @@ void printErrorMessage(DWORD errorCode, ...) {
155154

156155

157156
PTSTR readJvmOptions(PTSTR jarPath) {
158-
DWORD jarPathLen = _tcslen(jarPath);
157+
size_t jarPathLen = _tcslen(jarPath);
159158
// vmoptsPath is the same as jarPath, but ending with .vmopts instead of .jar. We allocate
160159
// 3 additional TCHARs for the additional length of .vmopts, and 1 more TCHAR for a NULL
161160
// terminator, so jarPathLen+4.
@@ -297,7 +296,7 @@ PTSTR getPathToJar() {
297296
PCTSTR jarSuffix = TEXT(".jar");
298297
const DWORD jarSuffixLen = 5;
299298
const size_t N = 1024;
300-
DWORD baseNameLen;
299+
size_t baseNameLen;
301300

302301
thisPath = (PTSTR)malloc(N*sizeof(TCHAR));
303302
if (N == GetModuleFileName(NULL, thisPath, N) && ERROR_INSUFFICIENT_BUFFER == GetLastError()) {
@@ -325,7 +324,7 @@ PTSTR getPathToJar() {
325324
*endPtr = NULL;
326325
endPtr = _tcsrchr(thisPath, '\\');
327326

328-
if (baseName-endPtr < _tcslen(TEXT("\\jars\\"))) {
327+
if ((size_t)(baseName-endPtr) < _tcslen(TEXT("\\jars\\"))) {
329328
return NULL; // Not enough space to copy the path fragment in without clobbering the jar name.
330329
}
331330

@@ -347,7 +346,6 @@ PTSTR getCustomizedJavaCmd() {
347346
PCTSTR javaHomeFragment = TEXT("\\customized.java.path");
348347
const DWORD javaHomeFragmentLen = 22;
349348
const size_t N = 1024;
350-
DWORD baseNameLen;
351349

352350
javaHomePath = (PTSTR)malloc(N*sizeof(TCHAR));
353351
if (N == GetModuleFileName(NULL, javaHomePath, N) && ERROR_INSUFFICIENT_BUFFER == GetLastError()) {
@@ -402,4 +400,4 @@ PTSTR getCustomizedJavaCmd() {
402400
#else
403401
return buffer;
404402
#endif
405-
}
403+
}

0 commit comments

Comments
 (0)