Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-303

scrollbar redirect to wrong URL when a non-defaut port is used

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • Frontend (F)
    • None

      http://host:8080/zabbix-1.5/charts.php?stime=200802070734&period=3600
      will redirect to:
      http://host/zabbix-1.5/charts.php?stime=200802070734&period=3600

      the patch:

      diff -ur zabbix-1.5-20080201/frontends/php/js/url.js /var/www/html/zabbix-1.5/js/url.js
      — zabbix-1.5-20080201/frontends/php/js/url.js 2008-02-01 11:01:08.000000000 +0100
      +++ /var/www/html/zabbix-1.5/js/url.js 2008-02-07 12:18:27.000000000 +0100
      @@ -78,7 +78,8 @@
      else{
      var portColonIndex=this.host.indexOf(':');
      if(portColonIndex>=0)

      { - this.port=this.host.substring(portColonIndex); + // drop leading ':' + this.port=this.host.substring(portColonIndex+1); this.host=this.host.substring(0,portColonIndex); }

      }
      @@ -138,6 +139,7 @@
      uri += encodeURI((this.username.length > 0)?(this.username):'');
      uri += encodeURI((this.password.length > 0)?(':'+this.password):'');
      uri += (this.host.length > 0)?(this.host):'';
      + uri += (this.port > 0) ? (":"+this.port):'';
      uri += encodeURI((this.path.length > 0)?(this.path):'');
      uri += encodeURI((this.query.length > 0)?('?'+this.query):'');
      uri += encodeURI((this.reference.length > 0)?('#'+this.reference):'');
      @@ -251,4 +253,4 @@
      this.path = path;
      }

      -}
      \ No newline at end of file
      +}

            Unassigned Unassigned
            dakol dakol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: