Menu

#158 Fields get wiped out if the error on file size is too large

v1.0 (example)
open
nobody
None
5
2021-08-02
2016-03-28
edmond
No

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.

Related

Bugs: #158

Discussion

  • edmond

    edmond - 2016-03-28

    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

     
  • Ulf Dittmer

    Ulf Dittmer - 2021-08-02

    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.

     
    • edmond

      edmond - 2021-08-02

      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

      On Monday, August 2, 2021, 03:05:58 AM EDT, Ulf Dittmer <udittmer@users.sourceforge.net> wrote:
      

      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

  • Ulf Dittmer

    Ulf Dittmer - 2021-08-02

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.