[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #25852 [Core Tor/Tor]: GETINFO exit-policy for tor client should return 551



#25852: GETINFO exit-policy for tor client should return 551
------------------------------+----------------------------------
     Reporter:  dmr           |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  tor-spec, tor-client
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+----------------------------------
 In #25423 it was noticed that...
 > [...] the client-only configuration ALWAYS returns this:
 > {{{
 > >>> GETINFO exit-policy/full
 > 551 router_get_my_routerinfo returned NULL
 > }}}

 The control spec didn't specify behavior for this case. For `GETINFO` it
 states:
 {{{
 The server sends a 551 or 552 error on failure.
 }}}
 And more generically describes `551` and `552` as:
 {{{
      551 Internal error
                [Something went wrong inside Tor, so that the client's
                 request couldn't be fulfilled.]

      552 Unrecognized entity
                [A configuration key, a stream ID, circuit ID, event,
                 mentioned in the command did not actually exist.]
 }}}


 Both `551` and `552` are a bit odd for this behavior, but the spec doesn't
 have a code that indicates "You asked for everything ok, but I'm not
 operating in that mode right now" (i.e. N/A).

 However, the spec //does// indicate the following for `GETINFO
 fingerprint`:
 {{{
     "fingerprint" -- the contents of the fingerprint file that Tor
       writes as a relay, or a 551 if we're not a relay currently.
       (Added in 0.1.2.3-alpha)
 }}}

 In discussion with dgoulet and atagar over IRC, we agreed it made the most
 sense to follow this precedent.

 dgoulet reports that `GETINFO fingerprint` currently returns:
 {{{
 551 Not running in server mode
 }}}
 The spec notes "Unless specified to have specific contents, the human-
 readable messages in error replies should not be relied upon to match
 those in this document.", so this info is mentioned to facilitate
 consistency.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25852>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs