Docking@home stats export XML invalid breaking import


Advanced search

Message boards : Web site : Docking@home stats export XML invalid breaking import

Sort
Author Message
Jonathan Brier

Joined: Sep 27 08
Posts: 1
ID: 1694
Credit: 424,498
RAC: 0
Message 7065 - Posted 1 Mar 2013 16:58:00 UTC

The Docking@home stats output XML is being broken by /* being inserted as a comment block. The appropriate comment method is <!-- -->.

This is breaking parsing for importing of Docking@home stats. Can this please be fixed. Thank you!

The inserted characters in live stats XML code:
"...
<expavg_credit>549.80174</expavg_credit>
/*
<expavg_time>1362053407.74222</expavg_time>
*/
<teamid>38</teamid>
..."

Message boards : Web site : Docking@home stats export XML invalid breaking import

Database Error
: The MySQL server is running with the --read-only option so it cannot execute this statement
array(3) {
  [0]=>
  array(7) {
    ["file"]=>
    string(47) "/boinc/projects/docking/html_v2/inc/db_conn.inc"
    ["line"]=>
    int(97)
    ["function"]=>
    string(8) "do_query"
    ["class"]=>
    string(6) "DbConn"
    ["object"]=>
    object(DbConn)#6 (2) {
      ["db_conn"]=>
      resource(54) of type (mysql link persistent)
      ["db_name"]=>
      string(7) "docking"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      &string(51) "update DBNAME.thread set views=views+1 where id=718"
    }
  }
  [1]=>
  array(7) {
    ["file"]=>
    string(48) "/boinc/projects/docking/html_v2/inc/forum_db.inc"
    ["line"]=>
    int(60)
    ["function"]=>
    string(6) "update"
    ["class"]=>
    string(6) "DbConn"
    ["object"]=>
    object(DbConn)#6 (2) {
      ["db_conn"]=>
      resource(54) of type (mysql link persistent)
      ["db_name"]=>
      string(7) "docking"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(3) {
      [0]=>
      object(BoincThread)#3 (16) {
        ["id"]=>
        string(3) "718"
        ["forum"]=>
        string(2) "10"
        ["owner"]=>
        string(4) "1694"
        ["status"]=>
        string(1) "0"
        ["title"]=>
        string(53) "Docking@home stats export XML invalid breaking import"
        ["timestamp"]=>
        string(10) "1362157080"
        ["views"]=>
        string(2) "20"
        ["replies"]=>
        string(1) "0"
        ["activity"]=>
        string(19) "4.2244798971147e-30"
        ["sufferers"]=>
        string(1) "0"
        ["score"]=>
        string(1) "0"
        ["votes"]=>
        string(1) "0"
        ["create_time"]=>
        string(10) "1362157080"
        ["hidden"]=>
        string(1) "0"
        ["sticky"]=>
        string(1) "0"
        ["locked"]=>
        string(1) "0"
      }
      [1]=>
      &string(6) "thread"
      [2]=>
      &string(13) "views=views+1"
    }
  }
  [2]=>
  array(7) {
    ["file"]=>
    string(63) "/boinc/projects/docking/html_v2/user/community/forum/thread.php"
    ["line"]=>
    int(184)
    ["function"]=>
    string(6) "update"
    ["class"]=>
    string(11) "BoincThread"
    ["object"]=>
    object(BoincThread)#3 (16) {
      ["id"]=>
      string(3) "718"
      ["forum"]=>
      string(2) "10"
      ["owner"]=>
      string(4) "1694"
      ["status"]=>
      string(1) "0"
      ["title"]=>
      string(53) "Docking@home stats export XML invalid breaking import"
      ["timestamp"]=>
      string(10) "1362157080"
      ["views"]=>
      string(2) "20"
      ["replies"]=>
      string(1) "0"
      ["activity"]=>
      string(19) "4.2244798971147e-30"
      ["sufferers"]=>
      string(1) "0"
      ["score"]=>
      string(1) "0"
      ["votes"]=>
      string(1) "0"
      ["create_time"]=>
      string(10) "1362157080"
      ["hidden"]=>
      string(1) "0"
      ["sticky"]=>
      string(1) "0"
      ["locked"]=>
      string(1) "0"
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      &string(13) "views=views+1"
    }
  }
}
query: update docking.thread set views=views+1 where id=718