metaproxy-moved-to-github.git
12 years agozoom: Honor extraArgs, strip # in zurl
Adam Dickmeiss [Thu, 30 Aug 2012 13:47:43 +0000 (15:47 +0200)]
zoom: Honor extraArgs, strip # in zurl

12 years agomulti: fix SEGV for scan
Adam Dickmeiss [Thu, 30 Aug 2012 10:54:45 +0000 (12:54 +0200)]
multi: fix SEGV for scan

12 years agoNew tests for url_recipe_handle
Adam Dickmeiss [Tue, 28 Aug 2012 10:27:08 +0000 (12:27 +0200)]
New tests for url_recipe_handle

12 years agourl_recipe_handle: allow %{var[reg]} substitutions
Adam Dickmeiss [Tue, 28 Aug 2012 10:26:09 +0000 (12:26 +0200)]
url_recipe_handle: allow %{var[reg]} substitutions

It's like ${var[reg]} but does URI component encoding as well.

12 years agoVersion 1.3.43 v1.3.43
Adam Dickmeiss [Wed, 22 Aug 2012 10:25:06 +0000 (12:25 +0200)]
Version 1.3.43

12 years agoRPM/Deb: require yazpp 1.3.2
Adam Dickmeiss [Wed, 22 Aug 2012 10:22:13 +0000 (12:22 +0200)]
RPM/Deb: require yazpp 1.3.2

because it fixes a missing close of non-keepalive HTTP sessions.

12 years agohttp_file: allow zero size files (bug fix)
Adam Dickmeiss [Wed, 22 Aug 2012 08:28:51 +0000 (10:28 +0200)]
http_file: allow zero size files (bug fix)

12 years agoFix zoom schema: auth_url is optional
Adam Dickmeiss [Tue, 21 Aug 2012 13:28:24 +0000 (15:28 +0200)]
Fix zoom schema: auth_url is optional

12 years agoUpdate m4
Adam Dickmeiss [Tue, 21 Aug 2012 12:43:02 +0000 (14:43 +0200)]
Update m4

12 years agoSpelling
Adam Dickmeiss [Mon, 20 Aug 2012 07:47:33 +0000 (09:47 +0200)]
Spelling

12 years agoVersion 1.3.42 v1.3.42
Adam Dickmeiss [Mon, 20 Aug 2012 07:22:11 +0000 (09:22 +0200)]
Version 1.3.42

12 years agozoom: init member cqlt of Backend
Adam Dickmeiss [Fri, 17 Aug 2012 09:34:37 +0000 (11:34 +0200)]
zoom: init member cqlt of Backend

12 years agozoom: tweak diagnostics for Torus auth
Adam Dickmeiss [Thu, 16 Aug 2012 07:14:30 +0000 (09:14 +0200)]
zoom: tweak diagnostics for Torus auth

If no result was found in Torus lookup and user&password was given,
then return 'VInit/AC: Bad Userid and/or Password'. If lookup failed,
and user/password was not given (IP auth in effect) return
'Init/AC: Blocked network address'.

12 years agozoom: escape user/pass/ip in Torus auth lookup
Adam Dickmeiss [Thu, 16 Aug 2012 07:10:59 +0000 (09:10 +0200)]
zoom: escape user/pass/ip in Torus auth lookup

12 years agofrontend_net: handle X-Forwarded-For
Adam Dickmeiss [Wed, 15 Aug 2012 14:15:00 +0000 (16:15 +0200)]
frontend_net: handle X-Forwarded-For

This is stored in package.origin() and may be used in filters
as usual.

12 years agozoom: IP auth in place
Adam Dickmeiss [Wed, 15 Aug 2012 14:03:03 +0000 (16:03 +0200)]
zoom: IP auth in place

12 years agozoom: authentication via Torus
Adam Dickmeiss [Wed, 15 Aug 2012 13:39:28 +0000 (15:39 +0200)]
zoom: authentication via Torus

Enabled by new configuration setting: auth_url . If this is defined,
the zoom module will contact Torus for auth/IP lookup and that will
define realm to be used in session (IP not done yet).

12 years agoVersion 1.3.41 v1.3.41
Adam Dickmeiss [Fri, 10 Aug 2012 08:46:06 +0000 (10:46 +0200)]
Version 1.3.41

12 years agosru_z3950: SRU response has same version as request
Adam Dickmeiss [Fri, 10 Aug 2012 08:41:48 +0000 (10:41 +0200)]
sru_z3950: SRU response has same version as request

12 years agoFix split_zurl bug (missing char after /).
Adam Dickmeiss [Thu, 9 Aug 2012 13:20:49 +0000 (15:20 +0200)]
Fix split_zurl bug (missing char after /).

Bug introduced in db015fa75ee1f475040dba0512fc (version 1.3.40)

12 years agoUse m4/id-config.sh
Adam Dickmeiss [Tue, 7 Aug 2012 11:43:12 +0000 (13:43 +0200)]
Use m4/id-config.sh

12 years agoVersion 1.3.40 v1.3.40
Adam Dickmeiss [Mon, 6 Aug 2012 10:27:31 +0000 (12:27 +0200)]
Version 1.3.40

12 years agoNEWS
Adam Dickmeiss [Mon, 6 Aug 2012 10:26:28 +0000 (12:26 +0200)]
NEWS

12 years agoUnix socket example
Adam Dickmeiss [Mon, 6 Aug 2012 09:22:16 +0000 (11:22 +0200)]
Unix socket example

12 years agoAvoid using unix path as "database name" for virt_db
Adam Dickmeiss [Mon, 6 Aug 2012 09:20:10 +0000 (11:20 +0200)]
Avoid using unix path as "database name" for virt_db

Fix split_zurl to use cs_get_host_args which considers
unix sockets as well.

12 years agoVersion 1.3.39 v1.3.39
Adam Dickmeiss [Thu, 2 Aug 2012 13:23:26 +0000 (15:23 +0200)]
Version 1.3.39

12 years agoUpdate NEWS
Adam Dickmeiss [Thu, 2 Aug 2012 13:20:59 +0000 (15:20 +0200)]
Update NEWS

12 years agosession_shared: don't reset timestap for query match
Adam Dickmeiss [Thu, 2 Aug 2012 12:11:16 +0000 (14:11 +0200)]
session_shared: don't reset timestap for query match

If an existing result set is found matching the current query, the
timestamp for "last use of set" is no longer reset.

12 years agosession_shared: Hit count is type Odr_int
Adam Dickmeiss [Thu, 2 Aug 2012 07:29:18 +0000 (09:29 +0200)]
session_shared: Hit count is type Odr_int

And not 'int'.

12 years agozoom: allow Torus record wrapped in single "record" elem
Adam Dickmeiss [Wed, 1 Aug 2012 11:14:47 +0000 (13:14 +0200)]
zoom: allow Torus record wrapped in single "record" elem

12 years agoz3950_client: don't tamper with target zurl
Adam Dickmeiss [Wed, 1 Aug 2012 10:48:26 +0000 (12:48 +0200)]
z3950_client: don't tamper with target zurl

Fixes use of unix sockets in the Z39.50 client.

12 years agozoom: New database arg: torus_url
Adam Dickmeiss [Mon, 30 Jul 2012 12:07:19 +0000 (14:07 +0200)]
zoom: New database arg: torus_url

This is the a way fully specify the URL of the torus record to use.
When in use, the udb and realm are not in use (unless %realm and %udb
is given in the torus_url!). Thus, this overrides <torus url=..">
configuration.

12 years agoNot needed: DH_COMPAT=5
Adam Dickmeiss [Fri, 6 Jul 2012 10:55:32 +0000 (12:55 +0200)]
Not needed: DH_COMPAT=5

12 years agoVersion 1.3.38 v1.3.38
Adam Dickmeiss [Wed, 4 Jul 2012 12:14:26 +0000 (14:14 +0200)]
Version 1.3.38

12 years agoUpdate NEWS
Adam Dickmeiss [Wed, 4 Jul 2012 12:13:07 +0000 (14:13 +0200)]
Update NEWS

12 years agoWait for MP to terminate on SIGUSR1 in Deb init.d
Adam Dickmeiss [Wed, 4 Jul 2012 12:06:33 +0000 (14:06 +0200)]
Wait for MP to terminate on SIGUSR1 in Deb init.d

12 years agometaproxy.init: wait for MP to stop on SIGUSR1
Adam Dickmeiss [Wed, 4 Jul 2012 12:03:12 +0000 (12:03 +0000)]
metaproxy.init: wait for MP to stop on SIGUSR1

Unfortunately, killproc utility silently ignores option -d when
a any user signal is given, so we have to wait ourselves for the
process to terminate.

12 years agoPostpone yaz_daemon_stop until out of router loop
Adam Dickmeiss [Wed, 4 Jul 2012 10:59:56 +0000 (12:59 +0200)]
Postpone yaz_daemon_stop until out of router loop

12 years agoOne line log: log HTTP as well
Adam Dickmeiss [Wed, 4 Jul 2012 08:55:59 +0000 (10:55 +0200)]
One line log: log HTTP as well

12 years agoquote addinfo in log for access log
Adam Dickmeiss [Wed, 4 Jul 2012 08:21:12 +0000 (10:21 +0200)]
quote addinfo in log for access log

12 years agoOne line log: quote addinfo, log record syntax
Adam Dickmeiss [Wed, 4 Jul 2012 08:20:31 +0000 (10:20 +0200)]
One line log: quote addinfo, log record syntax

12 years agoRequire yazpp 1.3.1 due to new processEvent behavior
Adam Dickmeiss [Tue, 3 Jul 2012 13:33:04 +0000 (15:33 +0200)]
Require yazpp 1.3.1 due to new processEvent behavior

12 years agoUsing line log
Adam Dickmeiss [Tue, 3 Jul 2012 13:32:39 +0000 (15:32 +0200)]
Using line log

12 years agorpn2cql in config zoom example
Adam Dickmeiss [Tue, 3 Jul 2012 10:55:59 +0000 (12:55 +0200)]
rpn2cql in config zoom example

12 years agoUse base path for resolving rpn2cql file name.
Adam Dickmeiss [Tue, 3 Jul 2012 10:54:46 +0000 (12:54 +0200)]
Use base path for resolving rpn2cql file name.

12 years agozoom: update schema for new element rpn2cql
Adam Dickmeiss [Tue, 3 Jul 2012 10:54:09 +0000 (12:54 +0200)]
zoom: update schema for new element rpn2cql

12 years agofilter log: update schema for category "line"
Adam Dickmeiss [Tue, 3 Jul 2012 10:53:16 +0000 (12:53 +0200)]
filter log: update schema for category "line"

12 years agoAllow rpn2cql properties to be given
Adam Dickmeiss [Tue, 3 Jul 2012 10:42:12 +0000 (12:42 +0200)]
Allow rpn2cql properties to be given

This is done in per-target, by element <rpn2cql> with content
being pqf.properties filename.

12 years agoOne line log: all APDU names logged
Adam Dickmeiss [Tue, 3 Jul 2012 10:16:07 +0000 (12:16 +0200)]
One line log: all APDU names logged

12 years agoAvoid memory management in FrontendNet::stop
Adam Dickmeiss [Mon, 2 Jul 2012 13:53:02 +0000 (15:53 +0200)]
Avoid memory management in FrontendNet::stop

Using free in a signal handler may cause a dead lock.. This patch
makes the stop handler set a stop flag and do "stop listening" work
in main thread.

12 years agoOne line log: scan, init
Adam Dickmeiss [Mon, 2 Jul 2012 12:23:24 +0000 (14:23 +0200)]
One line log: scan, init

12 years agoStart work on 1line log (ala GFS)
Adam Dickmeiss [Fri, 29 Jun 2012 12:50:51 +0000 (14:50 +0200)]
Start work on 1line log (ala GFS)

12 years agoDont overwrite package.request
Adam Dickmeiss [Fri, 29 Jun 2012 12:49:48 +0000 (14:49 +0200)]
Dont overwrite package.request

12 years agoVersion 1.3.37 v1.3.37
Adam Dickmeiss [Fri, 1 Jun 2012 09:28:49 +0000 (11:28 +0200)]
Version 1.3.37

12 years agoUpdate NEWS
Adam Dickmeiss [Fri, 1 Jun 2012 09:25:13 +0000 (11:25 +0200)]
Update NEWS

12 years agoDocument frontend_net's: message, stat-req
Adam Dickmeiss [Fri, 1 Jun 2012 09:21:18 +0000 (11:21 +0200)]
Document frontend_net's: message, stat-req

12 years agofrontend_net: report threads in use; fix XML header
Adam Dickmeiss [Fri, 1 Jun 2012 09:14:11 +0000 (11:14 +0200)]
frontend_net: report threads in use; fix XML header

12 years agoAdd ThreadPoolSocketObserver::get_thread_info
Adam Dickmeiss [Fri, 1 Jun 2012 09:13:39 +0000 (11:13 +0200)]
Add ThreadPoolSocketObserver::get_thread_info

12 years agoUpdate doc/common
Adam Dickmeiss [Wed, 30 May 2012 12:39:07 +0000 (14:39 +0200)]
Update doc/common

12 years agoUpdate referral to libyazpp dev.
Adam Dickmeiss [Tue, 29 May 2012 12:51:28 +0000 (14:51 +0200)]
Update referral to libyazpp dev.

12 years agofrontend_net: report min, max, average response times
Adam Dickmeiss [Tue, 29 May 2012 12:21:36 +0000 (14:21 +0200)]
frontend_net: report min, max, average response times

12 years agofrontend_net: report stuff to helper method
Adam Dickmeiss [Fri, 25 May 2012 12:16:31 +0000 (14:16 +0200)]
frontend_net: report stuff to helper method

12 years agofrontend_net: add facility to log response times
Adam Dickmeiss [Fri, 25 May 2012 12:07:14 +0000 (14:07 +0200)]
frontend_net: add facility to log response times

New frontend_net setting, stat-req, specifies HTTP path that triggers
the generation of the report that includes distribution of response
times and total requests.

12 years agofrontend_net: refactor and use Rep class in helpers
Adam Dickmeiss [Fri, 25 May 2012 10:59:20 +0000 (12:59 +0200)]
frontend_net: refactor and use Rep class in helpers

12 years agofrontend_net: refactor scope of helper classes
Adam Dickmeiss [Fri, 25 May 2012 10:38:34 +0000 (12:38 +0200)]
frontend_net: refactor scope of helper classes

12 years agoDebian: remove pidfile in metaproxy reload process
Adam Dickmeiss [Fri, 25 May 2012 08:38:47 +0000 (10:38 +0200)]
Debian: remove pidfile in metaproxy reload process

12 years agoDon't display start log message when config testing (-t)
Adam Dickmeiss [Thu, 24 May 2012 10:39:43 +0000 (12:39 +0200)]
Don't display start log message when config testing (-t)

12 years agoFix reload problem in init.d script for RPM
Adam Dickmeiss [Thu, 24 May 2012 06:46:36 +0000 (08:46 +0200)]
Fix reload problem in init.d script for RPM

The '/etc/init.d/metaproxy reload' in some cases would stop and
not start metaproxy - effectively stopping the service.

12 years agozoom: use WRBUF for CCL buffer
Adam Dickmeiss [Mon, 21 May 2012 13:24:47 +0000 (15:24 +0200)]
zoom: use WRBUF for CCL buffer

12 years agoVersion 1.3.36 v1.3.36
Adam Dickmeiss [Thu, 10 May 2012 12:43:58 +0000 (14:43 +0200)]
Version 1.3.36

12 years agoUpdate NEWS
Adam Dickmeiss [Thu, 10 May 2012 12:42:45 +0000 (14:42 +0200)]
Update NEWS

12 years agoReformat
Adam Dickmeiss [Thu, 10 May 2012 12:39:54 +0000 (14:39 +0200)]
Reformat

12 years agoLog XML errors to yaz_log; not to stdout/stderr
Adam Dickmeiss [Thu, 10 May 2012 12:37:51 +0000 (14:37 +0200)]
Log XML errors to yaz_log; not to stdout/stderr

12 years agoDeb init.d script implements 'reload' using SIGUSR1
Adam Dickmeiss [Thu, 10 May 2012 11:55:25 +0000 (13:55 +0200)]
Deb init.d script implements 'reload' using SIGUSR1

12 years agoRPM logrotate uses reload
Adam Dickmeiss [Thu, 10 May 2012 10:59:45 +0000 (12:59 +0200)]
RPM logrotate uses reload

12 years agoRPM init.d script implements 'reload' using SIGUSR1
Adam Dickmeiss [Thu, 10 May 2012 10:59:03 +0000 (12:59 +0200)]
RPM init.d script implements 'reload' using SIGUSR1

12 years agoVersion 1.3.35 v1.3.35
Adam Dickmeiss [Wed, 9 May 2012 13:58:09 +0000 (15:58 +0200)]
Version 1.3.35

12 years agoIDMETA: add centos5
Adam Dickmeiss [Wed, 9 May 2012 13:54:43 +0000 (15:54 +0200)]
IDMETA: add centos5

12 years agoNote on NEWS
Adam Dickmeiss [Wed, 9 May 2012 13:52:30 +0000 (15:52 +0200)]
Note on NEWS

12 years agoRequire YAZ 4.2.33 due to new yaz_daemon_stop
Adam Dickmeiss [Wed, 9 May 2012 13:32:20 +0000 (15:32 +0200)]
Require YAZ 4.2.33 due to new yaz_daemon_stop

12 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Wed, 9 May 2012 10:58:36 +0000 (12:58 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

Conflicts:
src/metaproxy_prog.cpp

12 years agoFixes for Windows compilation
Adam Dickmeiss [Wed, 9 May 2012 10:57:23 +0000 (12:57 +0200)]
Fixes for Windows compilation

12 years agoUse yaz_daemon_stop for graceful stop
Adam Dickmeiss [Wed, 9 May 2012 10:23:47 +0000 (12:23 +0200)]
Use yaz_daemon_stop for graceful stop

12 years agometaproxy: kill children too upon SIGUSR1 exit
Adam Dickmeiss [Thu, 3 May 2012 14:41:38 +0000 (16:41 +0200)]
metaproxy: kill children too upon SIGUSR1 exit

12 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Tue, 1 May 2012 10:22:06 +0000 (12:22 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

12 years agoBuild for Ubuntu precise, no build for maverick
Adam Dickmeiss [Tue, 1 May 2012 10:22:04 +0000 (12:22 +0200)]
Build for Ubuntu precise, no build for maverick

12 years agovirt_db: return other diagnostic if init is rejected
Adam Dickmeiss [Mon, 30 Apr 2012 10:14:06 +0000 (12:14 +0200)]
virt_db: return other diagnostic if init is rejected

Diagnostic 236: "Access to specified database denied" is returned,
but only if init response from backend does not carry diagnostics
aleady.

12 years agomulti: relays user info for first rejected target
Adam Dickmeiss [Mon, 30 Apr 2012 09:39:20 +0000 (11:39 +0200)]
multi: relays user info for first rejected target

The other-information field for init response for first rejected target
is in common init response. This ensures that some backend init
diagnostics are returned to the frontend.

12 years agoz3950_client: fixup addinfo for init response
Adam Dickmeiss [Mon, 30 Apr 2012 09:38:35 +0000 (11:38 +0200)]
z3950_client: fixup addinfo for init response

12 years agoChange start log message to 'metaproxy start'
Adam Dickmeiss [Thu, 26 Apr 2012 08:58:32 +0000 (10:58 +0200)]
Change start log message to 'metaproxy start'

Was 'Metaproxy start' before. Consistent with 'metaproxy stop'
message.

12 years agozoom: document zoom's proxy_timeout
Adam Dickmeiss [Thu, 26 Apr 2012 08:53:25 +0000 (10:53 +0200)]
zoom: document zoom's proxy_timeout

12 years agoVersion 1.3.34 v1.3.34
Adam Dickmeiss [Wed, 25 Apr 2012 16:53:10 +0000 (18:53 +0200)]
Version 1.3.34

12 years agoRPM/Deb metaproxy.xml enables frontend_net logging
Adam Dickmeiss [Wed, 25 Apr 2012 16:49:30 +0000 (18:49 +0200)]
RPM/Deb metaproxy.xml enables frontend_net logging

Enable frontend_net logging by default and remove the log filter.
Because the frontend_net filter already logs incoming request.

12 years agoMerge remote branch 'origin/frontend_log'
Adam Dickmeiss [Wed, 25 Apr 2012 16:46:22 +0000 (18:46 +0200)]
Merge remote branch 'origin/frontend_log'

12 years agozoom: use other diagnostic if Torus server is unavailable
Adam Dickmeiss [Wed, 25 Apr 2012 14:19:41 +0000 (16:19 +0200)]
zoom: use other diagnostic if Torus server is unavailable

12 years agozoom config example: use frontend_net for logging
Adam Dickmeiss [Wed, 25 Apr 2012 13:02:53 +0000 (15:02 +0200)]
zoom config example: use frontend_net for logging

12 years agoenables frontend_net log
Adam Dickmeiss [Wed, 25 Apr 2012 13:02:44 +0000 (15:02 +0200)]
enables frontend_net log

12 years agofrontent_net: does "access" log if message is configured
Adam Dickmeiss [Wed, 25 Apr 2012 13:02:18 +0000 (15:02 +0200)]
frontent_net: does "access" log if message is configured

The filter only logged thread usage upon completion. It also now
logs incoming request ala "access" in the log filter.

12 years agoRPM: metaproxy libs depend on yazpp 1.3.0, yaz 4.2.32
Adam Dickmeiss [Wed, 25 Apr 2012 12:00:36 +0000 (14:00 +0200)]
RPM: metaproxy libs depend on yazpp 1.3.0, yaz 4.2.32

12 years agozoom: check for valid proxy from Torus too
Adam Dickmeiss [Wed, 25 Apr 2012 11:58:17 +0000 (13:58 +0200)]
zoom: check for valid proxy from Torus too