Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data truncation: Data too long for column 'contentType' at row 1 #55

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
when send message with attachement with big name...
in the content type they can add the file name...
so the content-type can be larger than 255...


What is the expected output? What do you see instead?
database insertion of the message...
instead the message is rejected directly without smtp error message (connection 
close).

What version of the product are you using? On what operating system?
last git

Please provide any additional information below.

i've resized the database field to 550... but is not the good solution... i 
think the most elegante solution is to analyse content type and remove extra  
subtype (http://www.w3.org/Protocols/rfc1341/4_Content-Type.html) before insert 
to database...

Original issue reported on code.google.com by mcarbonneaux on 27 Jul 2014 at 4:16

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Sample of content-type:
application/vnd.openxmlformats-officedocument.wordprocessingml.document;    name=   "
=?iso-8859-1?q?point_1_-_r_6_-xxxxxxxxxxx-xxxxxxxxxxxx_du_xxx_de_i'xxx_su?= 
=?iso-8859-1?q?r_le_xxxxxx_de_xxxxxxx_des_xxxxxx_de_xxx_=e0_xxxxxxxxxxx_g?= 
=?iso-8859-1?q?roup_-_recueil_de_l'avis.docx?="

Original comment by mcarbonneaux on 27 Jul 2014 at 4:29

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant