[richfaces-issues] [JBoss JIRA] Commented: (RF-8359) Fileupload component hanging during upload
cgs (JIRA)
jira-events at lists.jboss.org
Thu Feb 25 18:42:11 EST 2010
[ https://jira.jboss.org/jira/browse/RF-8359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12516856#action_12516856 ]
cgs commented on RF-8359:
-------------------------
I got fed up with debugging compressed JavaScript so I just went into the richfaces-ui jar, edited org/richfaces/ui.pack.js and ripped out this chunk of code from getFileSize:
--- ui.dist/org/richfaces/ui.pack.js 2010-02-14 11:03:32.000000000 -0600
+++ ui/org/richfaces/ui.pack.js 2010-02-25 16:47:15.000000000 -0600
@@ -8452,10 +8452,7 @@
}if(this.labelMarkup){var A=new ProgressData(D);
this.progressData=A;
if(this.activeEntry){this.activeEntry.setupLabelUpdate()
-}}}else{if(this.activeEntry){this._fileSizeScriptTimeoutId=setTimeout(function(){this._fileSizeScriptTimeoutId=undefined;
-this.executeFileSizeScript(this.activeEntry.uid)
-}.bind(this),this.progressBar.options["pollinterval"]||500)
-}}},prepareProgressBar:function(){this.progressBar.setValue(0);
+}}}},prepareProgressBar:function(){this.progressBar.setValue(0);
Element.show(this._progressBar);
this.progressBar.options.onerror=function(A){this.errorHandler(A)
}.bind(this)
This has a minor side effect of sometimes not updating the upload widget so it looks like nothing was uploaded (although F5 refreshes it to show the uploaded file, or since the Add button is still showing, uploading again works, too). This is good enough for me and is in the "works for me" status, so it hasn't been field tested.
So, if this stands up to normal use, the point will be that sometimes this progressBar refresh loop never stops. (I haven't even investigated whether or not the label update interval is a culprit, as well.)
> Fileupload component hanging during upload
> ------------------------------------------
>
> Key: RF-8359
> URL: https://jira.jboss.org/jira/browse/RF-8359
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 3.3.2.GA, 3.3.2.SR1
> Reporter: Charles Crouch
> Assignee: Andrey Markhel
> Priority: Critical
> Fix For: 3.3.3.Final
>
> Attachments: Full Text Bug Listing.pdf
>
>
> The file upload component is failing in RHQ, See https://bugzilla.redhat.com/show_bug.cgi?id=562751 for more details. Its definitely a problem in 3.3.2.GA and 3.3.2.SR1. This used to work so we're going to try dropping back versions until we find one that works.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list