Bug #72494 | EndOfStreamException when inserting large blob values using Compression=True | ||
---|---|---|---|
Submitted: | 30 Apr 2014 19:41 | Modified: | 16 Nov 2015 9:44 |
Reporter: | Marco Kummer | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.7.5 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[30 Apr 2014 19:41]
Marco Kummer
[1 Dec 2014 14:29]
Chiranjeevi Battula
Hello Marco Kummer, Thank you for the bug report. I could not repeat the issue on Visual Studio 2013 (C#.Net) with MySQL Connector/Net 6.9.5. Could you please list out exact steps you tried out at your end, this would help us to reproduce the issue at our end. Thanks, Chiranjeevi.
[2 Jan 2015 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[12 Nov 2015 13:21]
Fernando Diaz Toledano
I become almost crazy for hours, and was to use compression INSERT INTO `GEM_999_2015`.`archivos` (TIPO,COD_CTA,LINEA,CODIGO,MARCADO,CATEGORIA,GRUPOS,RUTA,NOMBRE,DESCRIPCION,OBSERVACIONES,URL_DOWN,ARCHIVO,COMPRIMIDO,TEXTO_IMG,USUARIO,IS_WEB,TAM_FILE,FECHA_ALTA,FECHA_MODIF) VALUES ('GENER','EMPRESA','','00207','0','00006','','','','','','', 0x00 <- LONG BLOB HERE ,'S','','','N','23503348','2014/07/04',' / / ')ON DUPLICATE KEY UPDATE MARCADO=VALUES(MARCADO),CATEGORIA=VALUES(CATEGORIA),GRUPOS=VALUES(GRUPOS),RUTA=VALUES(RUTA),NOMBRE=VALUES(NOMBRE), DESCRIPCION=VALUES(DESCRIPCION),OBSERVACIONES=VALUES(OBSERVACIONES),URL_DOWN=VALUES(URL_DOWN),ARCHIVO=VALUES(ARCHIVO), COMPRIMIDO=VALUES(COMPRIMIDO),TEXTO_IMG=VALUES(TEXTO_IMG),USUARIO=VALUES(USUARIO),IS_WEB=VALUES(IS_WEB), TAM_FILE=VALUES(TAM_FILE),FECHA_ALTA=VALUES(FECHA_ALTA),FECHA_MODIF=VALUES(FECHA_MODIF)
[12 Nov 2015 13:23]
Fernando Diaz Toledano
I have been used .NetConnector 6.9.7.0 ConnectionString=server=localhost;port=5551;password=***;user id=***;compress=True;ConnectionTimeout=3000
[12 Nov 2015 13:26]
Fernando Diaz Toledano
'CREATE TABLE `archivos` ( `MARCADO` char(1) NOT NULL DEFAULT ''0'', `TIPO` char(5) NOT NULL DEFAULT '''', `COD_CTA` varchar(70) NOT NULL DEFAULT '''', `LINEA` varchar(5) NOT NULL DEFAULT '''', `CODIGO` char(5) NOT NULL DEFAULT '''', `CATEGORIA` varchar(5) NOT NULL DEFAULT '''', `GRUPOS` varchar(255) NOT NULL DEFAULT '''', `RUTA` varchar(255) NOT NULL DEFAULT '''', `NOMBRE` varchar(255) NOT NULL DEFAULT '''', `DESCRIPCION` varchar(70) NOT NULL DEFAULT '''', `OBSERVACIONES` varchar(255) NOT NULL DEFAULT '''', `URL_DOWN` varchar(255) NOT NULL DEFAULT '''', `ARCHIVO` longblob NOT NULL, `COMPRIMIDO` char(1) NOT NULL DEFAULT ''N'', `TEXTO_IMG` longtext NOT NULL, `USUARIO` varchar(20) NOT NULL DEFAULT '''', `IS_WEB` char(1) NOT NULL DEFAULT ''N'', `TAM_FILE` int(12) NOT NULL DEFAULT ''0'', `FECHA_ALTA` varchar(10) NOT NULL DEFAULT '' / / '', `FECHA_MODIF` varchar(10) NOT NULL DEFAULT '' / / '', PRIMARY KEY (`TIPO`,`COD_CTA`,`LINEA`,`CODIGO`), KEY `INDICE_1` (`TIPO`,`COD_CTA`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 CHECKSUM=1'
[16 Nov 2015 9:44]
Chiranjeevi Battula
Hello Fernando Diaz Toledano, Thank you for your feedback. I could not repeat the issue on Visual Studio 2013 (C#.Net) with MySQL Connector/Net 6.9.7 and 6.9.8 versions. If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thanks, Chiranjeevi.
[27 Jul 2016 9:55]
João Amorim
Hi I was able to replicate this bug. I am sending via SFTP a project and binary file (25MB) that can replicate problem. If you remove the "UseCompression=true" from connection string the problem disappears. My setup is: Server version: 5.6.31 Connector version: 6.9.9 max_allowed_packet=128M
[11 Oct 2016 5:41]
Bradley Grainger
I may have found a consistent repro for this bug here: https://bugs.mysql.com/bug.php?id=83330