Discussion:
[tor-dev] non-ASCII handling in tor and onionoo
nusenu
2017-10-13 13:17:00 UTC
Permalink
Hi,

I'm trying to find out if non-ASCII characters are allowed in descriptor
data (and what onionoo would do with non-ASCII currently displayed as "?").

According to the spec non-ASCII chars are not allowed:
https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n218

I searched trac because I remembered there were some ASCII related tickets:

https://trac.torproject.org/projects/tor/ticket/1258
closed due to
https://trac.torproject.org/projects/tor/ticket/1720 (which has nothing
to do with non-ASCII)
https://trac.torproject.org/projects/tor/ticket/1270


Is this summary correct?

Currently non-ASCII is not compliant with the spec but your consensus is
that non-ASCII chars should be supported but no one got around to patch
the spec and implementation.


thanks,
nusenu
--
https://mastodon.social/@nusenu
twitter: @nusenu_
teor
2017-10-13 16:05:36 UTC
Permalink
Post by nusenu
Hi,
I'm trying to find out if non-ASCII characters are allowed in descriptor
data (and what onionoo would do with non-ASCII currently displayed as "?").
https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n218
https://trac.torproject.org/projects/tor/ticket/1258
closed due to
https://trac.torproject.org/projects/tor/ticket/1720 (which has nothing
to do with non-ASCII)
https://trac.torproject.org/projects/tor/ticket/1270
Is this summary correct?
Currently non-ASCII is not compliant with the spec but your consensus is
that non-ASCII chars should be supported but no one got around to patch
the spec and implementation.
Non-ASCII characters are supported in the contact and platform fields.
Some contact fields use non-ASCII for accented characters, and relay
operators want us to continue to support them.

https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n2011

There is a ticket about requiring ASCII in relay descriptors, which we
should wontfix. There is a ticket about requiring ASCII in extrainfo
descriptors, which we closed because we fixed the underlying
memory disclosure bug.

T
nusenu
2017-10-14 18:55:00 UTC
Permalink
at least onionoo does not provide any non-ASCII data from ContactInfo

example:

https://atlas.torproject.org/#details/B79589355A41880DFF82F5225F2940437CEDE925

https://collector.torproject.org/recent/relay-descriptors/server-descriptors/2017-10-13-00-05-00-server-descriptors
--
https://mastodon.social/@nusenu
twitter: @nusenu_
Loading...