fhirbase / fhirbase-plv8

[DEPRECATED] Fhirbase 2.0 is an FHIR relational storage
https://health-samurai.io/fhirbase
Other
105 stars 39 forks source link

NPE while processing malformed transaction #133

Open draakhan opened 8 years ago

draakhan commented 8 years ago

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;
niquola commented 8 years ago

Thx, we have to validate it little bit ;)