CHANGELOG.md 13.2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# Changes in version 2.7.0 - 2019-0?-??

 * Medium changes
   - Use Ivy for resolving external dependencies rather than relying
     on files found in Debian stable packages. Requires installing Ivy
     (using `apt-get install ivy`, `brew install ivy`, or similar) and
     running `ant resolve` (or `ant -lib /usr/share/java resolve`).
     Retrieved files are then copied to the `lib/` directory, except
     for dependencies on other metrics libraries that still need to be
     copied to the `lib/` directory manually. Current dependency
     versions resolved by Ivy are the same as in Debian stretch with
     few exceptions.
13
   - Remove Cobertura from the build process.
14
15


Karsten Loesing's avatar
Karsten Loesing committed
16
# Changes in version 2.6.2 - 2019-05-29
17
18
19
20
21

 * Medium changes
   - Recognize bandwidth files with @type annotation.


Karsten Loesing's avatar
Karsten Loesing committed
22
# Changes in version 2.6.1 - 2019-05-03
23
24
25
26
27

 * Medium changes
   - Fix a bug in recognizing descriptors as bandwidth files.


Karsten Loesing's avatar
Karsten Loesing committed
28
# Changes in version 2.6.0 - 2019-04-29
29
30

 * Medium changes
Karsten Loesing's avatar
Karsten Loesing committed
31
   - Stop signing jar files.
32
33
34
   - Add new BandwidthFile descriptor for parsed bandwidth files.


Karsten Loesing's avatar
Karsten Loesing committed
35
# Changes in version 2.5.0 - 2018-09-25
36
37
38
39
40
41
42

 * Medium changes
   - Go back to using Apache Commons Codec as base64 and hexadecimal
     codec rather than using JAXB which won't be available anymore
     after upgrading from Java 8 to 9. Applications must provide
     Apache Commons Codec 1.10 as dependency.

43
44
45
 * Minor changes
   - Make DescriptorCollector resume previously aborted downloads.

46

Karsten Loesing's avatar
Karsten Loesing committed
47
# Changes in version 2.4.0 - 2018-05-23
Karsten Loesing's avatar
Karsten Loesing committed
48
49
50
51
52
53
54

 * Medium changes
   - Replace Gson with Jackson. Applications must provide Jackson
     2.8.6 or compatible as dependency and do not need to provide Gson
     as dependency anymore.


Karsten Loesing's avatar
Karsten Loesing committed
55
# Changes in version 2.3.0 - 2018-04-18
56

57
58
59
60
 * Medium changes
   - Replace ServerDescriptor#getHiddenServiceDirVersions with
     ServerDescriptor#isHiddenServiceDir, because Tor has never
     supported versions in the hidden-service-dir descriptor line.
61
62
63
   - Add support for reading web server logs contained in tarballs by
     providing file names of both the tarball and of contained files
     to WebServerAccessLog.
64
65

 * Minor changes
66
67
   - Override logLines() method from LogDescriptor in
     WebServerAccessLog.
68
69
   - Use 1-minute connect and read timeouts for fetching CollecTor's
     index.json.
70
71


72
# Changes in version 2.2.0 - 2018-02-26
73
74
75
76
77

 * Major changes
   - Add new descriptor type WebServerAccessLog to parse web server
     access logs.

78
79
80
 * Minor changes
   - Add log message reporting progress reading tarballs.

81

Karsten Loesing's avatar
Karsten Loesing committed
82
# Changes in version 2.1.1 - 2017-10-09
83

Karsten Loesing's avatar
Karsten Loesing committed
84
 * Minor changes
85
86
87
88
   - Add new optional "build_revision" field to index.json with the
     Git revision supplied by the calling software.


Karsten Loesing's avatar
Karsten Loesing committed
89
# Changes in version 2.1.0 - 2017-09-15
90
91
92
93
94

 * Major changes
   - Update dependencies to versions available in Debian stretch:
     Apache Commons Compress 1.13, Apache Commons Lang 3.5, Google
     Gson 2.4, JUnit 4.12, Logback 1.1.9, SLF4J 1.7.22, and XZ 1.6.
Karsten Loesing's avatar
Karsten Loesing committed
95
   - Update to Java 8.
96

97
98
99
 * Minor changes
   - Retain trailing newline in Torperf results.

100

Karsten Loesing's avatar
Karsten Loesing committed
101
# Changes in version 2.0.0 - 2017-06-28
102

Karsten Loesing's avatar
Karsten Loesing committed
103
104
105
 * Major changes
   - Always use UTF-8 as charset rather than using the platform's
     default charset.
Karsten Loesing's avatar
Karsten Loesing committed
106
   - Remove all code that was deprecated in 1.x versions.
Karsten Loesing's avatar
Karsten Loesing committed
107
108
109
   - Remove previously non-deprecated but internally unused
     parseDescriptors(byte[], String)) method that returned a List and
     threw DescriptorParseException.
Karsten Loesing's avatar
Karsten Loesing committed
110

111
112
113
 * Minor changes
   - Replace custom ImplementationNotAccessibleException thrown by
     DescriptorSourceFactory with generic RuntimeException.
iwakeh's avatar
iwakeh committed
114
   - Rename jar files and release tarball to start with "metrics-lib".
115
116


Karsten Loesing's avatar
Karsten Loesing committed
117
# Changes in version 1.9.0 - 2017-06-21
118

119
120
121
122
123
124
125
126
127
128
129
130
 * Major changes
   - Simplify DescriptorReader by returning Descriptor instances
     rather than DescriptorFile instances containing Descriptors,
     deprecate DescriptorFile, and add a File reference to Descriptor.
   - Introduce a new UnparseableDescriptor to be returned by
     DescriptorParser and DescriptorReader if a descriptor cannot be
     parsed, as opposed to throwing a DescriptorParseException or
     skipping the entire descriptor file, respectively.

 * Medium changes
   - Let DescriptorParser return an Iterable instead of a List, which
     prepares parsing large descriptor files descriptor by descriptor.
131
132
133
   - Add new method to retrieve the raw descriptor length, rather than
     forcing applications to request (a copy of) raw descriptor bytes
     only to determine the raw descriptor length.
134

135
136
137
138
139
140
 * Minor changes
   - Fix a bug where NetworkStatusEntry's getMicrodescriptorDigests()
     and getMicrodescriptorDigestsSha256Base64() return hex strings
     rather than base64 strings.


141
142
143
144
145
146
# Changes in version 1.8.2 - 2017-06-16

 * Medium changes
   - Fix a regression where any DescriptorParseException thrown while
     parsing a descriptor is encapsulated and rethrown as
     RuntimeException.
Karsten Loesing's avatar
Karsten Loesing committed
147
148


Karsten Loesing's avatar
Karsten Loesing committed
149
150
151
152
153
# Changes in version 1.8.1 - 2017-06-08

 * Medium changes
   - Fix a regression in parsing microdescriptors and version 1
     directories introduced in 1.8.0.
Karsten Loesing's avatar
Karsten Loesing committed
154
155


Karsten Loesing's avatar
Karsten Loesing committed
156
# Changes in version 1.8.0 - 2017-06-07
157

158
159
160
161
162
 * Medium changes
   - Store raw descriptor contents as offset and length into a
     referenced byte[], rather than copying contents into a separate
     byte[] per descriptor.

163
164
165
166
 * Minor changes
   - Turn keyword strings into enums and use the appropriate enum sets
     and maps to avoid repeating string literals and to use more speedy
     collection types.
167
   - Simplify and avoid repetition in parse helper methods.
168
169
   - Fix a bug where Microdescriptor's getDigestSha256Base64() returns
     a hex string rather than a base64 string.
170
   - Move descriptor digest computation to DescriptorImpl.
171
172
   - Fix a bug in digest computation by making sure that the
     descriptor string actually contains the end token.
173
174
175
176
   - Fix a bug where both RelayDirectoryImpl and all NetworkStatusImpl
     subclasses fail to get indexes right if parts of raw descriptor
     strings contain non-ASCII chars.  In practice, this only affects
     version 1 directories which were last archived in 2007.
177
178


Karsten Loesing's avatar
Karsten Loesing committed
179
# Changes in version 1.7.0 - 2017-05-17
180

Karsten Loesing's avatar
Karsten Loesing committed
181
 * Medium changes
182
183
   - Fix a bug where unrecognized lines in extra-info descriptors
     below crypto blocks were silently skipped.
184
   - Add support for six new key-value pairs added by OnionPerf.
185
186
   - Fix a bug where DescriptorIndexCollector would not delete
     extraneous local files if remote paths start with /.
187
   - Add previously missing method to obtain the digest of a vote.
Karsten Loesing's avatar
Karsten Loesing committed
188
   - Deprecate setFailUnrecognizedDescriptorLines() in
189
190
191
     DescriptorParser and DescriptorReader and refer to
     getUnrecognizedLines() in Descriptor if applications really need
     to fail descriptors containing unrecognized lines.
192
   - Parse "padding-counts" lines in extra-info descriptors.
193

194
195
196
 * Minor changes
   - Accept extra arguments in statistics-related extra-info
     descriptor lines, as permitted by dir-spec.txt.
197
   - Streamline digest method names.
198

199

Karsten Loesing's avatar
Karsten Loesing committed
200
# Changes in version 1.6.0 - 2017-02-17
201

202
203
204
205
 * Major changes
   - Deprecate DescriptorDownloader in favor of the much more widely
     used DescriptorCollector.

206
207
208
209
 * Medium changes
   - Add two methods for loading and saving a parse history file in
     the descriptor reader to avoid situations where applications fail
     after all descriptors are read but before they are all processed.
iwakeh's avatar
iwakeh committed
210
211
212
   - Unify the build process by adding git-submodule metrics-base in
     src/build and removing all centralized parts of the build
     process.
213
214
   - Avoid deleting extraneous local descriptor files when collecting
     descriptors from CollecTor.
215
216
217
218
   - Turn the descriptor reader thread into a daemon thread, so that
     the application can decide at any time to stop consuming
     descriptors without having to worry about the reader thread not
     being done.
219
220
221
   - Parse "proto" lines in server descriptors, "pr" lines in status
     entries, and "(recommended|required)-(client|relay)-protocols"
     lines in consensuses and votes.
222
   - Parse "shared-rand-.*" lines in consensuses and votes.
223
224
   - Deprecate DescriptorCollectorImpl now that
     DescriptorIndexCollector is the default.
225
226


Karsten Loesing's avatar
Karsten Loesing committed
227
# Changes in version 1.5.0 - 2016-10-19
228

229
230
231
232
233
234
 * Major changes
   - Make the DescriptorCollector implementation that uses CollecTor's
     index.json file to determine which descriptor files to fetch the
     new default.  Applications must provide gson-2.2.4.jar or higher
     as dependency.

235
236
237
238
 * Minor changes
   - Avoid running into an IOException and logging a warning for it.


Karsten Loesing's avatar
Karsten Loesing committed
239
# Changes in version 1.4.0 - 2016-08-31
240

241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
 * Major changes
   - Add the Simple Logging Facade for Java (slf4j) for logging
     support rather than printing warnings to stderr.  Applications
     must provide slf4j-api-1.7.7.jar or higher as dependency and can
     optionally provide a compatible logging framework of their choice
     (java.util.logging, logback, log4j).

 * Medium changes
   - Add an alpha version of a DescriptorCollector implementation that
     is not enabled by default and that uses CollecTor's index.json
     file to determine which descriptor files to fetch.  Applications
     can enable this implementation by providing gson-2.2.4.jar or
     higher as dependency and setting property descriptor.collector to
     org.torproject.descriptor.index.DescriptorIndexCollector.

256
 * Minor changes
257
258
   - Include resource files in src/*/resources/ in the release
     tarball.
259
   - Move executable, source, and javadoc jar to generated/dist/.
260
261


262
263
264
265
266
267
268
# Changes in version 1.3.1 - 2016-08-01

 * Medium changes
   - Adapt to CollecTor's new date format to make DescriptorCollector
     work again.


Karsten Loesing's avatar
Karsten Loesing committed
269
# Changes in version 1.3.0 - 2016-07-06
270
271
272

 * Medium changes
   - Parse "package" lines in consensuses and votes.
273
274
275
276
277
278
279
280
   - Support more than one "directory-signature" line in a vote, which
     may become relevant when authorities start signing votes using
     more than one algorithm.
   - Provide directory signatures in consensuses and votes in a list
     rather than a map to support multiple signatures made using the
     same identity key digest but different algorithms.
   - Be more lenient about digest lengths in directory signatures
     which may be longer or shorter than 20 bytes.
281
   - Parse "tunnelled-dir-server" lines in server descriptors.
282

283
284
285
286
 * Minor changes
   - Stop reporting "-----END .*-----" lines in v2 network statuses as
     unrecognized.

287

Karsten Loesing's avatar
Karsten Loesing committed
288
# Changes in version 1.2.0 - 2016-05-31
289
290
291
292

 * Medium changes
   - Include the hostname in directory source entries of consensuses
     and votes.
293
   - Also accept \r\n as newline in Torperf results files.
294
295
   - Make unrecognized keys of Torperf results available together with
     the corresponding values, rather than just the whole line.
296
297
   - In Torperf results, recognize all percentiles of expected bytes
     read for 0 <= x <= 100 rather than just x = { 10, 20, ..., 90 }.
298
299
   - Rename properties for overriding default descriptor source
     implementation classes.
300
   - Actually return the signing key digest in network status votes.
301
   - Parse crypto parts in network status votes.
302
303
   - Document all public parts in org.torproject.descriptor and add
     an Ant target to generate Javadocs.
304

305
306
307
 * Minor changes
   - Include a Torperf results line with more than one unrecognized
     key only once in the unrecognized lines.
308
309
   - Make "consensus-methods" line optional in network statuses votes,
     which would mean that only method 1 is supported.
310
311
   - Stop reporting "-----END .*-----" lines in directory key
     certificates as unrecognized.
Karsten Loesing's avatar
Karsten Loesing committed
312
   - Add code used for benchmarking.
313

314

Karsten Loesing's avatar
Karsten Loesing committed
315
# Changes in version 1.1.0 - 2015-12-28
316
317

 * Medium changes
318
319
320
321
322
323
   - Parse flag thresholds in bridge network statuses, and parse the
     "ignoring-advertised-bws" flag threshold in relay network status
     votes.
   - Support parsing of .xz-compressed tarballs using Apache Commons
     Compress and XZ for Java.  Applications only need to add XZ for
     Java as dependency if they want to parse .xz-compressed tarballs.
iwakeh's avatar
iwakeh committed
324
325
326
327
328
   - Introduce a new ExitList.Entry type for exit list entries instead
     of the ExitListEntry type which is now deprecated.  The main
     difference between the two is that ExitList.Entry can hold more
     than one exit address and scan time which were previously parsed
     as multiple ExitListEntry instances.
329
330
331
332
333
334
   - Introduce four new types to distinguish between relay and bridge
     descriptors: RelayServerDescriptor, RelayExtraInfoDescriptor,
     BridgeServerDescriptor, and BridgeExtraInfoDescriptor.  The
     existing types, ServerDescriptor and ExtraInfoDescriptor, are
     still usable and will not be deprecated, because applications may
     not care whether a relay or a bridge published a descriptor.
335
336
337
338
339
   - Support Ed25519 certificates, Ed25519 master keys, SHA-256
     digests, and Ed25519 signatures thereof in server descriptors and
     extra-info descriptors, and support Ed25519 master keys in votes.
   - Include RSA-1024 signatures of SHA-1 digests of extra-info
     descriptors, which were parsed and discarded before.
340
   - Support hidden-service statistics in extra-info descriptors.
341
342
   - Support onion-key and ntor-onion-key cross certificates in server
     descriptors.
343

344
345
346
347
 * Minor changes
   - Start using Java 7 features like the diamond operator and switch
     on String, and use StringBuilder correctly in many places.

348

Karsten Loesing's avatar
Karsten Loesing committed
349
# Changes in version 1.0.0 - 2015-12-05
Karsten Loesing's avatar
Karsten Loesing committed
350
351

 * Major changes
352
353
   - This is the initial release after four years of development.
     Happy 4th birthday!
Karsten Loesing's avatar
Karsten Loesing committed
354