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

[tor-bugs] #21329 [Core Tor]: onions/detached and onions/current should return empty lists instead of errors



#21329: onions/detached and onions/current should return empty lists instead of
errors
--------------------------+--------------------------
     Reporter:  meejah    |      Owner:
         Type:  defect    |     Status:  new
     Priority:  Medium    |  Milestone:
    Component:  Core Tor  |    Version:  Tor: 0.2.9.9
     Severity:  Normal    |   Keywords:  controller
Actual Points:            |  Parent ID:
       Points:            |   Reviewer:
      Sponsor:            |
--------------------------+--------------------------
 If you do a GETINFO query on `onions/detached` or `onions/current` and
 there aren't any, a 551 error is returned. Most other things just return
 an empty list/value in this case and I think these should too.

 One consequence of this is that if you ask for `onions/current` with some
 other keys and there are no current onions, the whole query will fail.

 So `GETINFO onions/current` should return `onions/current=` instead of an
 error.

 For example you can try `carml cmd getinfo orconn-status onions/current`
 to see this behavior.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21329>
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