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

    Fog 1.1.1 - Update host name bug from lower case to capitals

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    3
    1.1k
    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.
    • R
      RipAU
      last edited by

      Hi Guys,

      I think I found a bug in updating the host name when updating the hostname from lower case to capital letters.

      Normally our naming convention is all capitals like PC-SERIAL
      One of the guys accidentally entered pc-serial which isn’t a big deal so we went to update it to all capital letters in the web interface it comes up with the error “Hostname Exists already”

      When changing it to another name like PC-RANDOM and then renaming it back to PC-SERIAL it works fine.

      I am guessing that php is assuming that A and a are the same.

      Cheers,

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

        This is not really a “bug” persay.

        It’s not PHP assuming A or a, but rather the methods we’re using to select data from the database. I can’t guess every possible situation of events and I’m sorry for that. Basically, FOG’s just checking what is returned. If it’s one or greater, it exists. The only way to “fix” the issue would be to do as you described.

        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
        • R
          RipAU
          last edited by

          Ahh no worries, The work around is easy enough.
          Cheers,

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

          248

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project