fd9deb292ccd53dbc0b3b535a19952f3c0043890
[yaz-moved-to-github.git] / CHANGELOG
1 Possible compatibility problems with earlier versions marked with '*'.
2
3 On UNIX, the generated makefile now supports a proper 'make install'.
4 The prefix can be set via GNU configure to set the install location
5 (default is /usr/local).
6
7 * YAZ programs client and ztest were renamed to yaz-client and
8 yaz-ztest to avoid conflicts when users install YAZ in "standard"
9 locations, such as /usr/bin,/usr/local/bin,etc.
10
11 * YAZ Header files were moved from include to include/yaz. YAZ Header
12 files are referred to as include <yaz/log.h> rather than <log.h>.
13 The YAZ include path (-I ..) is therefore the same as before. Programmers
14 should update their #include statements or use -Ipath/include/yaz
15 instead. The main motivation for doing this change is that YAZ header files
16 can be installed in "standard" locations /usr/include,/usr/local/include 
17 without introducing conflicts, since ALL YAZ header files are stored
18 in subdirectory yaz (under /usr/include for example).
19
20 Compilation of YAZ for WIN32 is now handled by an nmake-style makefile 
21 rather than project/workspace files. We switched because project files
22 are incompatible between Visual C++ 5 and 6. Refer to windows.txt for
23 details.
24
25 Changed name of logging function, logf, to yaz_log, to prevent name
26 clash with some math-log functions. The YAZ header log.h defines logf
27 to yaz_log so there should be no incompatibilities by this modification.
28
29 Added bend_start/bend_stop handlers for server. These handler are
30 called on start/stop of server. For windows they are called whenever
31 a service is started/stopped.
32
33 Assigned OID for old DB Update (VAL_DBUPDATE0). Updated YAZ compiled
34 version so that it supports both new - and old version of DB Update
35
36 * Added 'name' parameter to ODR encoder/decoder routines to facilitate
37 pretty ODR print. Updated whole Z39.50 encoder/decoder to reflect the
38 change. The name parameter can be set to 0 in which no name is specified
39 for the construction. The macros odr_implicit and odr_explicit sets name
40 parameter to zero for the construction involved. New macros
41 odr_implicit_tag and odr_explicit_tag are similar to the others,
42 except that a name parameter is added. For programmers' that don't use
43 ODR they probably only need to change the call to z_APDU and z_External.
44
45 Added access control facility by interfacing the TCP wrapper library.
46 YAZ automatically attempts to find the TCP wrapper Library (-lwrap) and
47 tcpd.h on Unix systems. For the server, option -d<daemon> specifies the
48 name of the daemon and enables the access control as specified in
49 hosts.allow/hosts.deny. Refer to man pages tcpd(8) and hosts_access(5).
50
51 Fixed memory leak in ccl_find_str and ccl_qual_rm. Thanks to Hans van
52 den Dool <H.M.vdnDool@kub.nl>.
53
54 Added reference ID parameter to most functions in server API - refer
55 to backend.h. Thanks to Hans van den Dool <H.M.vdnDool@kub.nl>.
56
57 Changed name of ccl library to libccl.a (was ccl.a).
58
59 Fixed bug in decoder for Explain (Category TargetInfo).
60
61 Added support for GNU readline in client. Thanks to Jacob Poulsen
62 <ja7@dbc.dk>. GNU configure attempts to detect if readline is available.
63
64 * CHANGED DEFINITION OF ES: UPDATE (INCLUDING THE OID) to reflect the
65 new definition from the ZIG. NOTE THIS IF YOU HAVE AN UPDATE
66 IMPLEMENTATION! This change was made to the development version before
67 the ZIG decided to retract the amendment. If any users MUST be
68 compatible with the original Update definition, PLEASE CONTACT US, and
69 we will include a separate definition corresponding to the old Update
70 ES. Note that because of the change to the ASN.1 of the
71 TaskPackageRecordStructure we cannot define a single structure that
72 will support both versions.
73
74 * Added const modifier to buffer parameter for some ODR/BER encoding
75 routines: ber_dectag, ber_declen, odp_more_chunks, completeBER,
76 completeWAIS, odr_dumpBER.
77
78 Fixed bug in client.c which caused a crash when a scanResponse didn't
79 contain positionOfTerm.
80
81 * Fixed inconsistency in the ScanResponse/ListEntries protocol. This
82 * will cause an error in a client if a non-YAZ target sends both a
83 * list of Scan entries and non-surrogate diagnostics.
84
85 Retrieval module enhancements. Tag sets may be typed in the reference
86 to it. From the .abs-file the "tagset" directive takes a third optional
87 integer type for the tag set referenced. From a .tag-file the "include"
88 directive takes a third optional type as well. The old "type" directive
89 in the tag set itself is still recognized but acts as the default type
90 for the tag set.
91
92 Backend interface change. Individual Scan terms returned from bend_scan
93 may also be tagged as Surrogate Diagnostics. Refer to struct scan_entry
94 in include/backend.h.
95
96 Retrieval module enhancements. Multiple tag sets and attribute sets may
97 be specified in abstract syntax specs. Revised the error/warning for
98 logging messages reported by the retrieval module when reading the
99 various spec files.
100
101 Object Identifier system (oid_..) changed. The API is backwards
102 compatible but the oid-routines now allocates new OID's when needed.
103 Raw OID's may be specified in oid_getvalbyname.
104
105 YAZ now uses GNU configure to generate Makefile(s).
106
107 * Minor changes in some of the member names of DeleteResultSetRequest and
108 DeleteResultSetResponse. See include/proto.h.
109
110 * Changed some C definitions regarding EXPLAIN record syntax (prt-exp.h)
111 and added member 'languages' in TargetInfo (which was missing).
112
113 Changed the way attribute sets are handled in the retrieval
114 module. These are now cached, just like the abstract syntaxes
115 (schemas).
116
117 Changed YAZ so that it links with compiled ASN.1.
118
119 Added Explain-schema definitions and mapping routines. The following
120 Explain categories have been implemented: AttributeDetails,
121 AttributeSetInfo, DatabaseInfo, CategoryList and TargetInfo.
122
123 Fixed minor bug in Windows version of Server Library.
124
125 --- 1.4pl2+ 1998/4/17 (Released with Zebra)
126
127 Added Extended Services to server (backend.h). Thanks to Charles Woodfield.
128
129 Added EXTERNAL: UNIverse Resource Report (non-standard).
130
131 Implemened odr_enum and odr_set_of functions to handle ASN.1 types
132 ENUMERATED and SET OF.
133
134 * Added 'const' to some of the char pointer arguments for the
135 functions, data1_read_node, data1_getelementbytagname,
136 data1_insert_taggeddata, data1_getesetbyname, data1_getelementbyname,
137 data1_get_absyn.
138
139 Fixed bug in data1_insert_taggeddata - the last_child member of
140 parent wasn't initialised.
141
142 * Changed data1_read_record and data1_read_node so that the supplied
143 "SGML"-buffer is read-only. In particular the resulting data1 - tree
144 doesn't refer to any parts of the "SGML"-buffer.
145
146 Fixed bug in server library (Windows version of statserv_remove).
147
148 * Changed code so that it compiles as C++. The type definition
149 of Odr_fun which is a member of Odr_arm was changed. The result is,
150 that an explicit typecast is needed for the fun pointer when
151 using Odr_arm - as in:
152     {1, -1, -1, Z_IdAuthentication_idPass, (Odr_fun)z_IdPass},
153
154 Updated TagSet-G and -M definitions (tagsetm.tag and tagsetg.tag).
155
156 Implemented the new structured date and time definition as approved
157 by the ZIG. Added schemaId element to the specificTag in Espec-1
158 (also approved at the last ZIG). Thanks to RVDM.
159
160 Added some Object identifiers (RVDM).
161
162 Changed the Update Extended Service (RVDM).
163
164 Added command "refid" to client which specifies referenceId for
165 the following requests.
166
167 Implemented extended service handling for server. See ztest.c
168 for an example as well as backend.h. New handlers are registerd
169 in the Init handler.
170
171 * Changed interface for sort in server.
172
173 Added new members to statserv_options_block. It allows a server
174 to read options from another source than just the command line. Thanks
175 to Charles Woodfield.
176
177 * Changed definition of Z_Triple in file prt-grs.h - member boolean
178 renamed to zboolean. Some C++ compilers complained about the name.
179
180 Minor changes to gils.abs. Added index 's' (sort) on title
181 and date/time-last-modified.
182
183 --- 1.4pl2 1998/1/30
184
185 Fixed bug in server library regarding inetd mode (-i). This bug
186 was introduced by release 1.4.
187
188 --- 1.4pl1 1998/1/29
189
190 Added sort facility in client and backend server interface.
191
192 Fixed problem with dependencies in Makefile(s).
193
194 Fixed bugs for encoders/decoders of extended services and 
195 SearchInfoReport.
196
197 Implemented sub-tree feature for schemas. Sub-trees are
198 referenced in *.abs-files. See explain.abs for an example
199 of the use of this feature.
200
201 Modified bib1.att; local attributes for ANY didn't include
202 ANY itself (only affects use of the retrieval module).
203
204 Fixed bug in plain SGML reader in function data1_read_node:
205 tags with prefix "var" was incorrectly interpreted as variants.
206
207 Added feature "sub-schemas" to enable references to - and definitions
208 of - group of elements.
209
210 * Removed member parent from type data1_element (in data1.h).
211
212 Implemented function odr_nullval() that returns the value of
213 ODR_NULLVAL.
214
215 * Removed member num_children from data1_node (in data1.h).
216
217 Made NT service interface part of the server library. The
218 function statserv_main uses the NT service when required and
219 calls the statserv_start / statserv_close routines.
220
221 Routine zget_SearchRequest and zget_PresentRequest fills
222 resultSetName/Id member with "default" instead of "Default".
223
224 Fixed memory leak in server. Request queue member wasn't freed.
225
226 Fixed nmem_exit so that memory is freed.
227
228 --- 1.4 1997/10/2
229
230 Revised the CCL parser utility to be thread safe.
231
232 Added function, oid_ent_to_oid, to replace the function 
233 oid_getoidbyent, which is not thread safe.
234
235 * Added nmem_init and nmem_exit to initialize and release
236 NMEM resources. Function nmem_init should be called once in the
237 initial thread before NMEM/ODR is used. statserv.c and client.c
238 have been changed accordingly. The change was necessary to make
239 NMEM thread safe. The NMEM memory pool is shared amongst threads
240 in a process. Unix-based applications will still work fine without
241 calling this.
242
243 Added NT Services interface for the the Z39.50 (statserv) Server. 
244 Refer to the ztest.c source on the usage.
245
246 Windows 95/NT port using MSVC5.0. Project files are included in the
247 distribution.
248
249 * Defined new 'global' handle for the retrieval (data1) system. The
250 new handled, data1_handle, describes the state of the data1 system.
251 This handle is passed as first argument to virtually all
252 data1 related routines. The functions data1_create and data1_destroy
253 creates and destroys a data1 handle respectively.
254
255 Added ODR encode stream member to all backend request structures
256 init, search, scan etc. This stream should be used to allocate all
257 memory used for the response when thread safe operation is needed.
258
259 Changed the comstack utility, cs_addstr, to be thread safe. The
260 returned hostname string returned by the function is now part the
261 COMSTACK instance.
262
263 Added comstack utility, cs_straddr, which replaces the tcpip_strtoaddr
264 function. The cs_straddr takes a COMSTACK handle as argument, so this
265 function must be used after cs_create and before bind/connect.
266 This function is thread safe.
267
268 Moved test server to 'ztest' directory - generic server code still
269 in 'server' directory.
270
271 Made prefix query (pquery.c) utility thread safe.
272
273 Added new function modifier YAZ_EXPORT to 'export' public DLL
274 functions when using windows (see include/yconfig.h).
275
276 Added definitions to the OID database (util/oid.c) (RVDM).
277
278 Added new BIB-1 diagnostic messages to the handler diagbib1_str.
279
280 Added call to ccl_rpn_delete in client program.
281
282 Added ODR argument to ccl_rpn_query and ccl_scan_query to provide
283 release of RPN structure.
284
285 Added support for C++, headers uses extern "C" for public definitions.
286 With input from RVDM.
287
288 In handling of SEQUENCE OF: Counter set to zero when SEQUENCE OF is absent.
289 Thanks to Ronald van der Meer (RVDM).
290
291 Added initializers (zget_ routines) for a number of PDUs. Thanks to RVDM.
292
293 Added support for private extensions to the OID database
294 (oid_setprivateoids()). Thanks to RVDM.
295     
296 Added optional, physical ANY (key replication)
297
298 Fixed null-reference problem in GRS-1 output filter.
299
300 Proximity operator added to Prefix Query Format (PQF).
301
302 In test client command "base" accepts multiple databases.
303
304 Fixed bug in cs_close stack that caused trouble with WINSOCK.
305
306 --- 1.3 1996/10/11
307
308 Fixed tagging bug in ResourceReportResponse PDU encoder/decode.
309
310 Smallish bug-fixes in the new encoders/decoders (explain).
311
312 Bug fixed in DeleteRequest.
313
314 Fixed tagging bug of type 101 query in SearchRequest-Query PDU encoder/decoder.
315
316 Fixed tagging bug in ResourceReportResponse PDU encoder/decode.
317
318 Added SOIF syntax (using private OID for now) to retrieval module and client.
319
320 Added Update extended service.
321
322 Added SearchResult-1 additional info structure.
323
324 Added optional CCL (ISO8777) interpreter as separate module. Available
325 in linemode client.
326
327 --- 1.2 1996/6/10 (1st anniversary release)
328
329 Added Summary record syntax. Lightly tested.
330
331 Added OPAC record syntax. Untested.
332
333 Added ResourceReport service encoders/decoders. Untested.
334
335 Fixed bug in z_Unit - wrong tagging on unitSystem.
336
337 Fixed bug in the DiagRecs decoder.
338
339 Added options for max PDU size and session timeout to frontend-server.
340
341 Added documentation of query-language parsers and other supporting utilities.
342
343 [frontend-server] Added Attribute set to the bend_scanrequest API.
344
345 [frontend-server] NextResultSetPosition was sometimes set incorrectly when
346 surrogate diagnostics were generated.
347
348 [retrieval] Allow multiple local values for attribute.
349
350 [retrieval] Allow multiple attributes per element in .abs files. index type.
351
352 [retrieval] Added Summary tagset, abstract syntax, and d1-node/ASN filter.
353
354 --- 1.1pl2  1996/4/10
355
356 Minor changes, mostly specific to Zebra's requirements (retrieval)
357
358 --- 1.1  1996/2/20
359
360 Repaired bug in frontend server when running multiple listening
361 endpoints in dynamic mode.
362
363 z_External() now won't break if a known, ASN.1 value comes encapsulated
364 in an octet-string. The value will pass through unmodified in an Odr_oct.
365
366 Added a bit of code to the demo client to decode & display
367 ASN.1-structured records represented in the octet-aligned branch of
368 the EXTERNAL CHOICE. Thanks to CAS for prodding us to finally do this.
369
370 Added z_ext_getentbyref() to the ASN module. Doc updated.
371
372 * Completed the SCAN definition in the ASN module. This may break SCAN
373 code based on older YAZ-versions at compile-time. The fix is easy -
374 look in proto.h.
375
376 * Added 'displayTerm' and OtherInformation to the TermInfo structure
377 under the SCAN definition. Remember to initialize this, server-people.
378
379 Comstack should now support the WAIS protocol in TCP/IP mode. Note
380 that this does not extend to ODR and ASN.
381
382 Comstack allows insertion of established socket (primarily for
383 inetd-operation of servers). Doc updated.
384
385 Front-end server can now start from the inetd in TCP mode. Doc
386 updated.
387
388 --- 1.0pl4 1996/1/24
389
390 Added Sort PDU.
391
392 Fixed small problem in SUTRS-filter. A newline was sometimes inserted before
393 the rank and record number.
394
395 Adjustments to the frontend server.
396
397 Fixed diagnostic BER dumper. It ignored the file argument.
398
399 --- 1.0pl3 1996/1/2
400
401 Various changes to retrieval module.
402
403 Changed the union discriminators of the protocol files from enums to
404 ints paired with #defines.
405
406 *Changed oident.class to oident.oclass to avoid a reserved word in C++
407  compilers.
408
409 *Changed operator in the RPN structure to 'roperator', again to avoid a
410  conflict with C++.
411
412 Fixed problems in Explain decoders/encoders.
413
414 --- 1.0pl2 1995/12/6
415
416 Memory bug in log module fixed.
417
418 --- 1.0pl1 1995/12/5
419
420 Occasional malloc() of 0 bytes fixed in d1_espec.c.
421
422 Bug in Explain DatabaseInfo module fixed.
423
424 Some '\r' snuck into one or two of the ret'l config tables. A curse on Windows.
425
426 --- 1.0 1995/11/28
427
428 The shift to v1.0 signals that we now consider the *core* functionality
429 of YAZ reasonably stable (the core being more or less equivalent to
430 Z39.50-1992). Some of the really nifty v3 stuff is still not heavily
431 tested (Explain not at all - though that will happen soonish).
432
433 Minor changes to code to support Windows port.
434
435 Various minor changes after we're getting to use GRS-1 & co. more.
436
437 Added Espec-1 format.
438
439 Added VisibleString field body type to GRS-1. It is illegal acc. to my copy
440 of the protocol and it cannot be selected when encoding (maps into 'string'
441 when decoding). Needed to talk to some servers.
442
443 Demo client can request simple element set names.
444
445 Added Diagnostic Format encoders/decoders.
446
447 Added simple Close handling to frontend server (no hooks for resource
448 reporting yet), and demonstration client.
449
450 Added cs_addrstr() command to COMSTACK to retrieve peer hostname/address.
451
452 --- 1.0b3 1995/08/24
453
454 Fixed bug in the frontend-server. The numberOfRecordsReturned field was
455 handled incorrectly when records were requested in the searchResponse. This
456 will only affect you if you use the frontend-server.
457
458 Added GRS-1 encoders/decoders to the service-level API. Lightly tested.
459 Test-client will ask for and print GRS1. Ztest will return dummy records
460 on request.
461
462 Added Explain encoders/decoders to the service-level API. Untested.
463
464 Added Extended Services: Item Order encoders and decoders to the Service-
465 level API. Untested. We could use a recent copy of the pertinent bits
466 of the ILL protocol to add those bits.
467
468 Added diagnostic format 1 encoders/decoders to the service-level API.
469 Untested.
470
471 Moved pretty-printing of structure-wrappers ({..}) from odr_seq.c to
472 odr_cons.c, which causes a more correct output.
473
474 Fixed handling of searchRequest in frontend server. NextResultSetPosition
475 was always set to 0 when no records were requested in the searchRequest.
476
477 * Added better external-handling. This shouldn't harm old code that
478 *encodes* externals. It can break code that looks for a
479 'single-ASN1-type' representation, since those types that are known
480 are now decoded immediately. Look at the SUTRS sample code in
481 seshigh.c and client.c. Documentation updated.
482
483 Handling of structured records in bend_fetchresponse. Length -1 marks
484 structured record, type is deduced from format field.
485
486 --- 1.0b2 1995/06/27
487 Fairly quick maintenance release to add SUTRS support.
488
489 Fixed handling of SUTRS records in the demonstration client.
490
491 * Added format field to the bend_fetchrequest and bend_fetchresponce
492 structures of the backend API (frontend server). When the record is
493 returned, the value of the format field is mapped to an OID. The
494 value VAL_SUTRS will also cause a slightly different ASN.1 packaging
495 of the record. The special value VAL_NONE in the bend_request means
496 that no specific format was requested by the client. Documentation
497 updated accordingly. Test server (ztest) will return a fixed dummy
498 SUTRS record if your client requests SUTRS.
499
500 Documentation updated accordingly.
501
502 You can now set external libraries and RANLIB support in the top-level
503 Makefile.
504
505 --- 1.0b 1995/06/19
506 First public release.