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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...