Skip to content

Resource load order generates unexpected behavior on the gateway #371

@geovanaSouza

Description

@geovanaSouza

Describe the bug
We had unexpected and intermittent behavior when registering two different operations for the same path.

We registered a GET operation for all API paths:
GET / **
And we register a second operation as POST for the same path:
POST / **

Some times we check that the gateway returned the message:
Request method 'POST' not supported

However, at other times the POST request was successfully processed.

We think this behavior may be related to the order that this setting is loaded on the gateway at the time of restart or reload of the settings.

We also noticed that even though heimdall returning 500 to the requesting client, the request was passed to the microservice behind the Gateway. We expected that the request should be stopped at the gateway with the error, not passed to the later layer. Is this the expected behavior?

To Reproduce
Steps to reproduce the behavior:

  1. Go to Resources
  2. Register an operation as GET to path /**
  3. Register an operation as POST to path /**
  4. Test the APIs and reload your gateway to simulate the intermitent behavior

Expected behavior
Allow both GET and POST for paths registered

Screenshots
Screenshot from 2019-12-04 13-48-38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions