Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020277
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2012-04-16 15:262012-05-28 10:19
ReporterrgorisView Statuspublic 
Assigned Toguilleaer 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisioneea6e57d2404
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020277: Attachment upload process keeps on going when navigating away

DescriptionThis is mostly an issue for large attachments. When it takes more than a few secs to upload an attachment, and the user navigates to another tab or record during the upload, the uploading process seems to continue (as indicated by the spinning loading button on the attachment button in the toolbar) but in fact it is suspended.
Steps To ReproduceUpload a large file. While in progress, close the form view or navigate to the workspace.
Proposed SolutionEither kill the process (and warn the user before doing so: "An attachment is being uploaded at the moment. Navigating away aborts the upload. Do you want to continue? Continue | Cancel "

or

Continue uploading in the background. This is desired behavior and would be an excellent example of multi-tasking in a browser in OB. Can we have this please?
TagsNo tags attached.
Attached Filespng file icon AttachmentKeepsOnGoing.PNG [^] (47,794 bytes) 2012-04-16 15:26


png file icon UploadProblem.png [^] (35,411 bytes) 2012-05-10 11:32

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0048532)
guilleaer (developer)
2012-05-10 08:49

I was checking the attachments upload behavior and it doesn't match with the issue description.

When a large upload is being uploaded, close the window is not a problem because the upload continues. The problem is that you will not see anything that indicates that the upload is in process. Another problem is that you will never see anything that indicates that the upload process has finished. It happens because the callback function belongs to the tab which started the upload, but t if this window was closed the callback doesn't exist.

Other problem that I could reproduce is the concurrent upload. OB framework doesn't allow to upload two files at the same time (regardless the tab or window). If a file is being uploaded and the user uploads another file, the upload process of the first file is cancelled.

Proposed solution: Receive the reponse of the uploads in a new general callback which will call to the specific callback of the tab. This new callback can manage the number of upload in progress.

Do a research to show the uploads in progress in a new UI component which will be visible always (until the upload is finished).

Inform to user that one upload is in progress before upload a new file and block this action until the upload is completed.
(0048547)
rgoris (developer)
2012-05-10 11:31

Yes, i agree. Here´s my suggestion to resolve this issue in a simple manner:

- Upload in progress on a tab is indicated by a spinner that replaces the paperclip button icon in the toolbar. This is OK currently, no change needed.
- When you try to upload another attachment while the current upload is still in progress, then the user must be informed: The preferred feedback style is using a modal popup (as it is about cross-tabs), see image attached.
(0048548)
rgoris (developer)
2012-05-10 11:40

(pasted text for message above)

Attachment Upload Problem

The attachment cannot be uploaded because another
attachment is being uploaded on a different tab.
Wait before the other upload finishes and try again.
(0048641)
hgbot (developer)
2012-05-15 09:15

Repository: erp/devel/pi
Changeset: eea6e57d240485e04bec6afe341dd85e00986c9b
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue May 15 09:10:03 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/eea6e57d240485e04bec6afe341dd85e00986c9b [^]

Fixed issue 20277: Two files cannot be uploaded simultaneously

A new general callback has been added to manage the uploads and to avoid undesired cancelation of uploads which are in progress.

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-attachments.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
M src/org/openbravo/erpCommon/businessUtility/TabAttachments.java
---
(0048642)
guilleaer (developer)
2012-05-15 09:45

Test plan:

Because in a local environment the file upload is too fast, this test should be done using a remote connection to the server.

1. Logged as F&B Int Group Admin
2. Go to products window
3. Open the product header tab in view form (Electricity)
4. Open the associated price in view form (Other services)
5. Attach a big file in the product header
6. During the upload process try to upload an attachment for the price
7. A pop up should be shown
8. If "No" is selected the new upload will not be done and the previous upload will continue.
9. If "yes" is selected the previous upload will be cancelled and the new upload will start
10. The toolbar icons and the list of attachments of the tab where the upload has been cancelled indicates that upload has finished. (with this tab has the focus)
11. The toolbar icons and the list of attachments of the tab where the new upload has been done indicates that upload is in progress

This test can also be done with tabs from different windows.

This fix is not risky
(0048849)
rgoris (developer)
2012-05-22 10:40

Tested and approved
(0049128)
hudsonbot (developer)
2012-05-25 12:12

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5401e185a8b0 [^]

Maturity status: Test
(0049340)
AugustoMauch (manager)
2012-05-28 10:19

Code reviewed and verified in pi@520938516719

- Issue History
Date Modified Username Field Change
2012-04-16 15:26 rgoris New Issue
2012-04-16 15:26 rgoris Assigned To => alostale
2012-04-16 15:26 rgoris File Added: AttachmentKeepsOnGoing.PNG
2012-04-16 15:26 rgoris Modules => Core
2012-04-19 08:44 alostale Assigned To alostale => guilleaer
2012-05-10 08:49 guilleaer Note Added: 0048532
2012-05-10 11:31 rgoris Note Added: 0048547
2012-05-10 11:32 rgoris File Added: UploadProblem.png
2012-05-10 11:40 rgoris Note Added: 0048548
2012-05-15 09:15 hgbot Checkin
2012-05-15 09:15 hgbot Note Added: 0048641
2012-05-15 09:15 hgbot Status new => resolved
2012-05-15 09:15 hgbot Resolution open => fixed
2012-05-15 09:15 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/eea6e57d240485e04bec6afe341dd85e00986c9b [^]
2012-05-15 09:45 guilleaer Note Added: 0048642
2012-05-22 10:40 rgoris Note Added: 0048849
2012-05-22 10:40 rgoris Status resolved => closed
2012-05-25 12:12 hudsonbot Checkin
2012-05-25 12:12 hudsonbot Note Added: 0049128
2012-05-28 10:19 AugustoMauch Note Added: 0049340


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker