Commit 76103e22 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Fixed CASTOR-4863: Closure of transfer protocol not working

parent 4580a6cb
......@@ -81,7 +81,7 @@ BEGIN
-- do prechecks and get the service class
svcClassId := insertPreChecks(euid, egid, svcClassName, inReqType);
-- get the list of valid protocols
protocols := getConfigOption('Stager', 'Protocols', 'rfio|rfio3|gsiftp|xroot');
protocols := ' ' || getConfigOption('Stager', 'Protocols', 'rfio rfio3 gsiftp xroot') || ' ';
-- get unique ids for the request and the client and get current time
SELECT ids_seq.nextval INTO reqId FROM DUAL;
SELECT ids_seq.nextval INTO clientId FROM DUAL;
......@@ -120,7 +120,7 @@ BEGIN
-- Loop on subrequests
FOR i IN srFileNames.FIRST .. srFileNames.LAST LOOP
-- check protocol validity
IF INSTR(protocols, srProtocols(i)) = 0 THEN
IF INSTR(protocols, ' ' || srProtocols(i) || ' ') = 0 THEN
raise_application_error(-20122, 'Unsupported protocol in insertFileRequest : ' || srProtocols(i));
END IF;
-- get unique ids for the subrequest
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment