smart-classic / smart_server

SMArt Bootstrap Server
Apache License 2.0
22 stars 10 forks source link

Records search does not work #37

Closed p2 closed 12 years ago

p2 commented 12 years ago

This code in UI server:

params = None
record_rdf = api.call("GET", "/records/search", options={'parameters': params});

results in this call to the backend:

GET /records/search

and correctly returns all records.


This code in UI server:

params = {'family_name': 'Morgan'}
record_rdf = api.call("GET", "/records/search", options={'parameters': params});

executes on the backend:

GET /records/search?family_name=Morgan

and returns no records, despite there being an "Amy Morgan". Similarly:

params = {'family_name': 'M'}
record_rdf = api.call("GET", "/records/search", options={'parameters': params});

executes on the backend:

GET /records/search?family_name=M

and returns no records, although it should return all records that start with the letter "M".

jmandel commented 12 years ago

Fixed in https://github.com/chb/smart_server/commit/2bc72dc2c8309b575bdafacde0eddb2d7b298bb7