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

Developer portal in "try mode" does not handle redirect policy correctly #2701

Open
Gaploid opened this issue Oct 19, 2024 · 0 comments
Open

Comments

@Gaploid
Copy link

Gaploid commented Oct 19, 2024

Bug description

Developer portal in "try mode" does not handle redirect policy correctly

Reproduction steps

  1. Create API
  2. add policy that will do redirect via: <return-response> <set-status code="303" reason="See Other" /> <set-header name="Location" exists-action="override"> <value>https://xxxxx.blob.core.windows.net/latest/yyyy.blob</value> </set-header> </return-response>
  3. go to developer portal and do "try it"
  4. See error## unable to complete the request Image

A clear and concise description of what you expected to happen.

Is self-hosted portal?

Yes and No

Additional context

This scenario is useful for creating an API on top of large blob objects (tens or hundreds of megabytes, or even gigabytes). The API management portal or API won’t be able to proxy such large files due to their size, but a redirect mechanism can handle it. The API policy generates a SAS URL to the blob storage and redirects the client. This works perfectly when tested via curl or even in the browser, but it fails in the developer portal. In the network section, you can see that the redirect occurs, but then it gets canceled.

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

No branches or pull requests

1 participant