AV when accessing http://localhost:8099/odata/$metadata

Hello,

With the latest version 10.0.0.1611, I can’t access ODATA metadata like
http://localhost:8099/odata/$metadata
http://localhost:8099/odata/

I have attached a simple project.

Best regards,
Tiberiu Stoicescu
TestDataAbstract.zip (218.6 KB)

Hi,

this AV is reproduced only with FastMM5.

pls update uDAODataDispatcher.pas.
Comment/remove if block at 746 line, like

        else {if (lstr[i] = id_ContentType_text_plain) then} begin
(*       if Assigned(aRec^.lQuery) then begin  //<<<<<<<<<<<<<<<<updated
            if(aRec^.lQuery.Field = odata_count) then begin
              aRec^.lRequestType := odfPlain;
              Exit;
            end;
          end
          else *) begin                        //<<<<<<<<<<<<<<<<updated

Logged as bugs://D19530.

bugs://D19530 was closed as fixed.