All Apps and Add-ons

URL rewrite not properly handeled

SandrinoCostant
New Member

Splunk web is configured to be accessed trough sso kerberos (mod_auth_kerb)

It work perfectly well, but some part of the application are not properly rendered.
when we click on some link a blank page is displayed instead of the expected result.

As i was observing what was going on i remarked the following :
When we select the application on the home page, the URL accessed by the browser is in the form:
http://search.domain.local/en-GB/ app /splunk_app_windows_infrastructure.

Then the Splunk Web (behind the scene ) rewrite this in the form
http://search.domain.local/ dj /en-GB/app/splunk_app_windows_infrastructure.

It inject a dj word in front of the relative URI.

My problem is that it does this only once (when I land on the homepage of the app).

All the view of the app are functional if we properly enter the URI manually (with the dj ango acronym in the middle)

The default navigation xml use relative URI without the in between dj word alt text

And when i select any link, Splunk web doesn't do its magic trick of injecting the dj word anymore
instead a blank page is displayed (without error)

Before I start to fix the various link in the default navigation , does someone has a clue on why the dj injection work only once ?
And does someone know why this application is doing this ?

0 Karma

TrevorW2000
Explorer

The problem is that Internet Explorer doesn't support a JavaScript method (startsWith) that is used to do the redirect. It should work in Chrome or Firefox. You can also make it work in IE by adding a script to override the startsWith function.

More details here: http://stackoverflow.com/questions/30867172/code-not-running-in-ie-11-works-fine-in-chrome

The file you would need to edit is splunk_app_windows_infrastructure\appserver\templates\navredirect.tmpl.

I made the change to the JavaScript and it now works fine in Internet Explorer.

0 Karma

scottshaw
New Member

I have just updated the Windows Infrastructure app to the latest version and noticed the same problem. It worked fine but when I re-ran the setup within the app the links developed the above problem.

On a separate server if I did the Update to the Windows infrastructure app but did not run the setup the pages continued to work ok.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...