projects
/
yazpp-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
509f0f1
)
Send diagnostic 7 for missing query
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 7 Jan 2004 22:19:05 +0000
(22:19 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 7 Jan 2004 22:19:05 +0000
(22:19 +0000)
src/yaz-proxy.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-proxy.cpp
b/src/yaz-proxy.cpp
index
febff85
..
bd8dee5
100644
(file)
--- a/
src/yaz-proxy.cpp
+++ b/
src/yaz-proxy.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-proxy.cpp,v 1.82 2004-01-07 21:29:26 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.83 2004-01-07 22:19:05 adam Exp $
*/
#include <assert.h>
*/
#include <assert.h>
@@
-1604,6
+1604,11
@@
void Yaz_Proxy::handle_incoming_HTTP(Z_HTTP_Request *hreq)
if (srw_req->query_type == Z_SRW_query_type_cql)
{
if (srw_req->query_type == Z_SRW_query_type_cql)
{
+ if (!srw_req->query.cql)
+ {
+ send_to_srw_client_error(7);
+ return;
+ }
Z_External *ext = (Z_External *)
odr_malloc(m_s2z_odr_search, sizeof(*ext));
ext->direct_reference =
Z_External *ext = (Z_External *)
odr_malloc(m_s2z_odr_search, sizeof(*ext));
ext->direct_reference =
@@
-1643,7
+1648,7
@@
void Yaz_Proxy::handle_incoming_HTTP(Z_HTTP_Request *hreq)
}
else
{
}
else
{
- send_to_srw_client_error(11);
+ send_to_srw_client_error(7);
return;
}
return;
}
@@
-1747,6
+1752,10
@@
void Yaz_Proxy::handle_incoming_HTTP(Z_HTTP_Request *hreq)
send_srw_explain();
return;
}
send_srw_explain();
return;
}
+ else
+ {
+ send_to_srw_client_error(4);
+ }
}
int len = 0;
Z_GDU *p = z_get_HTTP_Response(odr_encode(), 400);
}
int len = 0;
Z_GDU *p = z_get_HTTP_Response(odr_encode(), 400);