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!

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 ...

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 ...