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

    Printers not displaying right in list

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    4
    8
    2.3k
    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.
    • johnomazJ
      johnomaz
      last edited by johnomaz

      I’m running buid 5020 and found that the printers don’t show up correctly in the list. My .inf files are stored on a server share. For example, we’ll use //server/share/printer.inf.

      When I add the printer, its added like the address above. When I save it, it changes to /server/share/printer.inf.

      If I change it to ///server/share/printer.inf it will show correctly in the list of printers.

      However, if you search for the printer instead of listing all printers and scrolling, its shows all three ///. It appears that its just a visual issue but doesn’t happen on all the printers, only some. I’ve had to go through all nearly 300 printers and ensure its typed correctly. can be a bit confusing.

      I was running build an earlier build from a month ago but upgraded to see if it would fix the issue. It didn’t so the bug is still there, at least for me. Its something I can avoid since I know its there, but a bug is a bug.

      It also appears that clicking Update Printer or Add Printer removes one / each time.

      1 Reply Last reply Reply Quote 1
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        Moved to bug reports.

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

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

          I'm not so certain that this is really a bug.
          I don't know of a good way to handle slashes in php.
          Not that there are not methods, but the slashes we need are being escaped improperly.
          The way php handles backslashes is they're "escape" characters.
          This means that to display a single slash followed by a common key sequence 
          (for example backslash n \n equates to a new line.
          But what if you wanted a printer named \\novemberrain\terrible  it will replace 
          the \t with a tab and the \n in our case is escaped so it would display as \novemberrainerrible
          

          Javascript has this issue as well which is why I ran the other comments in a code phrase.

          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
            last edited by

            I’m solving this thread as the issue has been addressed two fold. First, when the data is stored it adds then strips slashes and I do the same for how it gets output.

            I’m sure there may be a nicer way and printers that stored improperly will still need to be fixed but the problem this is focusing on can, I think, safely be solved.

            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 2
            • Scott BS
              Scott B
              last edited by

              I’m still having the same issue, currently SVN 5207.

              OverlySlashy.PNG

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

                @Scott-B You will have to update the information so the values get properly updated.

                I’m adding proper code to check for these things now and what you’re seeing is the old double addslashes methodology.

                I assure you it will work. There will be some work on your part, but once it’s done I assure you it will work.

                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

                Scott BS 2 Replies Last reply Reply Quote 0
                • Scott BS
                  Scott B @Tom Elliott
                  last edited by

                  @Tom-Elliott said:

                  @Scott-B You will have to update the information so the values get properly updated.

                  I’m adding proper code to check for these things now and what you’re seeing is the old double addslashes methodology.

                  I assure you it will work. There will be some work on your part, but once it’s done I assure you it will work.

                  Thanks Tom. I can do anything necessary to get the printers to work correctly. I tried using the “//server/folder/print.inf” method @johnomaz posted, but when I do so I get a message saying “printer updated”, but then it just goes back to the old value.

                  1 Reply Last reply Reply Quote 0
                  • Scott BS
                    Scott B @Tom Elliott
                    last edited by

                    @Tom-Elliott said:

                    @Scott-B You will have to update the information so the values get properly updated.

                    I’m adding proper code to check for these things now and what you’re seeing is the old double addslashes methodology.

                    I assure you it will work. There will be some work on your part, but once it’s done I assure you it will work.

                    Thanks for your help. Any idea why when the printers are assigned to a host they end up reverting back to the extra \\\ ?

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    207

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project