[tor-bugs] #19170 [Metrics/CollecTor]: make parsing more robust (extra-info)

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 25 12:18:21 UTC 2016


#19170: make parsing more robust (extra-info)
-----------------------------------+--------------------
     Reporter:  iwakeh             |      Owner:  iwakeh
         Type:  defect             |     Status:  new
     Priority:  Medium             |  Milestone:
    Component:  Metrics/CollecTor  |    Version:
     Severity:  Normal             |   Keywords:  ctip
Actual Points:                     |  Parent ID:
       Points:                     |   Reviewer:
      Sponsor:                     |
-----------------------------------+--------------------
 Almost all of the "Could not parse" warnings on the CollecTor mirror are
 caused by [https://onionoo.torproject.org/details?search=swetor
 SweTor247].

 It seems that some of the country codes use non-ascii characters. The code
 parsing this information is
 [https://gitweb.torproject.org/collector.git/tree/src/main/java/org/torproject/collector/relaydescs/RelayDescriptorParser.java#n272
 here].

 Shouldn't the parser just replace the problematic characters by a default
 character and thus keep the readable information?

 I'll add a stack trace when this happens again.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19170>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list