Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gateway] API Policy Path is not handled #2632

Closed
tnus opened this issue Sep 19, 2019 · 3 comments

Comments

@tnus
Copy link

commented Sep 19, 2019

Expected Behavior

In the design menu of an Api an additional path "/test" is added. A Mock Policy is added to this path which should return "test". To the root path a mock policy is added which returns "root".

When the api is called with the "/" path "root" should returned, if it is called with "/test" "test" should be returned.

Current Behavior

The api always returns "root", also when it is called with the "/test" path.

Possible Solution

Steps to Reproduce (for bugs)

  1. Go to design menu of an api
  2. Add the mock policy to the root path and put "root" in the content parameter
  3. Add a new path "/test"
  4. Add a new mock policy to the test path and put "test" in the content parameter

Context

I migrated from Gravitee 1.28 to 1.29 and now my existing apis are not working, because i use these path values.

Your Environment

  • Version used: 1.29.0
  • Browser Name and version: Google Chrome 76.0.3809.132
  • Operating System and version: Windows 10
    bug-gravitee-01
    bug-gravitee-02
@NicolasGeraud

This comment has been minimized.

Copy link
Member

commented Sep 19, 2019

hi @tnus
so you mean this works in 1.28 and not anymore in 1.29 ?

can you export your api and share it here ?

@tnus

This comment has been minimized.

Copy link
Author

commented Sep 19, 2019

Yes it worked in the version before (1.28.1). I just created a test api to reproduce it.

BUG-2632-1-0.zip

@tnus tnus closed this Sep 19, 2019
@tnus tnus reopened this Sep 19, 2019
@tnus

This comment has been minimized.

Copy link
Author

commented Sep 19, 2019

Used the wrong button, sorry for closing this issue. The bug still exists.

brasseld added a commit to gravitee-io/gravitee-gateway that referenced this issue Sep 19, 2019
brasseld added a commit to gravitee-io/gravitee-gateway that referenced this issue Sep 19, 2019
@brasseld brasseld self-assigned this Sep 19, 2019
@brasseld brasseld added the type: bug label Sep 19, 2019
@brasseld brasseld added this to the APIM - 1.29.1 milestone Sep 19, 2019
@brasseld brasseld changed the title API Policy Path is not handled [gateway] API Policy Path is not handled Sep 19, 2019
brasseld added a commit to gravitee-io/gravitee-gateway that referenced this issue Sep 19, 2019
NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
API Management
Awaiting triage
3 participants
You can’t perform that action at this time.