Giter Club home page Giter Club logo

Comments (5)

nguyen102 avatar nguyen102 commented on June 16, 2024

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.

emilhdiaz avatar emilhdiaz commented on June 16, 2024

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.

nguyen102 avatar nguyen102 commented on June 16, 2024

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.

emilhdiaz avatar emilhdiaz commented on June 16, 2024

@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.

nguyen102 avatar nguyen102 commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.