From 3fbd2beb5c41de39604f27b39a9461335b2b176b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 15 Jan 2007 13:01:26 +0000 Subject: [PATCH] Fixed bug #815: Extended Services "delete" requires a dummy "record" to be set. The fix, surprisingly, is to allow SUTRS for "update". The problem is that Z39.50 mandates that *some* record to be sent (including the case where a record is to be deleted by ID). However, ZOOM-C sends a "void" SUTRS record in this case.. This record is not parsed by the server. --- index/zebrasrv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index/zebrasrv.c b/index/zebrasrv.c index 613febb..44aa4a1 100644 --- a/index/zebrasrv.c +++ b/index/zebrasrv.c @@ -1,4 +1,4 @@ -/* $Id: zebrasrv.c,v 1.3 2006-12-05 09:26:37 adam Exp $ +/* $Id: zebrasrv.c,v 1.4 2007-01-15 13:01:26 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -630,7 +630,8 @@ int bend_esrequest (void *handle, bend_esrequest_rr *rr) rec->u.octet_aligned->len, rec->u.octet_aligned->buf); } - if (oident && oident->value != VAL_TEXT_XML) + if (oident && oident->value != VAL_TEXT_XML + && oident->value != VAL_SUTRS) { rr->errcode = YAZ_BIB1_ES_IMMEDIATE_EXECUTION_FAILED; rr->errstring = "only XML update supported"; -- 1.7.10.4