This is a migrated thread and some comments may be shown as answers.

Spreadsheet - a problem with fromFile function and JSZip library

2 Answers 627 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 09 Apr 2020, 10:19 AM

Hello,

I'm experiencing the following error, when I try to use "fromFile" function to load the data for a spreadsheet component from an excel file:

"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."

The problem seems to be in the version of JSZip library, which the component uses. I manually changed the version of  "JSZip" script to 2.6 and it works fine, but I want to know how to do it using the latest version of the spreadsheet component and the latest version of "JSZip". I used the same file in the demo page in your site and it works fine there. The version of kendo is "2020.1.406".

2 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Tsvetanov
Telerik team
answered on 13 Apr 2020, 07:02 AM

Hello George,

The Spreadsheet widget functionality does not offer support for JSZip 3. Having that said, in order to benefit from the import/export functions of the Spreadsheet, you will need to use JSZip 2.x.

Regards,
Veselin Tsvetanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Markus
Top achievements
Rank 1
commented on 15 Jan 2024, 02:10 PM

I see that JSZIP 3.10.1 support is introduced in latest version (https://github.com/telerik/kendo-ui-core/issues/2316)

Anyhow it fails for this use case (spreadsheet and fromFile).

Should it work, is this now then a bug?

Neli
Telerik team
commented on 17 Jan 2024, 07:49 AM

Hi Markus,

The described issue is a known one. There is already a developer who is working on it and the fix for the issue will be available with the next release scheduled for the very end of January.

Regards,

Neli

1
Kezar
Top achievements
Rank 1
Iron
answered on 28 Jan 2022, 08:01 PM

Is there any update on upgrading jszip, there is a security vulnerability and many security scans are not passing our product because of it.

For details
https://security.snyk.io/vuln/SNYK-JS-JSZIP-1251497

From Sonar scan:
This affects the package jszip before 3.7.0. Crafting a new zip file with filenames set to Object prototype values (e.g __proto__, toString, etc) results in a returned object with a modified prototype instance.

Veselin Tsvetanov
Telerik team
commented on 31 Jan 2022, 03:20 PM

Hi Kezar,

Thank you for bringing the above issue to our attention. As a result of your report, I have reopened the following GitHub issue:

https://github.com/telerik/kendo-ui-core/issues/2316

I have also updated your Telerik points as gratitude for sharing the above.

Jack
Top achievements
Rank 1
Iron
Iron
commented on 01 Feb 2022, 05:00 PM

Our team also recently saw this same issue in our security scanner. Looking forward to the fix so we can upgrade to JSZip 3.7 

Veselin Tsvetanov
Telerik team
commented on 03 Feb 2022, 11:01 AM

Hi Jack,

We will do our best to move the upgrade task as soon as possible in our implementation queue. That you for your comment.

Kezar
Top achievements
Rank 1
Iron
commented on 28 Mar 2022, 08:09 PM

hi, do we have any estimated time on when this might get resolved. Thank you
Veselin Tsvetanov
Telerik team
commented on 29 Mar 2022, 12:17 PM

Hi Kezar,

The upgrade of JSZip is yet not scheduled for implementation. Nevertheless, based on your question, I have raised the priority of the GitHub item:

https://github.com/telerik/kendo-ui-core/issues/2316

Jack
Top achievements
Rank 1
Iron
Iron
commented on 01 Aug 2022, 05:06 PM

Any update on this?
Veselin Tsvetanov
Telerik team
commented on 03 Aug 2022, 06:44 AM

Hi Jack,

The JSZIP version bump is yet not scheduled for implementation. I have just raised the priority of the GitHub item:

https://github.com/telerik/kendo-ui-core/issues/2316

Jack
Top achievements
Rank 1
Iron
Iron
commented on 03 Aug 2022, 01:09 PM

Thank you, Veselin. We appreciate the responsiveness. 
Tags
Spreadsheet
Asked by
George
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Kezar
Top achievements
Rank 1
Iron
Share this question
or