Downloading .zip larger than 2GB only DLs 2GB

OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
omnicron
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Mar 12, 2014 10:17 pm

Downloading .zip larger than 2GB only DLs 2GB

Post by omnicron » Thu Nov 09, 2017 12:25 am

I have a 7 GB .zip file in the repository that I want to download. It shows the proper file size in the webpage but does not download past 2GB. As soon as the HTTP transfer starts, it says the file is only 2GB and does not download more.

I changed the max.file.size from 0 (zero) to 10gb to make sure.

OPENkm 6.3.0

Debian jessie/sid 64 bit 17gb ram

Is there a limit in Tomcat I am missing?

Thanks

jllort
Moderator
Moderator
Posts: 9702
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Downloading .zip larger than 2GB only DLs 2GB

Post by jllort » Fri Nov 10, 2017 5:40 pm

No it's a bug, we have solved this bug in the professional edition, we should test latest source code in the community.

The issue is caused by the InpustStream -> is.available() returns an integer what is limited to 2GB and must change some section in the source code to get the real size ( in the response is sended the size of the document and using the method I described before is never larger than 2GB ).

Can you please add an issue here https://github.com/openkm/document-management-system

omnicron
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Mar 12, 2014 10:17 pm

Re: Downloading .zip larger than 2GB only DLs 2GB

Post by omnicron » Mon Nov 13, 2017 2:57 am

Issue added.

https://github.com/openkm/document-mana ... /issues/40

Thanks! Good to know I am not crazy.

jllort
Moderator
Moderator
Posts: 9702
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Downloading .zip larger than 2GB only DLs 2GB

Post by jllort » Tue Nov 14, 2017 2:59 pm

It's solved in the source code, we will release officialy it into new version 6.3.5

omnicron
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Mar 12, 2014 10:17 pm

Re: Downloading .zip larger than 2GB only DLs 2GB

Post by omnicron » Thu Nov 16, 2017 2:44 am

Thanks for this update! I appreciate the fast response and fix.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest