Comments (5)
Ah, yes. Thank you for calling this out Emil. Currently we're doing a string match when searching for date values, which is why this occurs. We need to update our code to fully support searching by dates. I'll add this Bug to our backlog.
By the way, what version of FWoA are you running? When I ran the code from this version, with an invalid _lastUpdated
search param it responds with a 200 HTTP status.
from fhir-works-on-aws-search-es.
Hi @nguyen102 we're using an alternate deployment repo, so unfortunately I can't point directly to a link that shows all the versions, but here they are (on the left are our tags, on the right your tags/commit hashes):
fhir-works-on-aws-interface 21.2.1 -> v7.1.0
fhir-works-on-aws-routing 21.2.1 -> v4.0.3
fhir-works-on-aws-authz-smart 21.2.1 -> v0.1.2
fhir-works-on-aws-persistence-ddb 21.2.2 -> v3.2.1
fhir-works-on-aws-search-es 21.2.2 -> v2.1.0
We also have a slightly different implementation of the the SMARTHandler
, it's possible that this 403 HTTP status is coming from that code instead of the search service. I can track that down further, if you think the expected behavior here is a non-error response from the search service.
from fhir-works-on-aws-search-es.
Looks like you have the latest released version of search service. And yep, I can confirm that no error is thrown by search service when an invalid search parameter value is provided.
from fhir-works-on-aws-search-es.
@nguyen102 looks like this other issue is related if not the same: #17
Does this mean that the ES service should return a 400 now instead?
from fhir-works-on-aws-search-es.
Ah that issue is slightly different. Search will return a 400 if we're trying to search on a field that doesn't exist. For example if we search ?foo=1234
that will throw an error. In this case though, we're searching on an invalid date value for a valid search parameter (?_lastUpdated=foo
), which will return in a 200 (with no results).
from fhir-works-on-aws-search-es.
Related Issues (20)
- [Feature Request] Support chained parameters in search HOT 4
- [Feature Request] support both [type]/[id] and [id] when searching by reference HOT 8
- [Feature Request] Contains search support HOT 1
- [Misc] Search sorting and score HOT 1
- [Bug] Paged results not returning the same result set HOT 1
- Support SearchParameter with ".extension()" in expression HOT 3
- [Bug] chained parameters search returns all Resources HOT 4
- [Bug] revInclude on a resource only returns a max of 10 records HOT 3
- Chained search parameters should resolve to exactly one resource type HOT 2
- include/revinclude parameters are not strictly validated HOT 4
- [Feature Request]Support for "prefer" header HOT 3
- [Feature Request] Allow Binary Search to place a "presignedGetUrl" or return object within "data" section HOT 1
- [Misc] token search parameter use of multi_match HOT 2
- [Feature Request] Allow the max chained param result size to be configurable HOT 3
- [Misc] Construction of Wildcard Query on String with ":contains" modifier. HOT 3
- [Bug] QuestionnaireResponse search: Questionnaire query parameter results in empty searchset HOT 1
- [Feature Request] generate schema mapping from implementation guides HOT 2
- Specify operator for multi-filter match queries HOT 1
- [Bug] Issue using _include with location HOT 2
- Issue Searching Resource by multiple identifiers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fhir-works-on-aws-search-es.