Ad Widget

Collapse

[1.6.3][frontend] bug fix which enabled to switch the status in multilanguage env.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • t2y
    Member
    • Feb 2009
    • 60

    #1

    [1.6.3][frontend] bug fix which enabled to switch the status in multilanguage env.

    Hi,

    I found a bug which cannot switch "ACTIVE"/"DISABLED" by clicking "Status" on Web/Items window in multilanguage environment.
    # I originally found this problem on zabbix-1.4.6.
    # see also http://www.zabbix.com/forum/showthread.php?t=11931

    The cause is using literal when a user click "Status" to switch the status "ACTIVE"/"DISABLED". It should be used the constant number in httpconf.php/items.php. Because, "Status" is translated to another word in multilanguage environment.
    # refer to attached image
    Attached Files
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for reporting this. Registered as ZBX-825.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • t2y
      Member
      • Feb 2009
      • 60

      #3
      Thanks for registering, I'm glad to be of service.

      Comment

      • Aly
        ZABBIX developer
        • May 2007
        • 1126

        #4
        This patch doesn't fully covers the problem.
        Zabbix | ex GUI developer

        Comment

        • t2y
          Member
          • Feb 2009
          • 60

          #5
          Hi Aly,
          Thank you for reviewing. Why do you think so?

          Comment

          • Aly
            ZABBIX developer
            • May 2007
            • 1126

            #6
            We are using curl class to parse url for internal usage. In that class php function "parse_url" is used, which doesn't support multibyte chars, that can bring to problems in some circumstances (example: try using cyrillic locals).
            Zabbix | ex GUI developer

            Comment

            • t2y
              Member
              • Feb 2009
              • 60

              #7
              I verified this bug has gone away in 1.6.4.
              http://www.zabbix.com/rn1.6.4.php
              Originally posted by Alexei
              Thanks for reporting this. Registered as ZBX-825.
              About Aly's reply. I think you are correct. As you know, php sometimes work strangely in multilanguage environment. Also I know "php.ini" configuration about how to work in Japanese. So, I think ZABBIX don't need to take care it. Because it's a problem of php configuration/specification.
              And then, though I tried to use cyrillic locals, I had no idea how to configure
              Originally posted by Aly
              We are using curl class to parse url for internal usage. In that class php function "parse_url" is used, which doesn't support multibyte chars, that can bring to problems in some circumstances (example: try using cyrillic locals).

              Comment

              • Aly
                ZABBIX developer
                • May 2007
                • 1126

                #8
                Anyway url_parse have been replaced, so i think there shouldn't be problems with parsing urls with multibyte chars
                Zabbix | ex GUI developer

                Comment

                Working...