metaproxy-moved-to-github.git
10 years agoDon't call filter destructors on SIGTERM CP-3770 cp-3770
Adam Dickmeiss [Tue, 22 Apr 2014 19:05:41 +0000 (21:05 +0200)]
Don't call filter destructors on SIGTERM CP-3770

10 years agoBuild packages for Ubuntu Trusty Tahr 14.04 LTS
Adam Dickmeiss [Tue, 22 Apr 2014 15:24:56 +0000 (17:24 +0200)]
Build packages for Ubuntu Trusty Tahr 14.04 LTS

10 years agoDocument z3950_client's client_ip configuration
Adam Dickmeiss [Wed, 16 Apr 2014 13:19:37 +0000 (15:19 +0200)]
Document z3950_client's client_ip configuration

10 years agoFix 'some man pages missing' MP-542
Adam Dickmeiss [Wed, 16 Apr 2014 13:17:49 +0000 (15:17 +0200)]
Fix 'some man pages missing' MP-542

10 years agosort: Fix crash/invalid memory reference MP-541
Adam Dickmeiss [Tue, 15 Apr 2014 14:18:47 +0000 (16:18 +0200)]
sort: Fix crash/invalid memory reference MP-541

10 years agozoom: use thread-safe RPN to CQL/Solr conversion MP-497
Adam Dickmeiss [Fri, 11 Apr 2014 20:09:03 +0000 (22:09 +0200)]
zoom: use thread-safe RPN to CQL/Solr conversion MP-497

10 years agoBase wrbuf.c_str_null on wrbuf_cstr_null
Adam Dickmeiss [Fri, 11 Apr 2014 09:04:39 +0000 (11:04 +0200)]
Base wrbuf.c_str_null on wrbuf_cstr_null

10 years agoAdd wrbuf.c_str() and wrbuf.c_str_null()
Adam Dickmeiss [Fri, 11 Apr 2014 08:49:03 +0000 (10:49 +0200)]
Add wrbuf.c_str() and wrbuf.c_str_null()

10 years agorpn_cql: allow conversion from RPN to CQL MP-537
Adam Dickmeiss [Wed, 9 Apr 2014 13:24:57 +0000 (15:24 +0200)]
rpn_cql: allow conversion from RPN to CQL MP-537

This is achived by existing filter rpn_cql and using reverse="true"
for conversion element.

10 years agosru_z3950: facet should be stored in additionalSearchInfo MP-533
Adam Dickmeiss [Wed, 2 Apr 2014 18:32:43 +0000 (20:32 +0200)]
sru_z3950: facet should be stored in additionalSearchInfo MP-533

10 years agoVersion 1.4.8 v1.4.8
Adam Dickmeiss [Wed, 2 Apr 2014 10:02:45 +0000 (12:02 +0200)]
Version 1.4.8

10 years agoUpd NEWS
Adam Dickmeiss [Wed, 2 Apr 2014 10:02:08 +0000 (12:02 +0200)]
Upd NEWS

10 years agoMerge branch 'mp-532'
Adam Dickmeiss [Wed, 2 Apr 2014 09:48:51 +0000 (09:48 +0000)]
Merge branch 'mp-532'

10 years agosru_z3950: fix facet response (memory corruption) MP-532
Adam Dickmeiss [Wed, 2 Apr 2014 09:46:35 +0000 (09:46 +0000)]
sru_z3950: fix facet response (memory corruption) MP-532

10 years agolog: fix crash idPass user is omitted MP-530
Adam Dickmeiss [Mon, 31 Mar 2014 17:35:05 +0000 (19:35 +0200)]
log: fix crash idPass user is omitted MP-530

10 years agoVersion 1.4.7 v1.4.7
Adam Dickmeiss [Tue, 25 Mar 2014 09:00:44 +0000 (10:00 +0100)]
Version 1.4.7

10 years agoquery_rewrite: pass-thru non Type-1 queries MP-527
Adam Dickmeiss [Tue, 25 Mar 2014 08:46:43 +0000 (09:46 +0100)]
query_rewrite: pass-thru non Type-1 queries MP-527

10 years agoSIGTERM: kill all child processes immediately MP-525
Adam Dickmeiss [Mon, 24 Mar 2014 13:18:28 +0000 (14:18 +0100)]
SIGTERM: kill all child processes immediately MP-525

10 years agoVersion 1.4.6 v1.4.6
Adam Dickmeiss [Fri, 21 Mar 2014 15:40:15 +0000 (16:40 +0100)]
Version 1.4.6

10 years agoEnsure Metaproxy is using YAZ 5.0.21 or later
Adam Dickmeiss [Fri, 21 Mar 2014 15:38:31 +0000 (16:38 +0100)]
Ensure Metaproxy is using YAZ 5.0.21 or later

This is because YAZ 5.0.21 offers a new function
zget_AttributeList_use_string

10 years agohttp_file: only supports HTTP GET MP-523
Adam Dickmeiss [Fri, 21 Mar 2014 13:36:21 +0000 (14:36 +0100)]
http_file: only supports HTTP GET MP-523

10 years agosession_shared: shut down expire thread
Adam Dickmeiss [Thu, 20 Mar 2014 18:23:00 +0000 (19:23 +0100)]
session_shared: shut down expire thread

This ensures that expire thread is not running after destruction
and does bad memory references, etc.

10 years agofrontend_net: fix segfault on startup MP-524
Adam Dickmeiss [Wed, 19 Mar 2014 16:48:57 +0000 (17:48 +0100)]
frontend_net: fix segfault on startup MP-524

Would happen if MP was listening on multiple ports and one
of the ports was already in use (and MP would exit).

10 years agofrontend_net: fix memory leak
Adam Dickmeiss [Tue, 18 Mar 2014 14:01:07 +0000 (15:01 +0100)]
frontend_net: fix memory leak

This leak would occur if all sessions were in use and the input
queue was cleared when a client would close connection (socket).

10 years agoNMAKE: upd version
Adam Dickmeiss [Mon, 17 Mar 2014 11:29:28 +0000 (12:29 +0100)]
NMAKE: upd version

10 years agofrontend_net: fix compilation on Windows (SIGUSR1 does not exist)
Adam Dickmeiss [Mon, 17 Mar 2014 11:28:59 +0000 (12:28 +0100)]
frontend_net: fix compilation on Windows (SIGUSR1 does not exist)

10 years agoVersion 1.4.5 v1.4.5
Adam Dickmeiss [Fri, 14 Mar 2014 11:48:00 +0000 (12:48 +0100)]
Version 1.4.5

10 years agoChange include of thread.hpp
Adam Dickmeiss [Fri, 14 Mar 2014 11:46:07 +0000 (12:46 +0100)]
Change include of thread.hpp

Seems like we're hit by this bug
https://svn.boost.org/trac/boost/ticket/7979
on Debian jessie

10 years agoUse local skiplist MP-520
Heikki Levanto [Fri, 14 Mar 2014 09:46:27 +0000 (10:46 +0100)]
Use local skiplist  MP-520

10 years agohttp_client: x-forwarded-for controls X-Forwarded-For presence
Adam Dickmeiss [Thu, 6 Mar 2014 09:36:06 +0000 (10:36 +0100)]
http_client: x-forwarded-for controls X-Forwarded-For presence

If x-forwarded-for setting (boolean) is enabled, http_client will
generate an X-Forwarded-For header entry which includes existing
X-Forwarded-For (if any) and current peer address (immediate client
of Metaproxy). By default x-forwarded-for disabled and X-Forwarded-For
will not be generated.

10 years agoz3950_client: client_ip controls client-IP presence
Adam Dickmeiss [Thu, 6 Mar 2014 09:35:54 +0000 (10:35 +0100)]
z3950_client: client_ip controls client-IP presence

If client_ip setting (boolean) is enabled, z3950_client will
generate a client_ip OID as part of init request which includes
previous client_ip (if any) and current peer address (immediate
client of Metaproxy). By default client_ip is disabled and client_ip
will not be generated.

10 years agoHTTP X-Forwarded-For/Z39.50 Client-IP support
Adam Dickmeiss [Wed, 5 Mar 2014 17:22:23 +0000 (18:22 +0100)]
HTTP X-Forwarded-For/Z39.50 Client-IP support

virt_db, multi: relays Z39.50 client-IP.
sru_z3950: converts X-Forwarded-For header to Z39.50 client-IP.
zoom: uses Client-IP or origin address (prefer Client-IP).
frontend_net: Strips tcp: from peer address (so that it is no longer
printed and stripped in zoom filter).
z3950_client: builds client-IP list - combining immediate peer address
as returned by COMSTACK and existing client-IP list (if avaiable).
The Origin only printes first X-Forwarded address.

10 years agoVersion 1.4.4 v1.4.4
Adam Dickmeiss [Tue, 18 Feb 2014 08:20:59 +0000 (09:20 +0100)]
Version 1.4.4

10 years agoLog when SIG{TERM,USR1} is received ASAP MP-513
Adam Dickmeiss [Mon, 17 Feb 2014 09:46:39 +0000 (10:46 +0100)]
Log when SIG{TERM,USR1} is received ASAP MP-513

Do it in frontend_net event loop rather than in place for metaproxy
main, which only exits when all sessions are terminated for SIGUSR1
at graceful stop.

10 years agoAvoid yaz_log calls in signal handlers MP-513
Adam Dickmeiss [Fri, 14 Feb 2014 19:01:34 +0000 (20:01 +0100)]
Avoid yaz_log calls in signal handlers MP-513

10 years agometaproxy-config: quote some RHS values (that might include blanks)
Adam Dickmeiss [Fri, 7 Feb 2014 12:14:50 +0000 (13:14 +0100)]
metaproxy-config: quote some RHS values (that might include blanks)

10 years agoFix leak in sru_z3950 filter - when explain is returned MP-511
Adam Dickmeiss [Mon, 3 Feb 2014 12:39:26 +0000 (13:39 +0100)]
Fix leak in sru_z3950 filter - when explain is returned MP-511

10 years agoAllow stylesheet to be given for sru_z3950 filter MP-510
Adam Dickmeiss [Mon, 3 Feb 2014 12:31:43 +0000 (13:31 +0100)]
Allow stylesheet to be given for sru_z3950 filter MP-510

This is based on a patch by Sven Porst and the functionality
of the YAZ Generic Frontend Server.

10 years agoallow base attribute in configuration file tags
Sven-S. Porst [Wed, 5 Sep 2012 14:44:24 +0000 (16:44 +0200)]
allow base attribute in configuration file tags

the attributes are inserted by XInclude usage

as mentioned on yazlist: http://lists.indexdata.dk/pipermail/yazlist/2012-August/003531.html
and noted in a gist: https://gist.github.com/3551094

10 years agoRouter: use shared_ptr rather than naked one
Adam Dickmeiss [Mon, 13 Jan 2014 14:41:09 +0000 (15:41 +0100)]
Router: use shared_ptr rather than naked one

To avoid leak if an exception is thrown in configure.

10 years agozoom: sync up with Pazpar2 WRT authentication handling MP-492
Adam Dickmeiss [Mon, 13 Jan 2014 13:33:57 +0000 (14:33 +0100)]
zoom: sync up with Pazpar2 WRT authentication handling MP-492

10 years agoPackage metaproxy provides virtual package metaproxy6 MP-508
Adam Dickmeiss [Wed, 8 Jan 2014 08:51:20 +0000 (09:51 +0100)]
Package metaproxy provides virtual package metaproxy6 MP-508

This allows module packages to depend on a metaproxy server
with version 6 API.

10 years agoUpdate lib version for metaproxy from 5 to 6 MP-506
Adam Dickmeiss [Mon, 6 Jan 2014 12:23:38 +0000 (13:23 +0100)]
Update lib version for metaproxy from 5 to 6 MP-506

10 years agoHappy new year
Adam Dickmeiss [Thu, 2 Jan 2014 19:17:51 +0000 (20:17 +0100)]
Happy new year

Omit copyright year range from most source files. We don't want to
update them every year anymore.

10 years agoFilter destructors called upon daemon termination MP-505
Adam Dickmeiss [Thu, 2 Jan 2014 14:16:21 +0000 (15:16 +0100)]
Filter destructors called upon daemon termination MP-505

When metaproxy daemon receives SIGTERM the stop method of each filter
is called. The stop method existed before, but did not take any
arguements (void).. The frontend_net filter can now distinguish
between SIGUSR1 (stop bind, but keep sessions running) and SIGTERM
(stop immediately). Note that this changes the API+ABI of Metaproxy
filters.

10 years agoVersion 1.4.3 v1.4.3
Adam Dickmeiss [Tue, 10 Dec 2013 09:59:59 +0000 (10:59 +0100)]
Version 1.4.3

10 years agoAdd Debian jessie, Ubuntu raring+saucy
Adam Dickmeiss [Tue, 10 Dec 2013 09:45:58 +0000 (10:45 +0100)]
Add Debian jessie, Ubuntu raring+saucy

10 years agoAdd nocproxy=1 for contentConnector sessions MP-501
Adam Dickmeiss [Mon, 2 Dec 2013 14:03:42 +0000 (15:03 +0100)]
Add nocproxy=1 for contentConnector sessions MP-501

10 years agoDoc: mention proper versions; fix link to Boost win binaries
Adam Dickmeiss [Mon, 25 Nov 2013 11:45:33 +0000 (12:45 +0100)]
Doc: mention proper versions; fix link to Boost win binaries

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Mon, 25 Nov 2013 11:37:18 +0000 (12:37 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

10 years agoWin: update for Boost 1.55
Adam Dickmeiss [Mon, 25 Nov 2013 11:36:49 +0000 (12:36 +0100)]
Win: update for Boost 1.55

10 years agoWin: avoid warning when using boost::split
Adam Dickmeiss [Mon, 25 Nov 2013 09:59:13 +0000 (10:59 +0100)]
Win: avoid warning when using boost::split

Done by defining _SCL_SECURE_NO_WARNINGS for Visual Studio.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Mon, 25 Nov 2013 09:16:23 +0000 (10:16 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

10 years agoAdd const to Record less than operator in order to compile on OS X Mavericks
Dennis Schafroth [Sat, 23 Nov 2013 07:52:26 +0000 (08:52 +0100)]
Add const to Record less than operator in order to compile on OS X Mavericks

10 years agoFix LSB/HD conformance for /etc/init.d/metaproxy MP-500
Adam Dickmeiss [Mon, 18 Nov 2013 12:46:17 +0000 (13:46 +0100)]
Fix LSB/HD conformance for /etc/init.d/metaproxy MP-500

Debian: add support for /etc/init.d/metaproxy status

10 years agoVersion 1.4.2 v1.4.2
Adam Dickmeiss [Fri, 15 Nov 2013 19:31:27 +0000 (20:31 +0100)]
Version 1.4.2

10 years agodocument http_rewrite, present_chunk, sd_remove MP-468
Adam Dickmeiss [Fri, 15 Nov 2013 12:48:33 +0000 (13:48 +0100)]
document http_rewrite, present_chunk, sd_remove MP-468

10 years agoRename cql_rpn source
Adam Dickmeiss [Fri, 15 Nov 2013 10:20:25 +0000 (11:20 +0100)]
Rename cql_rpn source

10 years agoRequire yazpp 1.5.2 due to new RecordCache::add
Adam Dickmeiss [Thu, 14 Nov 2013 14:27:14 +0000 (15:27 +0100)]
Require yazpp 1.5.2 due to new RecordCache::add

10 years agoCall fixed RecordCache::add MP-499
Adam Dickmeiss [Thu, 14 Nov 2013 13:24:23 +0000 (14:24 +0100)]
Call fixed RecordCache::add MP-499

This ensures that proper comspec is used for cached records.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Thu, 7 Nov 2013 10:13:22 +0000 (11:13 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

10 years agoDeprecate piggyback function with regular ints
Adam Dickmeiss [Thu, 7 Nov 2013 10:12:24 +0000 (11:12 +0100)]
Deprecate piggyback function with regular ints

It may be harmful for large hit counts

10 years agoX-Metaproxy-SkipLink MP-479
Heikki Levanto [Mon, 4 Nov 2013 14:31:42 +0000 (15:31 +0100)]
X-Metaproxy-SkipLink MP-479

Filter_http_rewritwe Understands and respects the header (which will
normally come from the cproxy filter)

11 years agoVersion 1.4.1 v1.4.1
Adam Dickmeiss [Thu, 31 Oct 2013 10:07:40 +0000 (11:07 +0100)]
Version 1.4.1

11 years agoFix dependency for libmetaproxy5-devel MP-496
Adam Dickmeiss [Thu, 31 Oct 2013 10:02:25 +0000 (11:02 +0100)]
Fix dependency for libmetaproxy5-devel MP-496

11 years agosession_shared: remove log msg about backend classes
Adam Dickmeiss [Wed, 23 Oct 2013 12:48:45 +0000 (14:48 +0200)]
session_shared: remove log msg about backend classes

11 years agoVersion 1.4.0 v1.4.0
Adam Dickmeiss [Fri, 4 Oct 2013 12:23:19 +0000 (14:23 +0200)]
Version 1.4.0

11 years agoFix SEGV for decoding invalid SRU requests
Adam Dickmeiss [Wed, 2 Oct 2013 13:45:19 +0000 (15:45 +0200)]
Fix SEGV for decoding invalid SRU requests

Incorrect reference to union (was explain response rather than
search response).

11 years agoIgnore debian/dirs produced by building
Adam Dickmeiss [Wed, 2 Oct 2013 11:26:04 +0000 (13:26 +0200)]
Ignore debian/dirs produced by building

11 years agoRPM: fix require to libyaz5
Adam Dickmeiss [Wed, 2 Oct 2013 11:07:48 +0000 (13:07 +0200)]
RPM: fix require to libyaz5

11 years agouse yaz5, yazpp6 DLLs
Adam Dickmeiss [Wed, 2 Oct 2013 10:18:28 +0000 (12:18 +0200)]
use yaz5, yazpp6 DLLs

11 years agoUse libyazpp6, libyaz5 and provide libmetaproxy5
Adam Dickmeiss [Wed, 2 Oct 2013 09:21:53 +0000 (11:21 +0200)]
Use libyazpp6, libyaz5 and provide libmetaproxy5

11 years agoUpgrade to debhelper version 7
Adam Dickmeiss [Wed, 2 Oct 2013 08:41:32 +0000 (10:41 +0200)]
Upgrade to debhelper version 7

11 years agoDepend on YAZ 4.2.69 (z_get_HTTP_Response_server)
Adam Dickmeiss [Tue, 1 Oct 2013 08:01:31 +0000 (10:01 +0200)]
Depend on YAZ 4.2.69 (z_get_HTTP_Response_server)

11 years agoHTTP response with Metaproxy name and URL MP-493
Adam Dickmeiss [Tue, 24 Sep 2013 08:28:26 +0000 (10:28 +0200)]
HTTP response with Metaproxy name and URL MP-493

11 years agosession_shared: match additionalSearchInfo (includes facets)
Adam Dickmeiss [Fri, 20 Sep 2013 12:01:22 +0000 (14:01 +0200)]
session_shared: match additionalSearchInfo (includes facets)

11 years agosession_shared: relay facets for response
Adam Dickmeiss [Fri, 20 Sep 2013 09:14:39 +0000 (11:14 +0200)]
session_shared: relay facets for response

That is: everything in additionalSearchInfo.

11 years agosession_shared: relay facets for requests
Adam Dickmeiss [Thu, 19 Sep 2013 19:22:36 +0000 (21:22 +0200)]
session_shared: relay facets for requests

11 years agozoom: build Z_Facet structures by hand.
Adam Dickmeiss [Wed, 18 Sep 2013 13:21:45 +0000 (15:21 +0200)]
zoom: build Z_Facet structures by hand.

11 years agozoom: reset result set ptr to avoid option reading from it
Adam Dickmeiss [Wed, 18 Sep 2013 13:20:06 +0000 (15:20 +0200)]
zoom: reset result set ptr to avoid option reading from it

11 years agoRequire YAZ 4.2.67 due to yaz_facet_list_to_wrbuf
Adam Dickmeiss [Wed, 18 Sep 2013 12:48:39 +0000 (14:48 +0200)]
Require YAZ 4.2.67 due to yaz_facet_list_to_wrbuf

11 years agozoom: relay facets MP-490
Adam Dickmeiss [Wed, 18 Sep 2013 12:45:56 +0000 (14:45 +0200)]
zoom: relay facets MP-490

11 years agosru_z3950: relays facetList in otherInfo, additional info
Adam Dickmeiss [Thu, 12 Sep 2013 13:28:21 +0000 (15:28 +0200)]
sru_z3950: relays facetList in otherInfo, additional info

11 years agoVersion 1.3.62 v1.3.62
Adam Dickmeiss [Wed, 11 Sep 2013 10:58:02 +0000 (12:58 +0200)]
Version 1.3.62

11 years agoAvoid reference to attribute value (not being there)
Adam Dickmeiss [Wed, 11 Sep 2013 10:42:02 +0000 (12:42 +0200)]
Avoid reference to attribute value (not being there)

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy
Adam Dickmeiss [Wed, 11 Sep 2013 09:23:56 +0000 (11:23 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/metaproxy

11 years agoOdr_oct updates - YAZ 4 and 5.
Adam Dickmeiss [Wed, 11 Sep 2013 09:23:23 +0000 (11:23 +0200)]
Odr_oct updates - YAZ 4 and 5.

11 years agoLocal boost::smatch , MP-482
Adam Dickmeiss [Tue, 10 Sep 2013 18:52:03 +0000 (20:52 +0200)]
Local boost::smatch , MP-482

11 years agoCareful check of </script> termination
Adam Dickmeiss [Tue, 10 Sep 2013 12:18:54 +0000 (14:18 +0200)]
Careful check of </script> termination

11 years agoTry to reduce splitting of text nodes
Adam Dickmeiss [Tue, 10 Sep 2013 11:58:43 +0000 (13:58 +0200)]
Try to reduce splitting of text nodes

11 years agoNo-nest mode for script content in HTML parser MP-486
Adam Dickmeiss [Tue, 10 Sep 2013 11:43:27 +0000 (13:43 +0200)]
No-nest mode for script content in HTML parser MP-486

This is not to be confused with quoted-literal which says that
only things in quotes should be rewritten.

11 years agoRemove old header match code
Adam Dickmeiss [Tue, 10 Sep 2013 10:32:39 +0000 (12:32 +0200)]
Remove old header match code

11 years agobounce: don't use strdup for fixed length content
Adam Dickmeiss [Thu, 5 Sep 2013 12:50:07 +0000 (14:50 +0200)]
bounce: don't use strdup for fixed length content

Error occurred in echo mode.

11 years agosession_shared: expire backend class when no instances left
Adam Dickmeiss [Thu, 5 Sep 2013 09:29:41 +0000 (11:29 +0200)]
session_shared: expire backend class when no instances left

11 years agocql_rpn: use path for cql2rpn file MP-481
Adam Dickmeiss [Thu, 5 Sep 2013 08:42:33 +0000 (10:42 +0200)]
cql_rpn: use path for cql2rpn file MP-481

11 years agovirt_db: Fix leak of naked ptr
Adam Dickmeiss [Wed, 4 Sep 2013 13:39:20 +0000 (15:39 +0200)]
virt_db: Fix leak of naked ptr

11 years agoHandle SRU queryType (YAZ 5)
Adam Dickmeiss [Tue, 3 Sep 2013 13:51:53 +0000 (15:51 +0200)]
Handle SRU queryType (YAZ 5)

11 years agoVersion 1.3.61 v1.3.61
Adam Dickmeiss [Thu, 29 Aug 2013 14:36:17 +0000 (16:36 +0200)]
Version 1.3.61

11 years agoIgnore libmetaproxy4.dbg
Adam Dickmeiss [Fri, 23 Aug 2013 12:34:03 +0000 (14:34 +0200)]
Ignore libmetaproxy4.dbg

11 years agoAdd ports.d/routes.d to RPM dir
Adam Dickmeiss [Thu, 22 Aug 2013 11:58:28 +0000 (11:58 +0000)]
Add ports.d/routes.d to RPM dir