You are not logged in.
If I build and run the MVCServer example project in ex\mvc-blog and send a PATCH request to http://localhost:8092/blog/mvc-info, I get an access violation in TRestRouter.Lookup in mormot.rest.server:
// find the matching node in the URI Radix Tree
result := nil;
if (self = nil) or
(Ctxt = nil) or
(Ctxt.Call^.Url = '') or
(Ctxt.Method < low(fTree)) or
(Ctxt.Method > high(fTree)) then
exit;
p := pointer(Ctxt.Call^.Url);
if p^ = '/' then
inc(p);
result := pointer((fTree[Ctxt.Method].Root as TRestTreeNode).Lookup(p, Ctxt)); //<-- AV here.
Target: Win32
Configuration: Debug
OS: Windows 10.
Last edited by stuart (2023-03-06 14:15:49)
Offline
You are right.
Please try with https://github.com/synopse/mORMot2/commit/d966aa17
Offline
Excellent, that's fixed it, thanks!
Offline