# HG changeset patch # User Olaf Wintermann # Date 1667317991 -3600 # Node ID e0e0754efd4687b559d92226694c1b8cc45b286d # Parent 0f678595d4975a13eb28ea1ff0480f0a5d624515 add vfs support to find_index diff -r 0f678595d497 -r e0e0754efd46 src/server/safs/pathcheck.c --- a/src/server/safs/pathcheck.c Tue Nov 01 16:40:03 2022 +0100 +++ b/src/server/safs/pathcheck.c Tue Nov 01 16:53:11 2022 +0100 @@ -141,6 +141,15 @@ return REQ_ABORTED; } + // only find index for GET requests + // maybe we want to support find-index for other methods, in that case + // we should implement a parameter for this + char *method = pblock_findkeyval(pb_key_method, rq->reqpb); + if(strcmp(method, "GET")) { + return REQ_NOACTION; + } + + VFSContext *vfs = vfs_request_context(sn, rq); int ret = REQ_NOACTION; char *path = pblock_findkeyval(pb_key_path, rq->vars); @@ -150,7 +159,7 @@ for(int i=0;i