Weird error adding a simple script

I wanted to add a new script to a test deployment, but every time I save the script, got this error:

imagen

If I do not attach any file to the script then I can save it. But as soon as I add a file “Default” (for setting up /etc/gdm3/PostLogin/Default) then the error triggered.

I tried to rename the file, but no way. I tried with another Landscape instance, with the same error result.

Finally I got rid of this “mistery”.

If the file I want to attach to a script profile is owned by root, Firefox shows up the error. As soon as I change the owner to my user, everything works fine. Weird!

File had read permissions for everyone, so I do not understand why the upload fails:

-rw-r--r-- 1 root root 225 jun 27 07:54 corporate-alert.desktop