Hello,
One SmartTask's script which used to work on the version R81.10, is not working correctly in the R81.20
It is about the script to run before publishing that will force to write a session name with more than 20 characters :
#!/bin/bash
namelen=`echo $1 | base64 -id | jq -r .session.\"session-name\" | wc -c`
if [[ $namelen -le 20 ]]; then
printf '{"result":"failure","message":"Session name should be at least 20 characters"}\n'
exit 0
else
printf '{"result":"success"}\n'
exit 0
fi
So everything looks right when I write a session name of less than 20 characters. I will use the default session name :
![patones1_0-1683478824167.jpeg patones1_0-1683478824167.jpeg](https://community.checkpoint.com/t5/image/serverpage/image-id/20812iE7E9B4BB75EFC48B/image-size/medium?v=v2&px=400)
As usual, the publish operation failed :
Then, I wrote a session name of more than 20 characters :
![Publish+20.JPG Publish+20.JPG](https://community.checkpoint.com/t5/image/serverpage/image-id/20814i38575502EB363D06/image-size/large?v=v2&px=999)
Surprise. I got the same error :
![patones1_1-1683478824175.jpeg patones1_1-1683478824175.jpeg](https://community.checkpoint.com/t5/image/serverpage/image-id/20813iD2C62FFE57C1B598/image-size/medium?v=v2&px=400)
I tested the same in a R81.10 and the result with a session name of more than 20 characters, was the spected one :
![details 80.10.JPG details 80.10.JPG](https://community.checkpoint.com/t5/image/serverpage/image-id/20815i96589EF33FE47A93/image-size/large?v=v2&px=999)
It looks like there is a bug on the R81.20 version
I will try to update the SMS with the last jumbo.
If you have no news, it means that the update did not work.
Have a nice end of the day
Miguel