[Casper] Casper Remote Script params problem. 6.0.1 Bug??

NATHANIEL.LINDLEY at spps.org NATHANIEL.LINDLEY at spps.org
Wed May 20 11:00:20 PDT 2009


This might explain why my bindtoOD.sh script needs the custom IP address 
put in both Parameter1 and Parameter2.
-Nathaniel




From:
"jgreenaway" <jgreenaway at lblp.com>
To:
casper at list.jamfsoftware.com
Date:
05/20/2009 12:25 PM
Subject:
[Casper] Casper Remote Script params problem. 6.0.1 Bug??
Sent by:
casper-bounces at list.jamfsoftware.com



I think I found a bug in Casper Remote when passing script parameters. I'm 
using the
BashExample.sh script here.  Here is how to recreate the bug:

1. Launch Casper Remote and login to JSS
2. Select Computers -> any machine
3. Goto Scripts -> Select BashExample.sh
4. Fill in "parameter 1" with value of "paramA"
5. Important: Without selecting anything else and leaving focus on the 
"parameter 1" field click
the "Go" or just enter.

View the log when script is done running and notice that "parameter 1" 
does not have any value: 
[..........]
Custom Parameter 1:
Custom Parameter 2:
Custom Parameter 3: 
[........]

Now do the same steps as above setting "parameter 1" to "paramA" and 
"parameter 2" to "paramB". 
Again, leave the focus on the "parameter 2" field and submit the job.  You 
will see something like
this in your log:
[..........]
Custom Parameter 1: paramA
Custom Parameter 2:
Custom Parameter 3: 
[........]

So this time you get the correct "parameter 1" value but "parameter 2" is 
blank. I previously
thought that Casper Remote was just lopping off the last passed parameter 
but some more testing
proved me wrong.

Now I believe Casper Remote is only updating it's job payload/details as 
there are changes (or
"un-focus" events) in the UI, and not as values are entered.  This bug 
probably doesn't affect too
many people because I could find no one else having it, but it's annoying. 
 Oddly enough, if you
save the job and run the .casper file you get the results you would 
expect.

I have tested this on a handful of different machines and I get the same 
results.  Can someone else
out there confirm this bug using the above steps?

Casper version : 6.01
Jim Greenaway
Lindamood-Bell Learning Processes

[attachment "BashExample.sh" deleted by NATHANIEL LINDLEY/spps] 
_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090520/b204cc3c/attachment.htm 


More information about the Casper mailing list