Commit ea39d0b7 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

CASTOR-4863: Closure of transfer protocol not working

Amended the fix to take into account clients that set an empty
protocol (yes, stager_put does that...), that was accepted so far.
parent e1e878a6
......@@ -183,8 +183,8 @@ BEGIN
SELECT svcHandler INTO svcHandler FROM Type2Obj WHERE type=inReqType;
-- Loop on subrequests
FOR i IN srFileNames.FIRST .. srFileNames.LAST LOOP
-- check protocol validity
IF INSTR(protocols, ' ' || srProtocols(i) || ' ') = 0 THEN
-- check protocol validity for Get/Update/Put requests only, for other requests the protocol is irrelevant
IF inReqType IN (35, 40, 44) AND INSTR(protocols, ' ' || srProtocols(i) || ' ') = 0 THEN
raise_application_error(-20122, 'Unsupported protocol in insertFileRequest : ' || srProtocols(i));
END IF;
-- get unique ids for the subrequest
......
......@@ -491,8 +491,8 @@ BEGIN
SELECT svcHandler INTO svcHandler FROM Type2Obj WHERE type=inReqType;
-- Loop on subrequests
FOR i IN srFileNames.FIRST .. srFileNames.LAST LOOP
-- check protocol validity
IF INSTR(protocols, ' ' || srProtocols(i) || ' ') = 0 THEN
-- check protocol validity for Get/Update/Put requests only, for other requests the protocol is irrelevant
IF inReqType IN (35, 40, 44) AND 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