User enters a new bug, enters all the information on the jTrac screen. She decides to attach a file, but it hits the limit set (5MB by default). Error is thrown that the file is too large, but when the user clicks on OK, all the information (e.g. description field) that was entered gets wiped out. She just lost all that key entry.
I wrote code that in the ItemFormPage.java, I get the size of the file and check against the getMaxSize(), but when I invoke error, it didn't work. So I set the variable there, and I moved the check to the validate() function. It's still not working. The fields are getting wiped out.
Can you advise how would we fix this issue. I am more than happy to test and share the code if this works well in our environment.
Note that I downloaded the latest jTrac out there (2.1.0), and I tested on Linux and Windows, providing that info, even though I think that may not be relevant. I also was deploying on Tomcat 8.0.24, Java JDK 1.8.0_76
I realize this was 5 years ago, but if you have the patch still lying around somewhere, I'd be happy to integrate it now.
I am so sorry, but I haven't been working with jTrac for a number of years. I do remember the issue, when we attached anything larger than 5MB it wouldn't work. I don't think we ever solved the issue.
Thanks,Edmond Melkomianedmond_melkomian@yahoo.com
I realize this was 5 years ago, but if you have the patch still lying around somewhere, I'd be happy to integrate it now.
[bugs:#158] Fields get wiped out if the error on file size is too large
Status: open
Group: v1.0 (example)
Created: Mon Mar 28, 2016 02:27 PM UTC by edmond
Last Updated: Mon Mar 28, 2016 02:29 PM UTC
Owner: nobody
User enters a new bug, enters all the information on the jTrac screen. She decides to attach a file, but it hits the limit set (5MB by default). Error is thrown that the file is too large, but when the user clicks on OK, all the information (e.g. description field) that was entered gets wiped out. She just lost all that key entry.
I wrote code that in the ItemFormPage.java, I get the size of the file and check against the getMaxSize(), but when I invoke error, it didn't work. So I set the variable there, and I moved the check to the validate() function. It's still not working. The fields are getting wiped out.
Can you advise how would we fix this issue. I am more than happy to test and share the code if this works well in our environment.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/j-trac/bugs/158/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs: #158
Thanks for getting back to me so quickly. Turns out the 5MB limit can be configured to be higher if one needs to do so. But yes, better error handling would be nice.