All Apps and Add-ons

Sideview Utils Redirector Error 2.2.9

slierninja
Communicator

I'm getting this error in Sideview Utils when clicking on a SimpleResultsTable with a Redirector module. The Redirector module also doesn't work for any of our views after we upgraded from 1.3.5. When we click on the link to drilldown, nothing happens - previously in 1.3.5 the proper URI was launched without error.

 Uncaught TypeError: Object #<Object> has no method 'setDrilldownSearchTerms' core_patches.js:511
Splunk.Module.SimpleResultsTable.$.klass.getModifiedContext core_patches.js:511
(anonymous function) common.min.js:5821
 Splunk.Module.DispatchingModule.$.klass.pushContextToChildren modules-c89cd218a3837f945ed15817bdf033c3.min.js:546
(anonymous function) common.min.js:5821
Splunk.Module.SimpleResultsTable.$.klass.onRowClick modules-c89cd218a3837f945ed15817bdf033c3.min.js:3446
(anonymous function) common.min.js:5672
jQuery.event.handle common.min.js:1419
elemData.handle.eventHandle common.min.js:1245

Source Reference

<module name="SimpleResultsTable">
    <param name="drilldown">all</param>
    <param name="allowTransformedFieldSelect">True</param>                            
    <module name="Redirector">
        <param name="popup">True</param>
        <param name="url">flashtimeline</param>
        <param name="arg.q">search ....</param>
    </module>
</module>
1 Solution

sideview
SplunkTrust
SplunkTrust

From your error message it's clear that there's a cacheing problem in Splunk itself unfortunately. Splunk has very aggressive client-side cacheing, and the cache is supposed to be effectively expired on app upgrades, but I'm getting cases where people are running into trouble. In these cases apps get upgraded and what ends up loading in the browser is a mixture of old code and new code.

It looks like you have old code for the SideviewUtils module but new code for the core_patches.js file. This leads to a bit of a trainwreck at runtime, and that Javascript error.

Fixing it for just you -- clear your browser cache.

Trying to fix it for everyone -- In Sideview Utils go to "Key Techniques > Other > Tools ". Then click on the link to the FreshMaker (bookmark it if you haven't already because it's quite useful. Then down near the bottom of the Freshmaker there's a link that says "/en-US/_bump " Click that.

That will take you to: http://YOUR_HOST_AND_PORT/en-US/_bump

where you can click the button you see there. That will increment the bump number, which should effectively defeat everyone's caches, by slightly modifying all the underlying URL's to all static files.

View solution in original post

sideview
SplunkTrust
SplunkTrust

From your error message it's clear that there's a cacheing problem in Splunk itself unfortunately. Splunk has very aggressive client-side cacheing, and the cache is supposed to be effectively expired on app upgrades, but I'm getting cases where people are running into trouble. In these cases apps get upgraded and what ends up loading in the browser is a mixture of old code and new code.

It looks like you have old code for the SideviewUtils module but new code for the core_patches.js file. This leads to a bit of a trainwreck at runtime, and that Javascript error.

Fixing it for just you -- clear your browser cache.

Trying to fix it for everyone -- In Sideview Utils go to "Key Techniques > Other > Tools ". Then click on the link to the FreshMaker (bookmark it if you haven't already because it's quite useful. Then down near the bottom of the Freshmaker there's a link that says "/en-US/_bump " Click that.

That will take you to: http://YOUR_HOST_AND_PORT/en-US/_bump

where you can click the button you see there. That will increment the bump number, which should effectively defeat everyone's caches, by slightly modifying all the underlying URL's to all static files.

sideview
SplunkTrust
SplunkTrust

No problem. Let me know if you have any problems. (support [at] sideviewapps.com ) I'll also try to do some formal testing on 1.3.5 - 2.2.X upgrades. It's troubling that there's a cacheing problem here.

0 Karma

slierninja
Communicator

Brilliant - I haven't ran into this caching issue yet, great to know how to fix it for all users. Kudos for the help.

0 Karma

slierninja
Communicator

Downgrading from 2.2.9 to 1.3.5 fixes this issue - but we'd really like to start using the latest if possible. Please advise.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...