René's URL Explorer Experiment


Title: Modular Input: Error during ValidationDefinition/InputDefinition when no value for parameter is passed · Issue #198 · splunk/splunk-sdk-java · GitHub

Open Graph Title: Modular Input: Error during ValidationDefinition/InputDefinition when no value for parameter is passed · Issue #198 · splunk/splunk-sdk-java

X Title: Modular Input: Error during ValidationDefinition/InputDefinition when no value for parameter is passed · Issue #198 · splunk/splunk-sdk-java

Description: 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 t...

Open Graph Description: 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/jav...

X Description: 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/jav...

Opengraph URL: https://github.com/splunk/splunk-sdk-java/issues/198

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Modular Input: Error during ValidationDefinition/InputDefinition when no value for parameter is passed","articleBody":"I am able to reproduce this using v1.9.1. This issue happens when the user provides no value for a modular input parameter.\r\nhttps://github.com/splunk/splunk-sdk-java/blob/master/splunk/src/main/java/com/splunk/modularinput/XmlUtil.java textInNode() line number 38:\r\n```\r\nstatic String textInNode(Node node, String errorMessage) throws MalformedDataException {\r\n        Node child = node.getFirstChild();\r\n        if (child.getNodeType() != Node.TEXT_NODE) {\r\n            throw new MalformedDataException(errorMessage);\r\n        } else {\r\n            return ((Text)child).getData();\r\n        }\r\n    }\r\n```\r\nHere, 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.\r\n\r\nSample input to --validate-arguments that triggers the error:\r\n```\r\n\u003c?xml version=\"1.0\" encoding=\"utf-16\"?\u003e\r\n\u003citems xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\u003e\r\n    \u003cserver_host\u003etiny\u003c/server_host\u003e\r\n    \u003cserver_uri\u003ehttps://127.0.0.1:8089\u003c/server_uri\u003e\r\n    \u003ccheckpoint_dir\u003e/opt/splunk/var/lib/splunk/modinputs\u003c/checkpoint_dir\u003e\r\n    \u003csession_key\u003e123102983109283019283\u003c/session_key\u003e\r\n    \u003c!-- The items element only ever contains one item element --\u003e\r\n    \u003citem name=\"aaa\"\u003e\r\n        \u003cparam name=\"param1\"\u003evalue1\u003c/param\u003e\r\n        \u003cparam name=\"param_bug\"\u003e\u003c/param\u003e\r\n        \u003cparam name=\"disabled\"\u003e0\u003c/param\u003e\r\n        \u003cparam name=\"index\"\u003edefault\u003c/param\u003e\r\n        \u003cparam_list name=\"multiValue\"\u003e\r\n            \u003cvalue\u003evalue1\u003c/value\u003e\r\n            \u003cvalue\u003evalue2\u003c/value\u003e\r\n        \u003c/param_list\u003e\r\n        \u003cparam_list name=\"multiValue2\"\u003e\r\n            \u003cvalue\u003evalue3\u003c/value\u003e\r\n            \u003cvalue\u003evalue4\u003c/value\u003e\r\n        \u003c/param_list\u003e\r\n    \u003c/item\u003e\r\n\u003c/items\u003e\r\n```\r\nIn the above example `param_bug` has no value (user did not input any value to the modular input parameter), this causes `child` to be null in the `textInNode()` method.\r\n\r\nPlease let me know if you need any other information regarding this issue.\r\n\r\nSimilar issue was created previously: https://github.com/splunk/splunk-sdk-java/issues/122 back in March 2018, but it was closed stating that it could not reproduced.","author":{"url":"https://github.com/jrobins04","@type":"Person","name":"jrobins04"},"datePublished":"2022-10-25T06:07:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/198/splunk-sdk-java/issues/198"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:afc37a68-6e41-4cbe-3c08-309824899416
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD40C:246CE:6602096:8666991:6A5DD8AC
html-safe-nonce6dbf202f30a4760db39da2f970062982c12c5196c46863c2875c81d3e75a7f74
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDBDOjI0NkNFOjY2MDIwOTY6ODY2Njk5MTo2QTVERDhBQyIsInZpc2l0b3JfaWQiOiI5MDE0Nzg2MTE4Njg1NDE1NTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac357e01fefbb618a70c98976e556cc5999c858d4212aaa35c23f3153279f37e39
hovercard-subject-tagissue:1421911723
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/splunk/splunk-sdk-java/198/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ceb026e9ef7bf842f501aa79d66084d89ae2d1c0fa9119765077e22071b83181/splunk/splunk-sdk-java/issues/198
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ceb026e9ef7bf842f501aa79d66084d89ae2d1c0fa9119765077e22071b83181/splunk/splunk-sdk-java/issues/198
og:image:altI 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/jav...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejrobins04
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/splunk/splunk-sdk-java git https://github.com/splunk/splunk-sdk-java.git
octolytics-dimension-user_id651467
octolytics-dimension-user_loginsplunk
octolytics-dimension-repository_id1777352
octolytics-dimension-repository_nwosplunk/splunk-sdk-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1777352
octolytics-dimension-repository_network_root_nwosplunk/splunk-sdk-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/splunk/splunk-sdk-java/issues/198#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsplunk%2Fsplunk-sdk-java%2Fissues%2F198
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsplunk%2Fsplunk-sdk-java%2Fissues%2F198
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=splunk%2Fsplunk-sdk-java
Reloadhttps://github.com/splunk/splunk-sdk-java/issues/198
Reloadhttps://github.com/splunk/splunk-sdk-java/issues/198
Reloadhttps://github.com/splunk/splunk-sdk-java/issues/198
Please reload this pagehttps://github.com/splunk/splunk-sdk-java/issues/198
splunk https://github.com/splunk
splunk-sdk-javahttps://github.com/splunk/splunk-sdk-java
Notifications https://github.com/login?return_to=%2Fsplunk%2Fsplunk-sdk-java
Fork 121 https://github.com/login?return_to=%2Fsplunk%2Fsplunk-sdk-java
Star 155 https://github.com/login?return_to=%2Fsplunk%2Fsplunk-sdk-java
Code https://github.com/splunk/splunk-sdk-java
Issues 6 https://github.com/splunk/splunk-sdk-java/issues
Pull requests 5 https://github.com/splunk/splunk-sdk-java/pulls
Actions https://github.com/splunk/splunk-sdk-java/actions
Wiki https://github.com/splunk/splunk-sdk-java/wiki
Security and quality 0 https://github.com/splunk/splunk-sdk-java/security
Insights https://github.com/splunk/splunk-sdk-java/pulse
Code https://github.com/splunk/splunk-sdk-java
Issues https://github.com/splunk/splunk-sdk-java/issues
Pull requests https://github.com/splunk/splunk-sdk-java/pulls
Actions https://github.com/splunk/splunk-sdk-java/actions
Wiki https://github.com/splunk/splunk-sdk-java/wiki
Security and quality https://github.com/splunk/splunk-sdk-java/security
Insights https://github.com/splunk/splunk-sdk-java/pulse
Modular Input: Error during ValidationDefinition/InputDefinition when no value for parameter is passedhttps://github.com/splunk/splunk-sdk-java/issues/198#top
https://github.com/jrobins04
jrobins04https://github.com/jrobins04
on Oct 25, 2022https://github.com/splunk/splunk-sdk-java/issues/198#issue-1421911723
https://github.com/splunk/splunk-sdk-java/blob/master/splunk/src/main/java/com/splunk/modularinput/XmlUtil.javahttps://github.com/splunk/splunk-sdk-java/blob/master/splunk/src/main/java/com/splunk/modularinput/XmlUtil.java
#122https://github.com/splunk/splunk-sdk-java/issues/122
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.