Item10875: Moving Row with Javascript Controls Prior Authentication Causes row edit to appear
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Moving Row with Javascript Controls Prior Authentication Causes row edit to appear instead of a row move action when js=preferred
Steps:
- Without being authenticated go to http://ala-twiki-test.wrs.com/Testme/WebChanges?topic=PaulineCheung1239499
- Move a row around
- authenticate
- 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