postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 839 forks source link

Error "405 method not allowed" on redirection when using Postman 10.6.7 #11560

Open nogueiraantonio opened 1 year ago

nogueiraantonio commented 1 year ago

Is there an existing issue for this?

Describe the Issue

The automatic update of Postman from 10.5.7 o 10.6.7 brought me an error with redirection during CAS authentication! When trying to authenticate using that protocol, and with the automatic redirection setting set, I get an error (405 - method not allowed) where I didn't had one before. If I switch off the automatic redirection, and follow the redirections manually, I do not get one.

Steps To Reproduce

Check video attached. It shows the error and the workaround with redirection switched off.

https://user-images.githubusercontent.com/8568502/208148643-f97d3246-b0fa-4b64-9d94-80641d4adf66.mp4

Screenshots or Videos

No response

Operating System

Windows 10 Pro N (21H2)

Postman Version

10.6.7

Postman Platform

Postman App

User Account Type

Signed Out User

Additional Context?

No response

codenirvana commented 1 year ago

@nogueiraantonio Thanks for reporting this issue. With the v10.6 release, the request method is persisted by default on redirects (i.e., redirecting with the POST method).

For now, can you turn off the "Follow original HTTP Method" request setting and check if that mitigates this issue?

Screenshot 2022-12-19 at 10 24 23 AM
nogueiraantonio commented 1 year ago

Thank you @codenirvana , yes that does the trick. What is the rationale behind this change? I will try to update our partners and users about this change.

codenirvana commented 1 year ago

@nogueiraantonio This is a side effect of a different bug fix. We'll revert this change in an upcoming release.

I will let you know once the behavior is fixed. Till then, you can explicitly set the request setting OFF.

balamurthy68 commented 6 months ago

Hi, I set the indicated request setting to OFF but still problem persists. Kindly revert. Thanks!