Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368854 - [operations] - "auth fail" task stay on the operations view after being removed
Summary: [operations] - "auth fail" task stay on the operations view after being removed
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 RC3   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 12:34 EST by Susan McCourt CLA
Modified: 2012-02-22 13:31 EST (History)
1 user (show)

See Also:
Szymon.Brandys: review+
ken_walker: review+


Attachments
screenshot (37.08 KB, image/png)
2012-01-17 12:39 EST, Susan McCourt CLA
no flags Details
Fixing notify about deleted. (8.96 KB, patch)
2012-02-22 06:06 EST, Malgorzata Janczarska CLA
no flags Details | Diff
patch generated from Orion (8.98 KB, text/plain)
2012-02-22 09:47 EST, Malgorzata Janczarska CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2012-01-17 12:34:33 EST
1.  Clone a repository
2.  You'll get an intermediate auth fail error (this is bug 347054)
3.  Clone completes.
4.  Now the operations page shows two things in the list, the auth fail, and the successful result.
5.  click on "remove completed"
6.  Now the list only shows the auth fail.
7.  If you try to delete the auth fail, you'll get an error 500 such as
DELETE http://orion.eclipse.org/task/id/QH2u8zBBABEQAdSauCJ4HQ 500 (Server Error)

However if you reload the page, the ghost task will disappear.

Feel free to mark this a dup of bug 347054 if this is just a problem with the intermediate auth fail.  However I thought maybe it's a more general problem with intermediate errors reported on tasks that eventually complete.
Comment 1 Susan McCourt CLA 2012-01-17 12:39:41 EST
Created attachment 209634 [details]
screenshot

You can replicate this with any authenticating git operation (not just clone).  Here's a screenshot after a pull.
Comment 2 Malgorzata Janczarska CLA 2012-01-23 10:53:19 EST
This is a problem with synchronization of operations page with the server. This operations was in fact deleted, but somehow information about it didn't get to UI and it wasn't removed from the view.
There are two problems here to solve:
1. Find out why wasn't UI notified and fix it
2. Find out why deleting not existing task returns 500, not 404, and change UI so it removes the task from the view on 404
Comment 3 Malgorzata Janczarska CLA 2012-01-25 09:56:49 EST
I haven't seen this for a while, maybe some fixes in meantime fixed it.
I expect some more changes in this area at Bug 365917, maybe I'll try to do those bugs together.
Comment 4 Malgorzata Janczarska CLA 2012-02-20 11:53:13 EST
Updating the subject of the bug because the real problem here is that operations page did not remove the operation from the view, even when the operation was removed from server.
In theory every time operation is removed from the server every longpolling request is notified and updates the operations list. Here probably the notification wasn't send.
Comment 5 Malgorzata Janczarska CLA 2012-02-22 06:06:16 EST
Created attachment 211392 [details]
Fixing notify about deleted.

Let me remind that the problem was not that the task wasn't removed on the server, but the update was not send to the Operations site that tracks changes by longpolling. Deleted tasks are no longer stored on the server site, so we can't track them though longpolling just the same as updated operations. For the sake of longpolling I stored the last deleted operations ids so that we can notify the Operations page what tasks where removed.
There where two problems here:
1. We always notified about tasks that where just removed, not about tasks that where removed from the last notification of longpolling
2. When longpolling request just came we checked if there where any changes since the last response was send, separately for updated tasks and deleted tasks. But if there where any changes in updated tasks we didn't send the deleted changes with them.
Comment 6 Malgorzata Janczarska CLA 2012-02-22 09:47:36 EST
Created attachment 211406 [details]
patch generated from Orion
Comment 7 Ken Walker CLA 2012-02-22 10:43:00 EST
I believe the code looks good.  Can't get it to fail with a message in my list pulling multiple repos.

As a project lead I +1 this for RC3 provided it is reviewed by Szymon.
Comment 8 Szymon Brandys CLA 2012-02-22 13:31:18 EST
Fixed with d44728975060494b8ec3cce254d0bd9b60434651.