[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-03-06 Thread R. David Murray
New submission from R. David Murray: >>> m = message_from_string("Content-Disposition: attachment; >>> filename*0*="can't decode this filename") >>> m.get_filename() Traceback (most recent call last): File "", line 1, in File "/home/rdmurray/python/p32/Lib/email/message.py", line 752, in g

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-03-06 Thread karl
karl added the comment: r.david.murray, how did you enter the first without a syntax error? >>> import email.message >>> m = message_from_string("Content-Disposition: attachment; >>> filename*0*="can't decode this filename") File "", line 1 m = message_from_string("Content-Disposition: a

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-03-06 Thread R. David Murray
R. David Murray added the comment: Heh. I used """ in the original, and edited it when I posted it "for conciseness". Sigh. My apologies. -- ___ Python tracker ___ __

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-03-06 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-03-07 Thread R. David Murray
R. David Murray added the comment: Here's a patch. Note that this fixes a regression relative to Python2, where fallback_charset was used in this case. -- keywords: +patch versions: -Python 2.7 Added file: http://bugs.python.org/file29344/collapse_rfc2231_value.patch

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-03-07 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-04-11 Thread R. David Murray
R. David Murray added the comment: It turns out the new header parsing code also missed this error recovery. Or, rather, it recovers from it by completely ignoring the parameter with the bad syntax. I haven't worked out a solution that does more useful error recovery yet, but I'm posting an

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-04-12 Thread Ankur Ankan
Changes by Ankur Ankan : -- nosy: +Ankur.Ankan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2016-02-28 Thread Matt
Changes by Matt : -- components: +Library (Lib) -email versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list m

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2016-02-28 Thread Matt
Changes by Matt : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2016-02-28 Thread Matt
Changes by Matt : -- components: +email -Library (Lib) versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63f8ea0eeb6d by R David Murray in branch '3.3': #17369: Improve handling of broken RFC2231 values in get_filename. http://hg.python.org/cpython/rev/63f8ea0eeb6d New changeset e0a90b1c4cdf by R David Murray in branch 'default': Merge: #17369: Improve

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2014-02-07 Thread R. David Murray
R. David Murray added the comment: I've applied the first fix. I'll leave the issue open until I make the equivalent fix for the new header parsing code. -- stage: patch review -> needs patch versions: -Python 3.2 ___ Python tracker

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2019-07-29 Thread STINNER Victor
STINNER Victor added the comment: This issue is not newcomer friendly, I remove the easy keyword. -- keywords: -easy nosy: +vstinner ___ Python tracker ___ __