プロジェクト

全般

プロフィール

Vote #72399

完了

404 response when deleting a user from the edit page

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Accounts / authentication_7
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
7
version_id:
47
issue_org_id:
11691
author_id:
6508
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
48
ステータス-->[Closed]

説明

Since r9678 for #10865, deleting a user from the user edit page redirects to the deleted user edit page, a.k.a HTTP 404 error page.


journals

Should be fixed with r10234.

Note that I had to revert r1893 (#1826) because @URI.parse@ is expecting an escaped URL (try to give it some UTF-8 encoded character and it will throw an exception).

--------------------------------------------------------------------------------
Yes I think they should have because r1893 was committed on a "can't reproduce" basis and broke any possibilities to include a UTF-8 encoded parameter in the URL (was @utf-8@ RoR param in this case).
I don't see the point of pre-escaping a parameter which will be necessarily URL-escaped at the time the request is issued.
And I think that #1826 could have been fixed by using relative URLs which wouldn't have been processed by Apache mod_rewrite.

Could you please discuss them before reverting other people's commits?
It makes 2 times for reasons that could have been discussed before, it's rude, very frustrating and not really motivating.

--------------------------------------------------------------------------------
Etienne Massip wrote:
> Yes I think they should have

Sure but changing a test just to make it pass is not the way to go either. Updating and getting an error when logging in is pretty frustrating too :-(
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
> Could you please discuss them before reverting other people's commits?

OK, sorry for that. Next time, let's discuss before actually starting to do the changes that should be discussed. Thanks for digging into this anyway Etienne.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Sure but changing a test just to make it pass is not the way to go either. Updating and getting an error when logging in is pretty frustrating too :-(

I did not change the test just to make it pass but because it was part of r1893 which I reverted; the after-login redirect was then expected to work just as it did before r1893 (or a test failure) but as you discovered it was not the case and I'm really sorry I broke it :(

> Next time, let's discuss before actually starting to do the changes that should be discussed.

I did not expect any side-effect but as I updated common code I still added you as a watcher and didn't merge anything to branches or closed the issue.

As a regression, shouldn't it be fixed in 1.4 and 2.0 branches as well?

--------------------------------------------------------------------------------


related_issues

relates,Closed,10865,Filter reset when deleting locked user

Admin Redmine さんが約4年前に更新

  • カテゴリAccounts / authentication_7 にセット
  • 対象バージョン2.1.0_47 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0