• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • J
    johnomaz
    last edited by johnomaz Oct 20, 2015, 3:57 PM Oct 20, 2015, 9:56 PM

    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
    • W
      Wayne Workman
      last edited by Oct 20, 2015, 10:03 PM

      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
      • T
        Tom Elliott
        last edited by Tom Elliott Oct 20, 2015, 4:08 PM Oct 20, 2015, 10:07 PM

        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
        • T
          Tom Elliott
          last edited by Oct 31, 2015, 10:51 PM

          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
          • S
            Scott B
            last edited by Nov 3, 2015, 3:25 PM

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

            OverlySlashy.PNG

            T 1 Reply Last reply Nov 3, 2015, 3:56 PM Reply Quote 0
            • T
              Tom Elliott @Scott B
              last edited by Nov 3, 2015, 3:56 PM

              @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

              S 2 Replies Last reply Nov 3, 2015, 4:10 PM Reply Quote 0
              • S
                Scott B @Tom Elliott
                last edited by Nov 3, 2015, 4:10 PM

                @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
                • S
                  Scott B @Tom Elliott
                  last edited by Nov 4, 2015, 9:07 PM

                  @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

                  265

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project