Project

General

Profile

Actions

Feature #13023

open

Http 401 authenticate pop up with ajax request

Added by fabien esteveny almost 12 years ago. Updated almost 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Hi.

With some Ajax request, application controller say 401 unauthorized and a pop up is display to login.
But login and password don't work on this pop up.

I think, I have 401 because session was closed.
It's easy to reproduce even on this website, but my version of Redmine it's 1.4.4.
Logon, click on new issue.
Right click on logout and select open on new window.
Come back to the first window and try to change tracker.
A pop up is display because browser receive 401 error.

To correct this problem I have to check "Enable REST web service" and add "New" in issues_controller.rb at the end of the line :
accept_api_auth :index, :show, :create, :update, :destroy
With this solution, I can change the tracker even if the session is not active anymore. But when I click on "Create" I am redirected to login page and all information entered in the page "New issue" are lost.

Is there a solution to fix this problem, because I am at the limit of my knowledge.

Thanks
Fabien

No data to display

Actions

Also available in: Atom PDF