diff --git a/libs/kns/http-file.c b/libs/kns/http-file.c index 66a12d141..ec199bf0d 100644 --- a/libs/kns/http-file.c +++ b/libs/kns/http-file.c @@ -1432,7 +1432,8 @@ static rc_t KNSManagerVMakeHttpFileIntUnstableImpl( const KNSManager *self, rc = RC ( rcNS, rcFile, rcOpening, rcFile, rcNotFound ); break; default: - rc = RC ( rcNS, rcFile, rcValidating, rcNoObj, rcEmpty ); + rc = RC ( rcNS, rcFile, rcOpening, rcFile, + rcUnexpected ); } if ( rc == 0 ) diff --git a/libs/vfs/resolver.c b/libs/vfs/resolver.c index 3be7014fc..9525b6192 100644 --- a/libs/vfs/resolver.c +++ b/libs/vfs/resolver.c @@ -1149,6 +1149,15 @@ rc_t VPathCheckFromNamesCGI ( const VPath * path, rcMessage, rcCorrupt); } else { + CONST_STRING(&req, "?debu"); + if (StringEqual(&name, &req)) { + String e; + CONST_STRING(&e, "g=not-found"); + if (!StringEqual(&val, &e)) + return RC(rcVFS, rcResolver, rcResolving, + rcMessage, rcCorrupt); + } + else { CONST_STRING(&req, "?pId="); if (!StringEqual(&name, &req)) return RC(rcVFS, rcResolver, rcResolving, @@ -1167,6 +1176,8 @@ rc_t VPathCheckFromNamesCGI ( const VPath * path, return RC(rcVFS, rcResolver, rcResolving, rcMessage, rcCorrupt); } + + } } } }