All Apps and Add-ons

IE8 throws error when $foo.rawValue$ is used in ArrayValueSetter

cmak
Contributor

This is my array Value setter code

    <module name="ArrayValueSetter">
 <param name="name">Weight_Select_URL</param>
<param name="array">$Weight_Select.rawValue$</param>
<param name="template">Weight_Select=$value$</param>
<param name="separator"><![CDATA[&]]></param>
<param name="outerTemplate">$value$</param>

IE8 throws the error that ArrayValueSetter array param must be a single $foo$ token.

Chrome and Firefox do not have this issue.

The ArrayValueSetter docs do not work as well.

0 Karma

sideview
SplunkTrust
SplunkTrust

My apologies for taking so long to discover root cause for this problem. Since I could not reproduce any problem in IE8 or IE9, I continued to think that the root cause was some packaging or mangled deployment issue.

Instead it has turned out that cmak must have had Microsoft's evil "Compatibility Mode" turned on in IE8, and that ArrayValueSetter was not implemented to work in compatibility mode.

This has been remedied as of Sideview Utils 3.2.1, which you can of course only get from the Sideview website. http://www.sideviewapps.com/apps/sideview-utils/

0 Karma

sideview
SplunkTrust
SplunkTrust

I checked the ArrayValueSetter documentation on IE8 and I can't find anything on the page that doesn't work correctly. IE9 and IE10 also seem fine.

That error message can only be triggered if the string value of the array param does not begin and end with "$" characters. Since your param clearly begins and ends with "$" characters I'm a little confused as to how you can be hitting the message! This logic is well before the module does anything complex at all.

Can we start at a high level with some more questions? If you've recently upgraded Sideview Utils can you explicitly clear your browser cache and try again? Although Splunk's system is supposed to not suffer cacheing problems across app upgrades, I think there are still cacheing problems around static files in apps. At least, about once a month I have some "weird" support case like this where clearing cache mysteriously fixes the problem.

Also can you tell me how you're editing the XML? One thing to double check is that if you're editing the view on disk, and if the view loaded in memory was missing the trailing "$" on the array param, then you'd hit this error.

You can also email the whole view to me at nick at sideviewapps.com I can mock it up locally and there might be some other contributing factor going on.

0 Karma

cmak
Contributor

On my server, I do not think it is a problem with my view as the docs page does not work as well (throws the same error).

I'll still send you my view as well.

0 Karma

sideview
SplunkTrust
SplunkTrust

OK. This is weird, but I think something on the page config somewhere is partly corrupting the JSON params which load the modules, only on IE, and this is basically the visible symptom of a larger trainwreck where the params are getting garbled. Can you email me the entire view. I was suspicious of that CDATA'ed "&" character but IE seems to handle that OK. Still, the evidence points to chicanery way down in the actual JSON params.

0 Karma

cmak
Contributor

Yup they are two different installations (on two different servers).

0 Karma

sideview
SplunkTrust
SplunkTrust

Two versions? I hope they're on entirely separate Splunk instances. If you were to rename one of them and put it on the same instance, very evil things happen and that may actually be the cause.

0 Karma

cmak
Contributor

That is weird as the documentation page does not work for me.

en-US/app/sideview_utils/array_value_setter1_intro

I have cleared the cache and I have 2 versions 2.4.4 and 2.4.7. Both generate this error.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...