Bug 308806 - Crash while escaping a password dialog required to fetch an image in the mail
Summary: Crash while escaping a password dialog required to fetch an image in the mail
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 4.8.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-22 11:29 UTC by Julien T.
Modified: 2017-01-07 22:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace (9.98 KB, application/octet-stream)
2012-10-24 12:18 UTC, Julien T.
Details
Backtrace (9.32 KB, application/octet-stream)
2012-10-26 09:33 UTC, Julien T.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julien T. 2012-10-22 11:29:17 UTC
I have a mail coming from a website under construction and so we have add an password protection via .htaccess.

When the mail open, he try to open the image and so a dialog is prompted to ask me my username and password. If i'm quick, i can grab the mail before the dialog show and so, i hit escape to cancel the dialog and continue draggin my file. And when i press escape, kmail crash.

Reproducible: Always

Steps to Reproduce:
1. Receive a mail with an image protected by password (.htaccess)
2. Drag quickly the mail (to move it to another folder or anything else) before the dialog show.
3. When the dialog is visible, i hit "escape" to cancel the dialog (because i don't want to stop dragging and restart after escaping)
Actual Results:  
Kmail crashed

Expected Results:  
Nothing particular, juste the dialog closed ;)

I'm currently with a 3G connection, so i don't know if there is an update available and if this bug have been corriged after this version.
Comment 1 Laurent Montel 2012-10-24 06:32:43 UTC
backtrace ?

'Receive a mail with an image protected by password' ? when you switch to html mode it asks a password for it ?
Comment 2 Julien T. 2012-10-24 12:18:08 UTC
Created attachment 74775 [details]
Backtrace
Comment 3 Julien T. 2012-10-24 12:24:57 UTC
I'm by default in html mode, so when i click on the mail, kmail try to fetch the image.
And so between the time it send his request to the web server and ask me for a password, i was able to start draggin.

The mail come from a website which is under development, so to prevent people to look at it, we put a .htaccess files who prompt for username/password for every file.
So when we receive this mail, the .htaccess do his job ;)

I can try to make a simple mail who trigger this bug and host the image if you want ?
Comment 4 Julien T. 2012-10-24 12:30:45 UTC
Some more information :
I have activated in kmail configuration, security :
- Prefer html to plain text
- Allow downloading external reference

To always show html version and load image/css

My interface is not in english, so the label may be different
Comment 5 Laurent Montel 2012-10-25 06:42:16 UTC
"I can try to make a simple mail who trigger this bug and host the image if you want ?" yes please.
(you can send in private login/password) thanks a lot.

Could you install debug package on your computer to generate a good backtrace ?
Comment 6 Julien T. 2012-10-25 13:22:22 UTC
I just send an email with an image. Any password will display the picture.

The php only wait for 3s before asking password so you have time to start drag.

I will look for debug package (the last time an error occured while trying to install them).
Comment 7 Laurent Montel 2012-10-25 13:28:41 UTC
"I just send an email with an image." where ?:)
Comment 8 Julien T. 2012-10-25 13:33:39 UTC
To you email montel@kde.org, by the content, it may have been considered as a spam :)
Comment 9 Laurent Montel 2012-10-25 13:59:07 UTC
Didn't receive perhaps kde.org server removed it...
Could you resent it please ?
(and add laurent@kdab.com too to be sure)
Comment 10 Julien T. 2012-10-25 14:41:25 UTC
It's done.
Comment 11 Laurent Montel 2012-10-26 06:30:17 UTC
I can reproduce crash for the moment.
Do you try with debug package ?
Comment 12 Julien T. 2012-10-26 09:33:38 UTC
Created attachment 74805 [details]
Backtrace

New backtrace with debuging package
Comment 13 Denis Kurz 2016-09-24 18:00:15 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 14 Denis Kurz 2017-01-07 22:13:39 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.