fhirbase/fhirbase-plv8

NPE while processing malformed transaction

draakhan opened this issue · 1 comments

Hi!

Missing request in transaction entry is intended. Tested on v1.3.0.22

fhirbase=# SELECT fhir_transaction('{"resourceType":"Bundle","type":"transaction","entry":[{"resource":{"resourceType":"Patient","active":true,"name":[{"family":["NameUpdated"]}]}}]}');
ERROR:  TypeError: Cannot read property 'url' of undefined
DETAIL:  plv8_init() LINE 6700:       url = entry.request.url;

Thx, we have to validate it little bit ;)