Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't use read and compartment search in same provider #242
I'm trying to create a resource provider with a read and with compartment searches, but I can't get it to work. I can get either to work by itself, but the server seems to pick the wrong method when I try to support both. This is my provider:
This is my client code:
It calls this URL like I expected:
But the server output shows that it entered the read method instead of the compartment search:
And the client gets this error:
Am I doing something wrong, or is there a bug causing the server to pick the wrong method to handle the request?
That's a good question about the order of the two methods. I actually first noticed this issue weeks ago, and I decided to switch the order at that time. It did work for me after that. But I just noticed today that it was no longer working. I'm not sure what I changed to cause that. I upgraded to HAPI FHIR 1.2 (DSTU2 QA) a few weeks ago. Maybe today was the first time that I tried running the server since then, so that might be why it's not working for me now. Maybe something changed in 1.2.
Anyway, I tried switching the order again today, and it's still not working for me. So changing the order of the methods used to work for me. Now I'm having this issue either way.