Skip to content
Snippets Groups Projects
Commit cfb0ea89 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Backport: fixed CASTOR-4863: Closure of transfer protocol not working

parent b0a37998
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,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;
......@@ -184,7 +184,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment