Item10875: Moving Row with Javascript Controls Prior Authentication Causes row edit to appear

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: EditRowPlugin
Branches:
Reported By: PaulineCheung
Waiting For:
Last Change By: CrawfordCurrie
Moving Row with Javascript Controls Prior Authentication Causes row edit to appear instead of a row move action when js=preferred

Steps:
  1. Without being authenticated go to http://ala-twiki-test.wrs.com/Testme/WebChanges?topic=PaulineCheung1239499
  2. Move a row around
  3. authenticate
  4. Notice that row edit appears instead of a row move

-- PaulineCheung - 10 Jun 2011

Yes, in this limited case that's what will happen. Once you are logged in you can drag rows without getting kicked into edit mode.

The reason is happens is this. When you drag a row, a bit of JS in the client handles the actual drag. But then when you drop, it composes an AJAX request to the server to execute the move. The server sees this request and discovers that no-one is logged in, so it replies with a page that displays the login prompt. The user then logs in and the request is restarted on the server; but this time, the server doesn't know the request came from Javascript, so it replies with the standard response used when a row move is done without JS. Since the outcome of a non-JS row move is for the moved row to be pushed into edit mode, that's what happens.

-- CrawfordCurrie - 14 Jun 2011

 

ItemTemplate edit

Summary Moving Row with Javascript Controls Prior Authentication Causes row edit to appear
ReportedBy PaulineCheung
Codebase
SVN Range
AppliesTo Extension
Component EditRowPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r2 - 14 Jun 2011, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy