From: Zdeněk Salvet Date: Thu, 29 Jul 2010 07:37:48 +0000 (+0000) Subject: Fix jobid detection in HTTP GET requests. X-Git-Tag: glite-lb-client-java_R_1_0_4_2~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ecb9999f7f5efee53ac175402d85c534be1fba4d;p=jra1mw.git Fix jobid detection in HTTP GET requests. --- diff --git a/org.glite.lb.server/src/lb_proto.c b/org.glite.lb.server/src/lb_proto.c index adf01d9..8dc453a 100644 --- a/org.glite.lb.server/src/lb_proto.c +++ b/org.glite.lb.server/src/lb_proto.c @@ -671,10 +671,11 @@ edg_wll_ErrorCode edg_wll_Proto(edg_wll_Context ctx, /* GET /[jobId]: Job Status */ else if (*requestPTR=='/' - && strncmp(requestPTR, "/RSS", strlen("/RSS")) - && strncmp(requestPTR, "/NOTIF", strlen("/NOTIF")) - && *(requestPTR+strlen("/NOTIF")-1) != ':' - && !isspace(*(requestPTR+strlen("/NOTIF")-1))) { + && strncmp(requestPTR, "/RSS:", strlen("/RSS:")) + && ( strncmp(requestPTR, "/NOTIF", strlen("/NOTIF")) + || *(requestPTR+strlen("/NOTIF")) != ':' + && !isspace(*(requestPTR+strlen("/NOTIF")))) + ) { edg_wlc_JobId jobId = NULL; char *pom1,*fullid = NULL; edg_wll_JobStat stat;