sfa-siard / SiardGui

SIARD Suite - SiardGui
Other
17 stars 3 forks source link

upload of .siard with Type BIT(1) throws error #29

Open ibbenz opened 2 years ago

ibbenz commented 2 years ago

A SIARD-File containing BIT(1) as a type will throw the following error, when trying to upload it to a MySQL-DB.

Error: Archive upload failed ( java.lang.IllegalArgumentException: Hex string must have even number of hex digits!)! Partial upload may have to be deleted manually.

The issue can only be solved by using BOOLEAN instead of BIT(1). The SIARD with BIT(1) is attached as a .zip. BIT(1) can be found in the metadata.xml. 0_1-3_Northwind_simple_2022_07_10_V00.zip

walkerjan commented 2 years ago

Thanks a lot for reporting this issue.

The exception is thrown in the course of converting a hex string into a byte buffer (which involves division by 2). We shall investigate the issue and consider respective measures to be taken.