FsWisdom does not handle if Cancel is pressed during during download of cases (Ubuntu v.0.2.3)

Bug #423041 reported by JohanO
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Forssim
Fix Released
Medium
Ulrika Dreifaldt

Bug Description

If no previous cases has been downloaded (caseDirectory is empty) and the user is logged in to FsWisdom the cases are downloaded. If then the cancel button is pressed FsWisdom is closed. In this state the case directories are downloaded and if the user is logged in to FsWisdom it look like all the cases are ready to run (visible in list).

The content in caseDirectory has to be deleted in order for FsWisdom to download the cases again.

Steps to reproduce:
1) Delete content in caseDirectory
2) Start FsWisdom and login
3) During dowload of cases press cancel button
4) Start FsWisdom and login

<The cases are now visible in the list but it is not possible to start them>

Perhaps some control if the cases has been correctly downloaded during login?

Related branches

Changed in forssim:
assignee: nobody → Jimmy Jonsson (jimmy-jonsson-hiq)
Changed in forssim:
importance: Undecided → Low
importance: Low → Medium
Changed in forssim:
status: New → In Progress
Revision history for this message
Jimmy Jonsson (jimmy-jonsson-hiq) wrote :

Added eventhandling of closeEvent in progressdialog. Function stops ftp transfer and clears directories. Also stores a variable(ftpAborted) in the applicationNode class. The variable is used to make sure the transfer not starts all over if the user clicks on ok after closing the progressdialog.

Changed in forssim:
status: In Progress → Fix Committed
assignee: Jimmy Jonsson (jimmy-jonsson-hiq) → JohanO (johan-olofsson)
Revision history for this message
Jimmy Jonsson (jimmy-jonsson-hiq) wrote :

Some work still to do.

Changed in forssim:
assignee: JohanO (johan-olofsson) → Jimmy Jonsson (jimmy-jonsson-hiq)
status: Fix Committed → In Progress
Revision history for this message
Jimmy Jonsson (jimmy-jonsson-hiq) wrote :

Making a better solution for this bug. Instead of removing all directories when cancelling download, only incompleted directories will be removed.

Revision history for this message
Jimmy Jonsson (jimmy-jonsson-hiq) wrote :

New solution doesn't remove all directories, only the incomplete ones. New link to new bransch Bug_423041_2. Don't use old branch Bug_423041.

Changed in forssim:
status: In Progress → Fix Committed
assignee: Jimmy Jonsson (jimmy-jonsson-hiq) → JohanO (johan-olofsson)
Changed in forssim:
assignee: JohanO (johan-olofsson) → Jimmy Jonsson (jimmy-jonsson-hiq)
assignee: Jimmy Jonsson (jimmy-jonsson-hiq) → JohanO (johan-olofsson)
Revision history for this message
JohanO (johan-olofsson) wrote :

Not solved in bzr branch lp:~jimmy-jonsson-hiq/forssim/Bug_423041_2. The original issue is still valid.

Changed in forssim:
assignee: JohanO (johan-olofsson) → cerebro (jimmy-jonsson)
assignee: cerebro (jimmy-jonsson) → Jimmy Jonsson (jimmy-jonsson-hiq)
Revision history for this message
JohanO (johan-olofsson) wrote :

--Update--

Ok if "x" is pressed. Then the empty directories are removed. If Cancel button is pressed, the empty directories remain.

Changed in forssim:
status: Fix Committed → Incomplete
Changed in forssim:
status: Incomplete → In Progress
Revision history for this message
Jimmy Jonsson (jimmy-jonsson-hiq) wrote :

Pressing cancel while the progressdialog is active is ignored. Only way to abort is to close progressdialog first.

Changed in forssim:
status: In Progress → Fix Committed
assignee: Jimmy Jonsson (jimmy-jonsson-hiq) → Martin Flodin (mflodin)
Revision history for this message
JohanO (johan-olofsson) wrote :

Ok in v.0.2.7-Windows. Press on the Cancel button during download of cases are handled.

Revision history for this message
Ulrika Dreifaldt (ulrika-dreifaldt) wrote :

Can you please test it in forssim 0.2.7 ubuntu too?

Changed in forssim:
assignee: Martin Flodin (mflodin) → nobody
assignee: nobody → JohanO (johan-olofsson)
Revision history for this message
JohanO (johan-olofsson) wrote :

Ok, both "X" and Cancel button are handled during download of cases (Ubuntu v.0.2.7).

Changed in forssim:
assignee: JohanO (johan-olofsson) → Ulrika Dreifaldt (ulrika-dreifaldt)
Revision history for this message
Ulrika Dreifaldt (ulrika-dreifaldt) wrote :

Released in Ubuntu 0.2.7

Changed in forssim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.