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

Runtime Error When Unmarking Production Endpoint and Disabling Security on API Resource #3294

Open
kingsavatar28 opened this issue Oct 22, 2024 · 0 comments

Comments

@kingsavatar28
Copy link

Description

Hello team,

We have encountered an unexpected behavior when unmarking the Production endpoint and attempting to access a Resource with the Security toggle disabled. This action results in the following 403 Forbidden response, regardless of whether the Authentication header is provided:

{
  "code": "900901",
  "type": "Status report",
  "message": "Runtime Error",
  "description": "Production key offered to the API with no production endpoint"
}

Steps to Reproduce

Enter the Publisher Portal

  1. Deploy the PizzaShack API

  2. Navigate to the: PizzaShack API details --> API Configurations --> Resources --> Open the /menuresource --> Disable the Security toggle

  3. Navigate to the: PizzaShack API details --> API Configurations --> Endpoints --> Unmark the Production Endpoint

  4. Save and Deploy

  5. Enter the Devportal

  6. Try Out the PizzaShack API marking Sandbox as the Key Type

  7. Invoke the /menu resource

Expected Behavior
Invoking the /menu endpoint with the Sandbox key type should proceed without errors, provided that the Sandbox endpoint is correctly configured.

Actual Behavior
Invoking the /menu resource under the described conditions results in a runtime error indicating that a production key was offered without an available production endpoint.

Affected Component

APIM

Version

4.2

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants