• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Snapin Pack Arguments double-quotes problem

    Scheduled Pinned Locked Moved Solved FOG Problems
    13 Posts 3 Posters 980 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Infojoe
      last edited by

      Hello everyone !
      When snapin pack management page is loaded, double quotes in snapin arguments are not well escaped and only ‘/c’ remains (batch script) instead of ‘/c “[FOG_SNAPIN_PATH]\drivers.cmd”’. It looks like this :
      c217732c-3247-4c0e-8bf9-f020fcd454ec-image.png
      In page code, it looks like this :
      <input type=“text” class=“snapinrwa-input cmdlet2 form-control” name=“rwa” id=“snaprwa” value=“/c " [fog_snapin_path]=”" drivers.cmd"“=”">

      If I update snapin without full putting the whole again code, only “/c” remains.

      Am I the only one with this problem ?

      Thank you for the great job on this software anyway 🙂

      1 Reply Last reply Reply Quote 0
      • S
        slackenberg
        last edited by

        The same thing is happening on my end as well.

        steps to reproduce:

        • create new snap pack
        • select powershell script template
        • notice the string in Snapin Pack Arguments that includes quotes
          **-ExecutionPolicy Bypass -File "[FOG_SNAPIN_PATH]\MyScript.ps1"
        • attach zip file
        • click add and wait for the snap pack tosave
        • go back to view the snap pack and see that anything including and after the first double quote vanishes.
          ** powershell.exe -ExecutionPolicy Bypass -File

        Fog server OS is Alma 9.7
        Fog == 1.5.10.1733

        fog-sp-2.png fog-sp-1.png

        I 2 Replies Last reply Reply Quote 0
        • S
          slackenberg
          last edited by

          Looking at my other Fog server at home, it does not appear to have the same issue. I can dig deeper here but on the surface, the major difference is that the home machine is Ubuntu 24.04 with fog version 1.5.10.1650

          1 Reply Last reply Reply Quote 0
          • I
            Infojoe
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • I
              Infojoe
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • I
                Infojoe @slackenberg
                last edited by

                My Fog version : 1.5.10.1734 over Ubuntu 22.
                It just looks like double-quotes escaping problem…

                S I 2 Replies Last reply Reply Quote 0
                • S
                  slackenberg @Infojoe
                  last edited by

                  @Infojoe I tried escaping the quotes but that didn’t change anything on my side. And it’s odd that the template form in the snap pack does not include escapes if they are required.

                  1 Reply Last reply Reply Quote 0
                  • I
                    Infojoe @Infojoe
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • I
                      Infojoe @slackenberg
                      last edited by

                      @slackenberg
                      New version 1.5.10.1742, same problem.
                      It’s very dangerous ! In fact, if you update a snapin without writing whole arguments with double-quotes again, they’re lost and snapin is not executed.

                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @Infojoe
                        last edited by

                        @Infojoe Please try the latest dev branch. this should be fixed.

                        The issue was simple:

                        Basically the arguments are stored and from what I could tell, work, but when the HTML side would go to re-display it it would make an input value of:

                        value="    -Execution -File "[FOG_SNAPIN].PS1""
                        

                        Do you see the problem?

                        From HTML side, it would think the string ended at the first double quote.

                        This has been found and should be fixed in the latest dev-branch.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        I 1 Reply Last reply Reply Quote 0
                        • I
                          Infojoe
                          last edited by Infojoe

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • I
                            Infojoe @Tom Elliott
                            last edited by

                            @Tom-Elliott
                            Corrected in 1.5.10.1744 !
                            Thank you mastacontrola and Tom 👍 😊

                            Tom ElliottT 1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott @Infojoe
                              last edited by

                              @Infojoe They are one in the same lol and you’re welcome.

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              1 Reply Last reply Reply Quote 0
                              • Tom ElliottT Tom Elliott has marked this topic as solved
                              • 1 / 1
                              • First post
                                Last post

                              122

                              Online

                              12.5k

                              Users

                              17.5k

                              Topics

                              156.1k

                              Posts
                              Copyright © 2012-2026 FOG Project