<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirclient/src/err.rs, branch arti-v1.2.3</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.3</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.3'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-11-29T20:14:36Z</updated>
<entry>
<title>Preserve HTTP status text in dirclient errors.</title>
<updated>2023-11-29T20:14:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-11-29T20:09:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e38219a1688f76288c61e42ee56cbd646a1c76c8'/>
<id>urn:sha1:e38219a1688f76288c61e42ee56cbd646a1c76c8</id>
<content type='text'>
The HTTP status text is often useful for diagnosing errors.  Tor
directory and hsdir caches frequently put useful messages there,
especially when rejecting an uploaded document.

Inspired by #1142.
</content>
</entry>
<entry>
<title>Privacy: Do not list supported encodings in hsdesc reqs.</title>
<updated>2023-10-16T18:49:41Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-10-16T18:32:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cfe641613e6b6f4f55de87621eadacf24d22a939'/>
<id>urn:sha1:cfe641613e6b6f4f55de87621eadacf24d22a939</id>
<content type='text'>
Since not everybody has xz and/or zstd, we don't want to admit
whether we support them when we are uploading or downloading an
onion service descriptor.  Similarly, if we aren't advertising
support for an encoding, we shouldn't accept it.

Finally, while we're doing this, it made sense to have the ability
to mark requests based on how anonymized they are, and reject (some)
attempts to send those requests over a one-hop circuit.

Closes #1062
</content>
</entry>
<entry>
<title>Suppress two clippy::large_enum_variant warnings</title>
<updated>2022-11-03T15:09:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-03T15:09:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1179c398599664504a80c9072c3e4abfc9c76f23'/>
<id>urn:sha1:1179c398599664504a80c9072c3e4abfc9c76f23</id>
<content type='text'>
These are newly present on 1.65.  We can address them later.
</content>
</entry>
<entry>
<title>tor-dirclient: impl HasKind for RequestFailedError</title>
<updated>2022-10-25T19:12:56Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-25T16:05:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=79a6b4d94f910de1d6fd4dd284995df96300349e'/>
<id>urn:sha1:79a6b4d94f910de1d6fd4dd284995df96300349e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirclient: Introduce RequestError:HttpStatus</title>
<updated>2022-10-20T16:24:53Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-19T11:20:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b3675c76dc43b9499bb7861b67b3dcb087c92412'/>
<id>urn:sha1:b3675c76dc43b9499bb7861b67b3dcb087c92412</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-dirclient: Make RequestFailed its own error type</title>
<updated>2022-10-20T16:24:53Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-19T11:14:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d9375b2b8d60c43023b6a41c0d2429ea6efa72c6'/>
<id>urn:sha1:d9375b2b8d60c43023b6a41c0d2429ea6efa72c6</id>
<content type='text'>
We're going to have functions on Response that fail by returning only
one of these.

Sadly this diff is quite noisy.
</content>
</entry>
<entry>
<title>Improve display for tor-dircache errors.</title>
<updated>2022-07-07T18:07:04Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-07T18:00:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=82766e74e4db98491d962a356238a7d1a5c00cf3'/>
<id>urn:sha1:82766e74e4db98491d962a356238a7d1a5c00cf3</id>
<content type='text'>
These errors no longer use Debug to dump the `Option&lt;SourceInfo&gt;`, but
instead produce reasonable text.  Also, I've fixed the SourceInfo
Display implementation so that it now says that it got the error
"from $source via $circuit" rather than the other way around.
</content>
</entry>
<entry>
<title>dirclient: Generalize MdSha256Empty to EmptyRequest.</title>
<updated>2022-07-07T18:07:04Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-07T17:28:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d681967b61fc7aec208626f452fa9520f7cb3dad'/>
<id>urn:sha1:d681967b61fc7aec208626f452fa9520f7cb3dad</id>
<content type='text'>
(It makes sense to use this for things that are not in fact lists of
SHA256 digests of Microdescriptors.)
</content>
</entry>
<entry>
<title>Do not include error source() in display() format.</title>
<updated>2022-06-21T18:14:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-21T18:14:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=08d9bbf33b9fff8aa33a823422aa4e323137be07'/>
<id>urn:sha1:08d9bbf33b9fff8aa33a823422aa4e323137be07</id>
<content type='text'>
According to doc/Errors.md, and in keeping with current best
practices, we should not include display an error's `source()` as
part of that error's display method.  Instead, we should let the
caller decide to call source() and display that error in turn.

Part of #323.
</content>
</entry>
<entry>
<title>tor-dirclient: Require that self.digests is nonempty</title>
<updated>2022-05-30T18:46:54Z</updated>
<author>
<name>Neel Chauhan</name>
<email>neel@neelc.org</email>
</author>
<published>2022-05-30T18:28:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=04579c03281d0de7c9899faef22707c7e643e8dc'/>
<id>urn:sha1:04579c03281d0de7c9899faef22707c7e643e8dc</id>
<content type='text'>
</content>
</entry>
</feed>
