Comments (4)
Hi @segfault-, thanks for you note. Feel free to open a pull request if there's a specific change you'd like to see
from splunk-sdk-java.
my formatting didn't go thru, i just added a child!=null check
from splunk-sdk-java.
Hi @segfault-,
We have checked the usage of XmlUtil.textInNode method in entire SDK code, and has found that null checks are implemented where this method is called.
We have also executed Validation test, but could not encounter this issue.
We would recommend to update SDK version to 1.7.1 and make use of JDK 1.8 & maven build, as we have migrated from Ant to Maven.
Please let us know, if you still face any issue, along with details to reproduce.
from splunk-sdk-java.
Hi @bparmar-splunk,
I am able to reproduce this using v1.9.1. This issue happens when the user provides no value for a modular input parameter.
https://github.com/splunk/splunk-sdk-java/blob/master/splunk/src/main/java/com/splunk/modularinput/XmlUtil.java textInNode() line number 38:
static String textInNode(Node node, String errorMessage) throws MalformedDataException {
Node child = node.getFirstChild();
if (child.getNodeType() != Node.TEXT_NODE) {
throw new MalformedDataException(errorMessage);
} else {
return ((Text)child).getData();
}
}
Here no null check is performed for the child
variable. In case when the modular input parameter has no value, child
will be null and child.getNodeType()
leads to null pointer.
Please let me know if you need any other information regarding this issue.
from splunk-sdk-java.
Related Issues (20)
- Resource.java should check if AtomEntry updated value is a valid format or handle Value.toDate throwing a NumberFormatException. HOT 3
- splunk service return 404 not found - Java SDK HOT 9
- Service.login() does not work well with long-lived clients HOT 2
- ResultsReaderCsv.java throws ArrayIndexOutOfBoundsException HOT 6
- Is this abandoned?? HOT 1
- Connection Reset after some requests to splunk api HOT 3
- latest SDK failed with JDK 1.6 and JDK 1.7 , Connection reset error HOT 2
- getting java.io.IOException: Premature EOF while fetching data from splunk HOT 3
- Attributes from Splunk ES Correlation Search Entry HOT 5
- Need a way to turn on TLS hostname verification HOT 2
- JFrog Repo Not Accessible HOT 1
- how to add custom header if we use AWS API Gateway X-API-Key validation HOT 12
- maven-deploy-plugin is included as a transitive dependency in 1.7.1 HOT 2
- Splunk Java SDk not supporting sslCertPath while writing to outputs.conf HOT 12
- SSL Certificates in truststores HOT 3
- Modular Input: Error during ValidationDefinition/InputDefinition when no value for parameter is passed HOT 11
- SSL ValidateCertificates Still Attempts to Validate When Set to False HOT 4
- The SSL verification fails even when setValidateCertificates was set to `false` HOT 3
- SSL Certificates issue: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException HOT 2
- Aggregate field values are cut off when it presents dollar symbols ($) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splunk-sdk-java.