Project

General

Profile

Actions

Defect #3281

closed

MethodNotAllowed Error when active a registered account after project assignment

Added by Minjie Zhu over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
2009-05-01
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Confirmed with Redmine Ver: r2697

  • Do the Account Registration.
  • Then the Admin receives the activation request mail and go to the account admin page.
  • Select the registered account.
  • Click the Projects tab.
  • Assign the account to a project any one you like and click the Change button beside the role.
  • Click the Active link, then the Browser goes white-out.

Log said

Processing ApplicationController#index (for xxx.xxx.xx.xxx at 2009-05-01 14:54:26) [POST]
  Parameters: {"user"=>{"status"=>"1"}}

ActionController::MethodNotAllowed (Only get requests are allowed.):

If you don't do the project assignment, it's OK.

So I check the Active Link and before you do the project assignment, the URL is

http://xx.xx.xx.xx:xxxx/users/19/edit?user%5Bstatus%5D=1

but after you do that, it changed to

http://xx.xx.xx.xx:xxxx/users/19/edit/memberships?user%5Bstatus%5D=1

Then I check the HTML source of the link

  <a href="/users/19/edit/memberships?user%5Bstatus%5D=1" class="icon icon-unlock" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;f.submit();return false;">

I think after project assignment, the link's URL which is set to the form action value will be changed to a page which only allows GET Method.

Thank you for reading.

Actions

Also available in: Atom PDF