All Apps and Add-ons

customJavascript - app names only alphanumeric characters and underscores

justgrumpy
Path Finder

I am getting an error when I try to launch my dashboard using a customJavascript:

An error occurred while reading the page template. See web_service.log for
more details

The web_service.log has the following message:

app names in the SideviewUtils module can only be made of alphanumeric characters and underscores

Why is there a restriction on the app name for the SideviewUtils module, but no such limitation for Splunk in general?

1 Solution

sideview
SplunkTrust
SplunkTrust

This is talking about the name of the app's directory on disk, not the pretty name that gets displayed in the UI, and there was a bug fixed back in Sideview Utils 2.4.2, whereby it failed to account for legal hyphen characters in the app directory names.

What is your app name? If your app name has a hyphen character in it, just upgrade to the latest (2.4.5).

Sideview Utils validates those params and checks the app and file names explicitly basically out of paranoia. I want to make sure that the feature can't have directory traversal bugs or be circumvented to include any other files that are not in some app's appserver/static directory.

http://sideviewapps.com/apps/sideview-utils

View solution in original post

sideview
SplunkTrust
SplunkTrust

This is talking about the name of the app's directory on disk, not the pretty name that gets displayed in the UI, and there was a bug fixed back in Sideview Utils 2.4.2, whereby it failed to account for legal hyphen characters in the app directory names.

What is your app name? If your app name has a hyphen character in it, just upgrade to the latest (2.4.5).

Sideview Utils validates those params and checks the app and file names explicitly basically out of paranoia. I want to make sure that the feature can't have directory traversal bugs or be circumvented to include any other files that are not in some app's appserver/static directory.

http://sideviewapps.com/apps/sideview-utils

sideview
SplunkTrust
SplunkTrust

Cool. Sideview Utils has a pretty big and active customer base so tons of things are getting fixed and improved all the time. The release notes ( http://sideviewapps.com/apps/sideview-utils/release-notes/ ) might help sell the upgrade -- If you're back on 2.2.8, the release notes are showing about 48 bugfixes and improvements since then.

0 Karma

justgrumpy
Path Finder

My application name has hyphens in it. I'll encourage an upgrade to take care of this. Thanks.

0 Karma

justgrumpy
Path Finder

By the way, I am using Sideview Utils 2.2.8

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...