Snapin Update in Snapin Management Edit changes snapin File Name to "1"
-
Hi guys,
when I try to update a snapin in Snapin Management Edit and upload new file (ps1 or zip or whatever) the file got renamed to “1” and stored in /opt/fog/snapins. If I edit two snapins, they share file “1”.The only workaround now is to delete end recreate snapin to get proper filename.
I would love to debug but I need to know where to look
I am on updated Debian 11.4, FOG 1.5.9.154Thanks for help
Peter Michalčík -
@petěrko I actually noticed this same problem. Hadn’t gotten around to reporting it yet. I just used an FTP client to upload to /opt/fog/snapins as a workaround. I share a script for many snapins so deleting and recreating wasn’t really an option.
Maybe @Sebastian-Roth can help us out. -
@JJ-Fullmer @Petěrko Can one of you please provide more details on the exact steps to reproduce the issue mentioned?
-
- Go to a snapin in the GUI
- upload a new file for the snapin, or a new version of the same file
- look at /opt/fog/snapins and see a file named
1
instead of your updated file.
-
Thanks for looking into it @Sebastian-Roth and @JJ-Fullmer:
Updated to 1.5.9.156 and this issue still exists:- Go to existing Snapin
- Browse and upload new file
- Snapin gets updated
- Open Snapin again and it says (unfortunately) the attached file name is 1.
- In /opt/fog/snapins: original file stays (with original name), new file is named 1.
- After update I see one difference, in a group:
v154: fogproject:www-data
v156: fogproject:fogproject - If you update more Snapins, the file named 1 get rewritten again and again as all updated Snapins refer to this file.
-
@Petěrko @JJ-Fullmer This should be fixed in the very latest dev-branch (1.5.9.159 and later).
-
Thanks a lot,
@Sebastian-Roth !Can confirm. In 1.5.9.159 Snapin update is working as expected.
Peter