#4372 Method not allowed when starring a project when not signed in
Closed: Fixed by pingou. Opened 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

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

Commit 808ce8b7 fixes this issue

Metadata
Related Pull Requests