From 7bb5c9856ac7144060330e557bf4b124764fc2e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Fri, 12 Aug 2005 14:33:49 +0000 Subject: [PATCH] convert tag values properly --- org.glite.jp.primary/src/soap_ops.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/org.glite.jp.primary/src/soap_ops.c b/org.glite.jp.primary/src/soap_ops.c index 8095810..33971f0 100644 --- a/org.glite.jp.primary/src/soap_ops.c +++ b/org.glite.jp.primary/src/soap_ops.c @@ -180,7 +180,15 @@ SOAP_FMAC5 int SOAP_FMAC6 __jpsrv__RecordTag( file_be = file_p = NULL; attr[0].name = in->tag->name; - attr[0].value = in->tag->value; + if (in->tag->value->string) { + attr[0].value = in->tag->value->string; + attr[0].binary = 0; + } + else { + attr[0].value = in->tag->value->blob->__ptr; + attr[0].size = in->tag->value->blob->__size; + attr[0].binary = 1; + } attr[0].origin = GLITE_JP_ATTR_ORIG_USER; attr[0].timestamp = time(NULL); attr[0].origin_detail = NULL; /* XXX */ -- 1.8.2.3