Page 1 of 1

Insecure script command - perl XMPP script

Posted: Monday 10 October 2022 22:39
by witekp
I am trying to add an XMPP notification - it is described here:

https://www.domoticz.com/wiki/Installin ... ion_System

I get a message in my logs:

Code: Select all

Error: HTTP: Insecure script command!

I agree with that - wrong solution.

However, I am writing a perl script using the excellent library

Code: Select all

Net :: XMPP

It's the same!
Script call in domoticz:

Code: Select all

script://home/myuser/domoticz/scripts/xmpp.pl #FIELD1 #FIELD2 #TO "#MESSAGE"
How to solve the problem? Of course, running the script outside of domoticz works fine.
XMPP is very important to me. This is not related to the file permissions, I have tried to restrict them.
Has anyone encountered such a problem?

Re: Insecure script command - perl XMPP script

Posted: Tuesday 11 October 2022 9:37
by gizmocuz
The above script does not give any warning here
You are sure you are using that exact script line?
(For example, it is not allowed to use single quotes)

Re: Insecure script command - perl XMPP script

Posted: Wednesday 12 October 2022 0:13
by witekp
Thank you for your response.
I didn't have any warnings - only two lines:

Code: Select all

022-10-11 23:33:29.415 Status: Notification: Domoticz test
2022-10-11 23:33:29.415 Error: HTTP: Insecure script command! 
but, when I turned on syslog in domoticz configuration, i have two additional lines:

Code: Select all

 Notification sent (http) => Failed
Active notification Subsystems: browser, fcm, http (3/13)
Maybe I don't have script: // support for notifications? But how can this support be included?

Quotation marks are not a problem, I tried with URL / Action without any parameters:

Code: Select all

script://home/myuser/domoticz/scripts/xmpp-t.pl