1 ChangeLog for OpenSRF 2.1.0
2 ===========================
4 commit 79694c390e0350a199be409ceadb19945ddf2b5c
5 Author: Dan Scott <dan@coffeecode.net>
6 Date: Wed May 30 23:12:32 2012 -0400
8 No, Ubuntu Hardy is not well-tested for 2.1.0
10 One more reference to Ubuntu Hardy that we can remove from the
13 Signed-off-by: Dan Scott <dan@coffeecode.net>
17 commit 885a4d87cd06f31071ff9b2f728fd7aa1c83d7be
18 Author: Dan Scott <dan@coffeecode.net>
19 Date: Wed May 30 23:11:14 2012 -0400
21 Generate ChangeLog for 2.1.0 release
23 Signed-off-by: Dan Scott <dan@coffeecode.net>
27 commit 3eb7c54a734369a7bffc4a3c30bef2e65573be52
28 Author: Dan Scott <dan@coffeecode.net>
29 Date: Sun May 27 22:52:23 2012 -0400
33 A summary of some of the highlights of the new release, for
34 functionality that has been added and deleted. Does not address bug
35 fixes such as the much more robust Perl child handling; perhaps
36 we should focus on those as well?
38 Signed-off-by: Dan Scott <dan@coffeecode.net>
40 89 0 doc/RELEASE_NOTES.txt
41 create mode 100644 doc/RELEASE_NOTES.txt
43 commit cdd0816c624ff0843ee5ab201346521ae91f474a
44 Author: Dan Scott <dan@coffeecode.net>
45 Date: Wed May 30 22:33:17 2012 -0400
47 Bump version numbers to help with library compatibility
49 By bumping the OpenSRF version numbers for Perl libs, Python libraries,
50 and the libtool versioning for the libopensrf library, projects that
51 build on OpenSRF will be able to flag the minimum required version and
52 bail out early if an older version of OpenSRF has been installed.
54 Signed-off-by: Dan Scott <dan@coffeecode.net>
56 2 2 src/libopensrf/Makefile.am
57 1 1 src/perl/lib/OpenSRF.pm
58 1 1 src/python/setup.py
61 commit ee2c79929aa63ff8d6749da7d10c15ab967d9fd5
62 Author: Dan Scott <dscott@laurentian.ca>
63 Date: Tue May 22 16:45:33 2012 -0400
65 Add "tar" to base prereqs to appease autotools
67 On a minimal install of Fedora 17, I was running into the perplexing
68 error message whilst running 'autoreconf -i':
70 libtoolize: can not copy `/usr/share/libtool/config/ltmain.sh' to `./'
72 This was confusing because a manual copy would, in fact, copy the file
75 http://lists.gnu.org/archive/html/libtool/2009-07/msg00030.html finally
76 lead to enlightenment: autotools uses "tar" to copy files, not "cp".
77 Thus, to avoid similar head-scratching install problems in the future,
78 add "tar" to the base prerequisites for building OpenSRF (both to the
79 DEBs list and the RPMs list).
81 Signed-off-by: Dan Scott <dscott@laurentian.ca>
83 3 1 src/extras/Makefile.install
85 commit 788a396a2b380c5950c09368f85e8d4a79ec2ca8
86 Author: Dan Scott <dan@coffeecode.net>
87 Date: Tue May 22 02:26:04 2012 -0400
89 Update OS support in README / Makefile.install
91 Kick Debian Lenny, Ubuntu Hardy, and RHEL 5 / CentOS 5 to the curb.
93 Also change the name of the README to the more generic & instructive
94 "Installing OpenSRF" rather than "README for OpenSRF #.#.#".
96 Signed-off-by: Dan Scott <dan@coffeecode.net>
102 Signed-off-by: Dan Scott <dan@coffeecode.net>
105 3 243 src/extras/Makefile.install
107 commit 3dd57f268b8b5d39f85139e4c4e5246bd9e2cda5
108 Author: Thomas Berezansky <tsbere@mvlc.org>
109 Date: Wed May 23 10:13:41 2012 -0400
111 Nagios Example Plugin for monitoring services
113 Does not check that all drones in a brick are fully up, just that the
114 entire brick will respond to each service, even if only one drone happens
115 to be running the listener properly (and said listener is responding).
117 Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
118 Signed-off-by: Dan Scott <dan@coffeecode.net>
120 219 0 examples/nagios/check_osrf_services
121 create mode 100755 examples/nagios/check_osrf_services
123 commit e7431d6fa114c35d3dc5b430fbb4bdae99edaa88
124 Author: Bill Erickson <berick@esilibrary.com>
125 Date: Mon Apr 2 14:55:56 2012 -0400
127 Detect and repair multipart/mixed message delivery errors
129 For unknown reasons, the Content-Type header will occasionally be
130 included in the XHR.responseText for multipart/mixed messages. When
131 this happens, strip the header and newlines from the message body and
134 Signed-off-by: Bill Erickson <berick@esilibrary.com>
135 Signed-off-by: Dan Scott <dan@coffeecode.net>
137 33 1 src/javascript/opensrf.js
139 commit 832f166b38acc9c68c9c1fcea1432d2ca881316b
140 Author: Galen Charlton <gmc@esilibrary.com>
141 Date: Mon May 21 17:29:05 2012 -0400
143 fix up index/position type for calls of various osrfList* functions
145 osrfListSet, osrfListRemove, osrfListGetIndex, and osrfListExtract
146 all expect unsigned ints for the index/position parameter.
148 src/jserver is ignored by this commit as its removal is pending.
150 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
151 Signed-off-by: Dan Scott <dan@coffeecode.net>
153 1 1 src/gateway/osrf_http_translator.c
154 2 2 src/libopensrf/osrf_json_tools.c
155 1 1 src/libopensrf/osrf_list.c
156 1 1 src/libopensrf/string_array.c
157 1 1 src/router/osrf_router.c
159 commit bdc4cfe354051e4132d6ffa2da3e0942acb3f780
160 Author: Dan Scott <dan@coffeecode.net>
161 Date: Sat May 5 01:58:22 2012 -0400
163 Remove comparisons that can never evaluate to true
165 Using clang as the compiler results in 4 warnings like the following:
167 osrf_list.c:106:23: warning: comparison of unsigned expression < 0 is
168 always false [-Wtautological-compare]
169 if(!list || position < 0) return NULL;
172 (Explanation: "position" is an unsigned int; thus the comparison to < 0
173 can never evaluate to true).
175 Signed-off-by: Dan Scott <dan@coffeecode.net>
176 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
178 4 4 src/libopensrf/osrf_list.c
180 commit 3aabf1932f93bc6e1e6693001734a1f1bcdbdce0
181 Author: Dan Scott <dan@coffeecode.net>
182 Date: Sat May 5 01:32:25 2012 -0400
184 LP954059: Silence uninitialized var warning
186 Compiling osrf_utf8.c generates the following warning:
188 osrf_utf8.c:510:29: warning: utf8_char may be used uninitialized in this
189 function [-Wuninitialized]
191 So... initialize utf8_char when we declare it, and make the compiler
194 Signed-off-by: Dan Scott <dan@coffeecode.net>
195 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
197 1 1 src/libopensrf/osrf_utf8.c
199 commit 4fe1fdc7d4561e04212444786fd61d95eae69eb0
200 Author: Galen Charlton <gmc@esilibrary.com>
201 Date: Mon May 21 17:02:34 2012 -0400
203 LP# 953299 - defend against null and zero-length cache keys
205 Ignore undefined and zero-length (after key normalization) cache
208 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
209 Signed-off-by: Dan Scott <dan@coffeecode.net>
211 9 2 src/perl/lib/OpenSRF/Utils/Cache.pm
213 commit 3e97b0f69be04957eefa149d06e05111f3ad4291
214 Author: Dan Scott <dan@coffeecode.net>
215 Date: Mon May 21 12:18:41 2012 -0400
217 LP# 953299 - Prevent get/set of invalid cache keys
219 Clients of OpenSRF::Utils::Cache occasionally request cache keys that
220 contain invalid characters (a particular case is ISBNs that contain
221 spaces), so strip those out of incoming get/set requests to avoid ugly
224 Signed-off-by: Dan Scott <dan@coffeecode.net>
225 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
227 25 0 src/perl/lib/OpenSRF/Utils/Cache.pm
228 3 1 src/perl/t/09-Utils-Cache.t
230 commit c6cf4d9b6530f5b8b6bdf95c26db9986656fcce8
231 Author: Dan Scott <dan@coffeecode.net>
232 Date: Mon May 21 12:41:25 2012 -0400
234 .gitignore - ignore more built stuff in fewer lines
236 Use the power of glob to catch more built files that we want to ignore,
237 while simplifying the .gitignore file significantly.
239 Signed-off-by: Dan Scott <dan@coffeecode.net>
243 commit 2c0fb3a9f6aeea9c93846c573ced8d235ec03c7c
244 Author: Dan Scott <dan@coffeecode.net>
245 Date: Mon May 21 11:48:26 2012 -0400
247 Revert inadvertently introduced debugging code
249 In commit 91b8790c, several debugging lines were accidentally committed
250 to the OpenSRF caching utility. Revert that change.
252 Signed-off-by: Dan Scott <dan@coffeecode.net>
254 0 3 src/perl/lib/OpenSRF/Utils/Cache.pm
256 commit f6d38086a42cd6a60d7ed45461d99076cf4d9e5e
257 Author: Dan Scott <dan@coffeecode.net>
258 Date: Tue May 1 22:11:00 2012 -0400
260 Minor cleanups to Java dependency build process
262 While configure.ac still hardcodes the expected location of the Java
263 dependencies (JSON and Memcached classes), we can clean up some of the
264 lower-level challenges with the Java build.
266 * StAX and WSTX were rolled into the core Java environment long ago,
267 so there's no need to download them and even less need to verify
268 that the downloaded version exist.
269 * The Memcached class is now up to 2.0.1, per deps.sh, but the deps.inc
270 file was pointing at 1.5.1.
271 * Speaking of the deps.inc file, nothing seems to use it; delete it.
272 * The Makefile was dying because the variables for the Memcached and
273 JSON classes weren't defined. Define those at the top of the Makefile.
275 Signed-off-by: Dan Scott <dan@coffeecode.net>
277 4 3 src/java/Makefile.am
278 0 5 src/java/deps.inc
279 delete mode 100644 src/java/deps.inc
281 commit d9487c42a1e3432be9fa3da9b2fad2b42d24a645
282 Author: Dan Scott <dan@coffeecode.net>
283 Date: Tue May 1 22:08:23 2012 -0400
285 Clean up root directory: INSTALL, .gitignore, autoreconf
287 * Update the README to avoid running autoreconf with the "-f" flag.
288 * Make the INSTALL file a symbolic link to the README to avoid
289 creating a generic INSTALL file each time autoreconf is run.
290 * Add a .gitignore file that ignores all of the built files.
292 Signed-off-by: Dan Scott <dan@coffeecode.net>
297 create mode 100644 .gitignore
298 create mode 120000 INSTALL
300 commit c4c2d62cdf47ee7e5d02fac44cce5515a77c362c
301 Author: Dan Scott <dan@coffeecode.net>
302 Date: Tue May 1 21:31:38 2012 -0400
304 Change Java deps.sh to include . in CLASSPATH
306 Following the directions given by running deps.sh was a little bit
307 frustrating; we need to work in some documentation on how to use the
308 Java bits of OpenSRF - and perhaps look at a more standard option like
309 maven for dependencies.
311 Signed-off-by: Dan Scott <dan@coffeecode.net>
315 commit d7d8923e98a91c070668a529957d7ee7033529a7
316 Author: Bill Erickson <berick@esilibrary.com>
317 Date: Fri Mar 16 09:56:13 2012 -0400
319 Java Gateway interface improved exception handling
321 Handle any exceptions that should not reasonably occur in normal
322 operation under the covers. Bubble the rest up. Update test code with
325 Signed-off-by: Bill Erickson <berick@esilibrary.com>
326 Signed-off-by: Dan Scott <dscott@laurentian.ca>
328 57 51 src/java/org/opensrf/net/http/GatewayRequest.java
329 16 8 src/java/org/opensrf/net/http/HttpConnection.java
330 41 12 src/java/org/opensrf/net/http/HttpRequest.java
331 5 2 src/java/org/opensrf/net/http/HttpRequestHandler.java
332 50 30 src/java/org/opensrf/test/TestGateway.java
334 commit ad253eb0d67098b69c71141061563b1802f33f97
335 Author: Bill Erickson <berick@esilibrary.com>
336 Date: Thu Mar 15 17:26:16 2012 -0400
338 Java gateway interface test class
340 Signed-off-by: Bill Erickson <berick@esilibrary.com>
341 Signed-off-by: Dan Scott <dscott@laurentian.ca>
343 58 0 src/java/org/opensrf/test/TestGateway.java
344 create mode 100644 src/java/org/opensrf/test/TestGateway.java
346 commit 5b5e28f16be77d9b23a98579d10173103dd907ed
347 Author: Bill Erickson <berick@esilibrary.com>
348 Date: Mon Feb 27 18:05:07 2012 -0500
350 Java HTTP gateway interface
352 Supports sync and async requests. Async requests support onResponse,
353 onComplete, and onError handlers.
355 Supports a max-threads value to limit the number of activately
356 communicating threads over any connection. When max-threads is reached,
357 requests are queued and delivered as soon as there is room.
359 Note that since this is talking to the OpenSRF gateway and not the
360 translater, responses are simply collected and passed one at a time to
361 onResponse. They are not streamed. The goal of supporting onResponse
362 is to provide the same client API for both the gateway and translator.
364 Signed-off-by: Bill Erickson <berick@esilibrary.com>
365 Signed-off-by: Dan Scott <dscott@laurentian.ca>
367 129 0 src/java/org/opensrf/net/http/GatewayRequest.java
368 97 0 src/java/org/opensrf/net/http/HttpConnection.java
369 66 0 src/java/org/opensrf/net/http/HttpRequest.java
370 25 0 src/java/org/opensrf/net/http/HttpRequestHandler.java
371 create mode 100644 src/java/org/opensrf/net/http/GatewayRequest.java
372 create mode 100644 src/java/org/opensrf/net/http/HttpConnection.java
373 create mode 100644 src/java/org/opensrf/net/http/HttpRequest.java
374 create mode 100644 src/java/org/opensrf/net/http/HttpRequestHandler.java
376 commit 85830ce301654e2dfefcd186a2bd63bd3785a967
377 Author: Dan Scott <dscott@laurentian.ca>
378 Date: Mon Apr 23 14:17:35 2012 -0400
380 Remove GNU default INSTALL file
382 GNU autotools generate an INSTALL file that is generic and which
383 conflicts with the instructions given in the README. Installation is
384 already hard enough without conflicting instructions, so delete the
387 Signed-off-by: Dan Scott <dscott@laurentian.ca>
390 delete mode 100644 INSTALL
392 commit bc36b120e78f9fa995856a144b9054e2a0ab1f3e
393 Author: Dan Scott <dscott@laurentian.ca>
394 Date: Mon Apr 23 14:13:37 2012 -0400
396 autotools - do not explicitly include m4 directory
398 Some versions of autotools complain bitterly if an m4 include directory
399 is specified that does not exist.
401 Signed-off-by: Dan Scott <dscott@laurentian.ca>
406 commit 2bdd580e2bcc6660b073b6853dc1544d5c68a6fd
407 Author: Dan Scott <dscott@laurentian.ca>
408 Date: Mon Apr 23 13:45:14 2012 -0400
410 Name the bootstrapping steps in buildbot
412 Signed-off-by: Dan Scott <dscott@laurentian.ca>
414 10 6 examples/buildbot.cfg
416 commit f21b0a5aa647e7303cc0d6d3fb70cadf0e8fc812
417 Author: Dan Scott <dscott@laurentian.ca>
418 Date: Mon Apr 23 13:16:25 2012 -0400
420 Fix buildbot configuration
422 Need to define our tests before they're called; also, can't blindly
423 invoke a step out of the proper scope. Duh.
425 Signed-off-by: Dan Scott <dscott@laurentian.ca>
429 examples/buildbot.cfg
431 55 18 examples/buildbot.cfg
433 commit 4d58c3d24b65f96e0648e37a3f4da82051a58917
434 Author: Dan Scott <dscott@laurentian.ca>
435 Date: Mon Apr 23 12:52:57 2012 -0400
437 Switch to autoreconf instead of autogen.sh
439 Update the buildbot config accordingly to avoid erroneous errors of
442 Signed-off-by: Dan Scott <dscott@laurentian.ca>
446 12 4 examples/buildbot.cfg
447 delete mode 100755 autogen.sh
449 commit 5849a119bd363b152b41ed7a39c787f009412572
450 Author: Dan Scott <dscott@laurentian.ca>
451 Date: Mon Apr 2 16:48:15 2012 -0400
453 Bump version numbers for 2.1.0-RC1 release
455 Also update the ChangeLog with relevant entries.
457 Signed-off-by: Dan Scott <dscott@laurentian.ca>
460 1 1 src/perl/lib/OpenSRF.pm
463 commit 0ed34101e67dc04292f906945dd5752c73985412
464 Author: Dan Scott <dscott@laurentian.ca>
465 Date: Fri Mar 23 13:05:31 2012 -0400
467 Add trailing period, "localhost" to ejabberd.cfg example
469 Thanks to Yamil Suarez for noticing a discrepancy between the older wiki
470 instructions and the README.
472 Signed-off-by: Dan Scott <dscott@laurentian.ca>
476 commit cf4d4798c5949abaf6bc9a4c3a62bf9a6533977b
477 Author: Bill Erickson <berick@esilibrary.com>
478 Date: Wed Mar 14 11:38:18 2012 -0400
480 Prevent undef warnings on perl socket read nbytes test
482 Signed-off-by: Bill Erickson <berick@esilibrary.com>
483 Signed-off-by: Dan Scott <dan@coffeecode.net>
485 1 1 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
487 commit fff96812ff55cc50374d5a16e7c803fac2c2f2a5
488 Author: Dan Scott <dscott@laurentian.ca>
489 Date: Sun Mar 11 11:22:14 2012 -0400
491 Prepare 2.1.0-alpha1 for release
493 Signed-off-by: Dan Scott <dscott@laurentian.ca>
497 2 2 src/perl/lib/OpenSRF.pm
500 commit f470b55b86fd59f31dd142d8cb55fe812265892e
501 Author: Bill Erickson <berick@esilibrary.com>
502 Date: Mon Feb 20 14:40:30 2012 -0500
504 Detect remote disconnect in Perl XMPP reader
506 When the jabber server severs the connection, it leaves the Perl libs
507 with a socket that perpetually appears ready for reading, but always
508 returns 0 bytes. This produces a loop in the client code. This change
509 detects this situation, logs an error, and throws an exception.
511 Signed-off-by: Bill Erickson <berick@esilibrary.com>
512 Signed-off-by: Dan Scott <dscott@laurentian.ca>
514 13 2 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
516 commit 974d3a0dd4ddd134033b16bcd9e2fde34302ffd5
517 Author: Dan Wells <dbw2@calvin.edu>
518 Date: Tue Mar 6 15:08:33 2012 -0500
520 Protect gateway from format-string crashes in data
522 As a common security measure, printf-style formatting codes are
523 not allowed to be directly interpreted from a writable segment.
524 The gateway code currently has the following function call:
526 osrfLogActivity( OSRF_LOG_MARK, act->buf );
528 This is a variadic function which expects the 'act->buf' position
529 to contain a format string and any trailing arguments to be the
530 values passed to the formatter. Since act->buf is the value of
531 what we passed in, some data inadvertantly contains format strings,
532 and since it is a writable segment, the program crashes. Here is
533 an example of a crash-causing call:
535 http://localhost/osrf-gateway-v1?service=test&method=test¶m=%22%251n%22
537 The param is interpreted as "%1n" and abruptly fails.
539 The simple solution is to include a formatter so that our param gets
540 demoted to being mere data, i.e.:
542 osrfLogActivity( OSRF_LOG_MARK, "%s", act->buf );
544 Signed-off-by: Dan Wells <dbw2@calvin.edu>
545 Signed-off-by: Dan Scott <dscott@laurentian.ca>
547 1 1 src/gateway/osrf_json_gateway.c
549 commit fd92a859e2ba3eeeaafe4904cd04973eb8cd572b
550 Author: Thomas Berezansky <tsbere@mvlc.org>
551 Date: Wed Mar 7 16:42:21 2012 -0500
553 Stop warning about missing parentheses...
557 Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
559 1 1 src/perl/lib/OpenSRF/Application/Validator.pm
561 commit 8cfa0ae50935176a1574e8f233c8d4d88442c0ad
562 Author: Bill Erickson <berick@esilibrary.com>
563 Date: Thu Feb 16 17:31:29 2012 -0500
565 Refresh child file handles on status read
567 If a child process dies while the parent is attempting to read status
568 information from the child, the pipe connecting the two will be cleaned
569 up. The parent mustn't attempt to read from the dead pipe or it will
570 result in a bad file descriptor error, culminating in a high-cpu
571 infinite loop on the parent (Listener) process.
573 Signed-off-by: Bill Erickson <berick@esilibrary.com>
574 Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
575 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
577 4 3 src/perl/lib/OpenSRF/Server.pm
579 commit 37606bf64f2829258cc612e730782e081e2ac6bb
580 Author: Bill Erickson <berick@esilibrary.com>
581 Date: Fri Jan 13 10:57:59 2012 -0500
583 Python libs for OpenSRF ingress tracking
585 osrf.ses.Session.ingress(ingress)
587 This also set the "srfsh" ingress value for srfsh.py.
589 Signed-off-by: Bill Erickson <berick@esilibrary.com>
590 Signed-off-by: Mike Rylander <mrylander@gmail.com>
592 11 1 src/python/osrf/ses.py
593 2 0 src/python/osrf/stack.py
594 1 0 src/python/srfsh.py
596 commit 26c31a9d5728adbd884a1369034caff41471130b
597 Author: Bill Erickson <berick@esilibrary.com>
598 Date: Fri Jan 13 09:35:18 2012 -0500
600 Set OpenSRF ingress value for srfsh/gateways
602 Sets the "srfsh", "gateway-v1", and "translator-v1" ingress values
605 For the translater, it's necessary to stamp the unpacked messages with
606 the updated ingress, then re-serialize before sending the messages along.
608 Signed-off-by: Bill Erickson <berick@esilibrary.com>
609 Signed-off-by: Mike Rylander <mrylander@gmail.com>
611 18 21 src/gateway/osrf_http_translator.c
612 1 0 src/gateway/osrf_json_gateway.c
613 1 0 src/srfsh/srfsh.c
615 commit 7ec92808fea116ead923e475ad5242a54b688798
616 Author: Bill Erickson <berick@esilibrary.com>
617 Date: Fri Jan 13 09:15:05 2012 -0500
619 C libs for OpenSRF ingress tracking
621 osrfAppSessionSetIngress(<ingress>);
623 Signed-off-by: Bill Erickson <berick@esilibrary.com>
624 Signed-off-by: Mike Rylander <mrylander@gmail.com>
626 5 0 include/opensrf/osrf_app_session.h
627 5 0 include/opensrf/osrf_message.h
628 26 0 src/libopensrf/osrf_app_session.c
629 32 0 src/libopensrf/osrf_message.c
630 4 0 src/libopensrf/osrf_stack.c
632 commit b12de37f9480c68b1c8b033da18c3cc0d0ebc8f0
633 Author: Bill Erickson <berick@esilibrary.com>
634 Date: Thu Jan 12 16:36:16 2012 -0500
636 Perl libs for OpenSRF ingress tracking
638 Ingress is a free-form text value which represents the entry point for
639 the client into the opensrf network. The value is passed within opensrf
640 messages, similar to "locale". Clients should specify the ingress
641 before any opensrf communication occurs.
643 OpenSRF::AppSession->ingress($ingress);
645 Stock values include the following:
652 Signed-off-by: Bill Erickson <berick@esilibrary.com>
653 Signed-off-by: Mike Rylander <mrylander@gmail.com>
655 9 0 src/perl/lib/OpenSRF/AppSession.pm
656 20 1 src/perl/lib/OpenSRF/DomainObject/oilsMessage.pm
657 2 0 src/perl/lib/OpenSRF/Transport.pm
659 commit 67d4d5de8656128f32b20f4c04dbf81a1028e929
660 Author: Dan Scott <dscott@laurentian.ca>
661 Date: Wed Feb 29 10:48:38 2012 -0500
663 Copy opensrf_core.xml.example to a clean opensrf_core.xml file
665 Ben Shum with the assist again.
667 Also, add ~/.srfsh.xml to the definition list of interesting OpenSRF
670 Signed-off-by: Dan Scott <dscott@laurentian.ca>
674 commit 68025993b01cc95f66a0ca723841e1abb406709f
675 Author: Dan Scott <dscott@laurentian.ca>
676 Date: Wed Feb 29 10:42:58 2012 -0500
678 Include explicit instructions to copy the opensrf config files
680 Also noted by the sharp-eyed Ben Shum, we didn't tell people to actually
681 copy opensrf.xml.example / opensrf_core.xml.example, which could lead to
684 Signed-off-by: Dan Scott <dscott@laurentian.ca>
688 commit 75f27021d4b45eebbf52a89a35f96e775f92a207
689 Author: Dan Scott <dscott@laurentian.ca>
690 Date: Wed Feb 29 10:27:36 2012 -0500
692 Update max_user_sessions suggestion to 10000 to match wiki
694 Ben Shum noticed that the README still specified 1000 for
695 max_user_sessions in the ejabberd.cfg file, whereas current larger
696 OpenSRF systems with many services may blow past that limit. Update to
697 match the current wiki specification of 10000.
699 Signed-off-by: Dan Scott <dscott@laurentian.ca>
703 commit 61fdb582dc918a1003351ff25842a23aaff24f71
704 Author: Dan Scott <dscott@laurentian.ca>
705 Date: Wed Jan 4 15:21:36 2012 -0500
707 Remove reference to Fedora specific version in prereq installer
709 Fedora changes every 6 months, so it's probably silly to have a make
710 target of "fedora14" when that is no longer supported by the Fedora
711 project itself. As Fedora has packaged all of the OpenSRF dependencies
712 (thanks, Ben Webb!), in theory it should be supported by the latest
713 releases of Fedora in the future... as long as we don't introduce any
714 dependencies on deprecated versions of packages.
716 Signed-off-by: Dan Scott <dscott@laurentian.ca>
718 2 2 src/extras/Makefile.install
720 commit ba6d4c7cc2988dafb6ca8de2d1f2f93194dcf3b3
721 Author: Dan Scott <dscott@laurentian.ca>
722 Date: Wed Jan 4 15:17:48 2012 -0500
724 Update README to match Evergreen's format
726 Reference the various accounts in use consistently.
728 Correct reference to "fedora" target in Makefile.install.
730 Put the developer preamble up front.
732 Provide more Fedora examples.
734 Do not include leading "#" and "$" in bash examples, to make it easier
735 for people to copy and paste.
737 Include source highlighting instructions and titles for example
740 Signed-off-by: Dan Scott <dscott@laurentian.ca>
744 commit cc7a12f74a9ce4555d5abd8989dfab43290fb41c
745 Author: Bill Erickson <berick@esilibrary.com>
746 Date: Fri Feb 24 16:28:27 2012 -0500
748 Java dependencies update
750 As of Java 6, XML Stax parsing is natively supported. This change
751 removes the external Stax dependencies and updates how the JSON libs are
752 fetched (in deps.sh), which now come from github.
754 Signed-off-by: Bill Erickson <berick@esilibrary.com>
755 Signed-off-by: Dan Scott <dscott@laurentian.ca>
757 17 20 src/java/deps.sh
758 1 4 src/java/org/opensrf/net/xmpp/XMPPReader.java
759 1 4 src/java/org/opensrf/util/XMLFlattener.java
761 commit 07b2eff0a7dfc492afd8e67788eae159c5ab96b7
762 Author: Dan Scott <dscott@laurentian.ca>
763 Date: Tue Feb 21 09:55:57 2012 -0500
765 We're not in Subversion anymore, Dorothy
767 We're in git now, make the README reflect that accordingly. Thanks to
768 Warren Layton for the tip!
770 Signed-off-by: Dan Scott <dscott@laurentian.ca>
774 commit aeeb4acdc8695a640021dbc6902ab3279652583d
775 Author: Bill Erickson <berick@esilibrary.com>
776 Date: Tue Feb 14 09:10:58 2012 -0500
778 Perl parent/child write improvements
780 * Updated variable names for clarity
781 * Added more inline comments
782 * Added additional error logging
783 * For severe read errors, allow the child to gracefully skip the request
785 Signed-off-by: Bill Erickson <berick@esilibrary.com>
786 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
787 Signed-off-by: Mike Rylander <mrylander@gmail.com>
789 25 19 src/perl/lib/OpenSRF/Server.pm
791 commit 08ee4f993fe773e37233b139961cbcdae2fe93b8
792 Author: Bill Erickson <berick@esilibrary.com>
793 Date: Mon Feb 13 16:53:59 2012 -0500
795 Perl pipe reading overhaul : data size header
797 The lockfile mechanism for preventing premature end of reads on child
798 processes suffers from one serious flaw: if the data to write exceeds
799 the pipe buffer size, the parent will block on syswrite and the service
800 will lock up. It's also not as effecient (for the normal case) as the
801 code was without the lockfile, becasue the writes and reads are
804 This commit replaces the lockfile mechanism with a protocol header in
805 the data. The first X (currently 12) bytes of data written to the child
806 process will contain the full length of the data to be written (minus
807 the header size). The child now reads the data in parallel with the parent as
808 data is available. If the child reads all available data (in the pipe)
809 but not all of the expected data, the child will go back into a select()
810 wait pending more data from the parent. The process continues until all
813 This same mechanism is already used to commicate status info from child
814 processes to the parent.
816 Signed-off-by: Bill Erickson <berick@esilibrary.com>
817 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
818 Signed-off-by: Mike Rylander <mrylander@gmail.com>
820 49 73 src/perl/lib/OpenSRF/Server.pm
821 1 2 src/perl/lib/OpenSRF/System.pm
823 commit 04558f38c1c1d314acb978a37193dacb4a6eba31
824 Author: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
825 Date: Fri Jan 27 09:05:07 2012 -0500
827 JSON_v0 has been superseded, and it has insidious bugs anyway.
829 For example, you cannot round-trip this through JSON2js() and js2JSON()
830 in IE8: http://paste.lisp.org/display/127338
832 This will make Evergreen's build fail until the change specified in
833 LP #922609 is applied.
835 Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
836 Signed-off-by: Bill Erickson <berick@esilibrary.com>
839 0 135 src/javascript/JSON_v0.js
840 delete mode 100644 src/javascript/JSON_v0.js
842 commit 89f41c82798dbac56716fdd5beeb6c0de3e4ce2e
843 Author: Bill Erickson <berick@esilibrary.com>
844 Date: Mon Nov 7 17:30:44 2011 -0500
846 Sync parent/child write/read with lock file
848 Wrap parent writes to child socket and initial child reads of the
849 socket in file lock (via flock()) to prevent rare race condition
850 where child process reads to the end of the data before the parent
851 has written all bytes.
853 This create a new lock file on the system, which resides in the same
854 directory as the pid files. The lock file is created and destroyed by
855 the opensrf perl mods at service start up and shutdown.
857 See also https://bugs.launchpad.net/opensrf/+bug/883155
859 Signed-off-by: Bill Erickson <berick@esilibrary.com>
860 Signed-off-by: Dan Scott <dscott@laurentian.ca>
862 1 1 bin/opensrf-perl.pl.in
863 60 8 src/perl/lib/OpenSRF/Server.pm
864 3 2 src/perl/lib/OpenSRF/System.pm
866 commit 3d089bdfd067676f99807f7cb2014e122c4dbf72
867 Author: Dan Scott <dscott@laurentian.ca>
868 Date: Mon Dec 12 13:09:13 2011 -0500
870 Update Perl OpenSRF build and tests for O:A:Validator
872 Kickstarted by wanting to bring OpenSRF::Application::Validator into the
873 MANIFEST and testing coverage, I noticed a few other files that needed
874 to be added to the MANIFEST as well. This gets us closer to acceptable
875 according to "./Build distcheck"
877 Signed-off-by: Dan Scott <dscott@laurentian.ca>
879 1 0 src/perl/Build.PL
880 22 0 src/perl/MANIFEST
881 6 1 src/perl/t/01-Application.t
883 commit 5e1fbcc1c8ae2f969dbeac93fe1da80c008ca42b
884 Author: Thomas Berezansky <tsbere@mvlc.org>
885 Date: Fri Dec 9 15:19:12 2011 -0500
887 OpenSRF Validator Service
889 Add a new Validator service, and EmailAddress validators.
891 The service runs a chain of one or more validators, each one being fed the
892 normalized output of the previous one.
894 The return from each validator should be a hash of valid (0 or 1), the new
895 normalized output (the untouched input if invalid or nothing needed to be
896 changed), and if invalid an error string. Optionally, a validator can also
897 include an "additionals" hash of extra information to be included in the
900 The complete list of validators included is:
902 OpenSRF::Application::Validator::Base
903 The base validator. Always returns valid.
904 OpenSRF::Application::Validator::Invalid
905 Always returns invalid for testing purposes.
906 OpenSRF::Application::Validator::EmailAddress::Regex
907 Does a very basic regular expression check on email addresses.
908 OpenSRF::Application::Validator::EmailAddress::DNS
909 Uses Net::DNS to look up the domain on an email address
911 Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
912 Signed-off-by: Dan Scott <dscott@laurentian.ca>
914 40 0 examples/opensrf.xml.example
915 3 0 src/extras/Makefile.install
916 50 0 src/perl/lib/OpenSRF/Application/Validator.pm
917 12 0 src/perl/lib/OpenSRF/Application/Validator/Base.pm
918 96 0 src/perl/lib/OpenSRF/Application/Validator/EmailAddress/DNS.pm
919 23 0 src/perl/lib/OpenSRF/Application/Validator/EmailAddress/Regex.pm
920 16 0 src/perl/lib/OpenSRF/Application/Validator/Invalid.pm
921 create mode 100644 src/perl/lib/OpenSRF/Application/Validator.pm
922 create mode 100644 src/perl/lib/OpenSRF/Application/Validator/Base.pm
923 create mode 100644 src/perl/lib/OpenSRF/Application/Validator/EmailAddress/DNS.pm
924 create mode 100644 src/perl/lib/OpenSRF/Application/Validator/EmailAddress/Regex.pm
925 create mode 100644 src/perl/lib/OpenSRF/Application/Validator/Invalid.pm
927 commit b6b64deb16ed3f005d64f99365b0220a82d72431
928 Author: Jason Stephenson <jstephenson@mvlc.org>
929 Date: Wed Dec 7 15:08:42 2011 -0500
931 Support installation for Ubuntu 12.04 Precise Pangolin.
933 Update the README to include Precise Pangolin as a supported release.
935 Update src/extras/Makefile.install to install two new debs required on
938 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
939 Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
942 15 1 src/extras/Makefile.install
944 commit 3a4ae77be13349fae180fdc81bcc23e5a93032b4
945 Author: Dan Scott <dscott@laurentian.ca>
946 Date: Fri Nov 4 09:42:50 2011 -0400
948 Add explicit chown command to README
950 Warren Layton noticed that there was no explicit command to change the
951 ownership of the files in the /<PREFIX> directory to be owned by
952 "opensrf", although there was a statement that the files needed to be
953 owned by "opensrf". To reduce the chance of failure, add the explicit
956 TODO (for a willing volunteer): teach the installer to change the
957 ownership at the time the files are installed!
959 Signed-off-by: Dan Scott <dscott@laurentian.ca>
963 commit a7be31f137ccf6e2f4522c9a4c690a23b5636db8
964 Author: Bill Erickson <berick@esilibrary.com>
965 Date: Fri Oct 28 11:33:24 2011 -0400
967 Add SIGPIPE retry handling to child data sysread
969 Similar to the SIGPIPE retry logic wrapped around the parent process'
970 syswrite call (for sending data to a child process), protect the child's
971 sysread call (as it reads data from the parent). In pre-2.0, the
972 sysread step was handled by Net::Server, but now we need to protect it
975 Signed-off-by: Bill Erickson <berick@esilibrary.com>
976 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
978 10 0 src/perl/lib/OpenSRF/Server.pm
980 commit 40a753b10a3db58baa9179d75a76df1266589ea1
981 Author: Dan Scott <dscott@laurentian.ca>
982 Date: Wed Oct 19 11:39:41 2011 -0400
984 LP878284: stop_osrf action should stop, not start, Perl
986 As reported by Vicent Mas <uvemas@gmail.com> to the Evergreen
987 developer's mailing list:
990 It seems I've found a small bug in the
991 /openils/bin/osrf_ctl.sh script. The line for the osrf_stop action is:
993 "stop_osrf") stop_python; stop_c; start_perl;;
997 "stop_osrf") stop_python; stop_c; stop_perl;;
1000 Signed-off-by: Dan Scott <dscott@laurentian.ca>
1002 1 1 bin/osrf_ctl.sh.in
1004 commit 07b5a335656be741353ab70c1d4717dacdbebc1b
1005 Author: Bill Erickson <berick@esilibrary.com>
1006 Date: Tue Oct 18 09:17:10 2011 -0400
1008 Warn when sending very large messages
1010 Depending on configuration, messages of a certain size sent through a
1011 Jabber server will cause the jabber server to disconnect the client.
1012 This change allows admins to configure a message size warning threshold.
1013 When a message meets or exceeds the size threshold, a warning is issued
1014 to the logs with the message size (in bytes) and the message recipient.
1015 It does not prevent the message from being delivered. It's purely
1018 Use 1 800 000 as the default threhold.
1020 Signed-off-by: Bill Erickson <berick@esilibrary.com>
1021 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
1023 3 0 examples/opensrf_core.xml.example
1024 11 1 src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
1026 commit ffb8bb73a2f505cfda9d8b97fab1f82aa3fb7097
1027 Author: Dan Scott <dscott@laurentian.ca>
1028 Date: Sat Sep 10 12:22:08 2011 -0400
1030 Fix README typo: 'mod_offlinex'
1032 mod_offline is not that x-treme.
1034 Signed-off-by: Dan Scott <dscott@laurentian.ca>
1038 commit 0725d1ddced0f16c351a5953f5fd3c14714cda1a
1039 Author: Dan Scott <dan@coffeecode.net>
1040 Date: Thu Aug 25 11:41:19 2011 -0400
1042 Don't define a variable inside a conditional block
1044 ./configure --disable-core --enable-javascript was dying with an error
1045 due to CHECK_TESTS not being defined; move it outside the conditional
1046 block so that we can ensure that it is defined as either yes or no.
1048 Signed-off-by: Dan Scott <dscott@laurentian.ca>
1052 commit b24e90f1a1b1f2309ca3cdf0728cdd54f7822597
1053 Author: Dan Scott <dan@coffeecode.net>
1054 Date: Mon Aug 22 09:49:45 2011 -0400
1056 Make distro targets in README match Makefile.install
1058 Swap ubuntu-karmic for ubuntu-lucid and pull fedora14 as it is really
1059 close to end of life.
1061 Signed-off-by: Dan Scott <dscott@laurentian.ca>