Page 1 of 1

Downloading .zip larger than 2GB only DLs 2GB

PostPosted:Thu Nov 09, 2017 12:25 am
by omnicron
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

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

PostPosted:Fri Nov 10, 2017 5:40 pm
by jllort
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

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

PostPosted:Mon Nov 13, 2017 2:57 am
by omnicron
Issue added.

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

Thanks! Good to know I am not crazy.

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

PostPosted:Tue Nov 14, 2017 2:59 pm
by jllort
It's solved in the source code, we will release officialy it into new version 6.3.5

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

PostPosted:Thu Nov 16, 2017 2:44 am
by omnicron
Thanks for this update! I appreciate the fast response and fix.