#4372 Method not allowed when starring a project when not signed in
Closed: Fixed 5 years ago by pingou. Opened 5 years ago by skamath.

Issue

When I star a project before I am logged in, I am taken to the authentication page. When I am redirected after authentication, Pagure throws a 405 Method Not Allowed error.

Steps to Reproduce

  1. Open a private window and navigate to any project home page.
  2. Star the project to be redirected to the OpenID page
  3. Authenticate and wait for redirect
  4. Pagure frowns at you with a 405

This is expected but we may be able to fix it by removing the link for user that are not authenticated.
Basically, you can only redirect GET requests but starring a project requires a POST requests, so being redirected from the login page to the star project page will be via a GET request and thus raise a 405 method not allowed error :)

Metadata Update from @pingou:
- Issue assigned to pingou

5 years ago

Metadata Update from @pingou:
- Issue set to the milestone: 5.5
- Issue tagged with: bug

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #4373 Merged 5 years ago