[tor-bugs] #19842 [Metrics/metrics-lib]: offer a `LenientParser` option with metrics-lib

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 5 10:54:56 UTC 2016


#19842: offer a `LenientParser` option with metrics-lib
-------------------------------------+---------------------
     Reporter:  iwakeh               |      Owner:  karsten
         Type:  enhancement          |     Status:  new
     Priority:  Medium               |  Milestone:
    Component:  Metrics/metrics-lib  |    Version:
     Severity:  Normal               |   Keywords:
Actual Points:                       |  Parent ID:
       Points:                       |   Reviewer:
      Sponsor:                       |
-------------------------------------+---------------------
 Provide another parser option, quote from #19170#comment:7

   make use of the `descriptor.parser` and `descriptor.reader` properties
 and supply a different non-ascci-accepting parser, let's call it
 `LenientParser`, as well as a LenientReader.

 * Necessary change in CollecTor would be to set the `descriptor.parser`
 and `descriptor.reader` properties to the LenientParser class.
 * Necessary change in metrics-lib would be the addition of the
 LenientParser, which consist mostly in providing additional ParserHelper
 methods that accept non-ascii and calling these in the appropriate places;
 most of the code will be the same as in the current, stricter
 implementation.  Also a LenientReader would have to be supplied.

 That way we could switch between implementations.
 Users of metrics-lib would also have another option.

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


More information about the tor-bugs mailing list