Better addinfo when error 26 occurs.
[simpleserver-moved-to-github.git] / Changes
1 $Id: Changes,v 1.44 2007-09-01 09:31:51 mike Exp $
2
3 Revision history for Perl extension Net::Z3950::SimpleServer
4
5 1.07  Sat Sep  1 10:31:26 BST 2007
6         - When the scan-handler callback returns, do not attempt to
7           copy the terms from Perl structures if the error-code is
8           non-zero (i.e. if an error has occurred).  This protects
9           against a segmentation fault when the Perl callback does not
10           explicitly set $args->{NUMBER} = 0 on error.
11         - Correct transcription of string-valued attributes in
12           $args->{RPN}.
13         - Scan handler is now passed RPN as well as TERM, a tree of
14           Perl structures representing the entire scan clause
15           including access-points and other attributes (which are
16           discarded from TERM).
17         - The various classes used to represent nodes in the RPN query
18           tree (Net::Z3950::APDU::Query, Net::Z3950::RPN::And,
19           Net::Z3950::RPN::Or, Net::Z3950::RPN::AndNot,
20           Net::Z3950::RPN::Term and Net::Z3950::RPN::RSID) now all
21           share a newly introduced superclass Net::Z3950::RPN::Node,
22           making it possible to write methods that apply to all node
23           types.
24         - A utility method toPQF() is provided for
25           Net::Z3950::RPN::Node, enabling the RPN tree to be converted
26           back into a flat PQF query.
27         - Add support for the Delete Result Set service.
28         - Add documentation for the Sort service.
29         - Some clarifications to documentation.
30
31 1.06  Fri Aug 10 23:30:00 BST 2007
32         - New global-handle element can be specified when creating a
33           simple-server object and will be passed to all callback
34           functions.  This allows global state to be eliminated from
35           SimpleServer applications ... finally!
36         - Search handler now deals correctly with undefined addinfo:
37           previously a (harmless) error message was emitted.
38         - Add Perl API to yaz_diag_srw_to_bib1(), which SimpleServer
39           applications will need if they access SRU/SRW back-end
40           databases and need to report errors.
41         - Add Perl API to yaz_diag_bib1_to_srw(), because it would
42           seem churlish not to.
43
44 1.05  Wed Dec 27 13:19:13 CET 2006
45         - Taking new naming convention for YAZ constants into account.
46
47 1.04  Fri Dec  1 10:48:32 CET 2006
48         - Build such that SimpleServer links to new yaz shared object.
49
50 1.03  Tue Aug  8 17:27:16 BST 2006
51         - Rely on version 2.1.14 or later of YAZ; this is the first
52           version that reliably passes through the additional
53           information associated with errors generated while serving
54           SRU/W requests.  No functional differences since 1.02.
55
56 1.02  Wed Jul 26 12:09:50 BST 2006
57         - Better support for Open and User/Password authentication.
58         - SimpleServer.xs's rpn2pquery() is now discarded, and YAZ's
59           yaz_rpnquery_to_wrbuf() used instead.  This is more robust
60           in dealing with unusual cases such as string-valued
61           attributes.
62         - Support for SCHEMA element when fetching records.
63
64 1.01  Fri Mar 24 12:09:32 GMT 2006
65         - Documentation of release 1.00's SRU/SRW facilities.
66         - Makefile.PL now fails if YAZ version is earlier than 2.0.0,
67           which was the first with SRU/SRW support.
68
69 1.00  Fri Mar 24 01:20:24 GMT 2006
70         - Support for SRU and SRW.  Mostly this is provided by the YAZ
71           GFS, but changes are needed to allow for the case where
72           there is no RPN query (due to absent on invalid <cql2rpn>
73           element in GFS configuration) so that CQL is passed through
74           natively; and also to fake up an {REQ_FORM} and {REP_FORM}
75           parameters set to the "text/xml" OID when this information
76           is not specified by the GFS.
77           (The jump in version number is due to the SRU/W support.)
78         - Include "logging-server.pl" in the distribution: the
79           simplest possible SimpleServer application, which merely
80           logs the client-request data structures.
81         - Makefile.PL is more helpful if yaz-config isn't found.
82         - Explicitly disable prototypes in SimpleServer.xs: makes no
83           difference but suppresses an error message for a cleaner
84           build.
85
86 0.08  Mon Jun 14 14:51:01 2004
87         - SimpleServer is now perl 5.8 thread proof 
88         - Support for IMP_ID parameter in Init responses.  This was
89           actually written a long time ago, but left commented out as
90           the underlying YAZ back-end server didn't support
91           implementation-ID setting.  Now that it does (and has done
92           for eighteen months -- since YAZ release 1.8.6 of
93           2002/03/25!), I've finally removed the comments.
94         - Init handler now understands the setting of {ERR_CODE} as
95           more than a boolean success indicator, and also {ERR_STR}.
96           They are now passed back to the client (thanks to recent
97           changes to the YAZ generic front-end server) in accordance
98           with Z39.50 Implementor Agreement 5, found at
99                 http://lcweb.loc.gov/z3950/agency/agree/initdiag.html
100
101 0.07  Fri Jan 03 10:12:15 2003
102         - Applied Dave Mitchell's (davem@fdgroup.com) GRS-1 parsing patch.
103           Thanks Dave, and sorry it didn't find its way to release 0.06,
104           completely my fault.
105
106 0.06  Thu Jan 02 11:15:01 2003
107         - Added support for authentication
108         - Add documentation for the object tree passed as the RPN
109           member of the search-handler's argument hash.
110         - We actually removed the vacuous Changelog and TODO files
111           back in 0.05.  They should never have been here :-)
112
113 0.05  Tue Feb 05 21:54:30 2002
114         - Add brief documentation of the new handling
115           of RPN.
116
117 0.04  Tue Feb 05 21:49:56 2002
118         - Add Changelog (Why?  We already have this file!)
119         - Add TODO file (although it's empty!)
120         - Change interface to constructor, and fix test.pl script to
121           use the new interface.
122         - Add support for Scan.
123         - Add support for building GRS-1 records.
124         - Add grs_test.pl test suite for new GRS-1 code.
125         - Add RPN structure to search-handler argument hash.
126         - Add PID element to init, search, fetch and present-handler
127           argument hashes (but not the sort, scan and close-handlers,
128           for some reason.)
129         - Fix typos in documentation.
130
131 0.03  Thu Nov 09 16:22:00 2000
132         - Add the INSTALL file.
133         - Add support for a present-handler (distinct from fetch).
134         - Remove `$args->{LEN} = length($record)' from the example
135           fetch-handler in the documentation.
136         - Minor corrections to documentation, e.g. add commas after
137           elements in anonymous hash of arguments.
138         - Record syntaxes (formats) are now specified as ASCII OIDs
139           (e.g. "1.2.840.10003.5.10") rather than human-readable
140           strings (e.g. "usmarc")
141         - Add some XS code to support sorting, though it doesn't seem
142           to be finished yet, and is not wired out.
143         - Use symbolic constants (e.g. Z_ElementSetNames_generic
144           instead of hard-wired magic number 1).
145         - Add PEER_NAME element to init-handler argument hash.
146         - Minor changes to ztest.pl.
147
148 0.02  Mon Sep 11 12:32:00 2000
149         - First released versions
150
151 0.01  Wed Aug 30 14:54:01 2000
152         - original version; created by h2xs 1.19
153