dragging attachment from kmail sets wrong umask

Bug #125839 reported by Harm van Bakel
4
Affects Status Importance Assigned to Milestone
KDE PIM
Fix Released
Medium
kdepim (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: kmail

When dragging an attached file from kmail to the desktop, the copied file gets read-only instead of read-write permissions for the user. When right-clicking the attachment in kmail and selecting 'save as' the saved attachment does get the correct read-write settings.

Revision history for this message
Ace Suares (acesuares) wrote :

I reproduced this in Gutsy with Kmail Version 1.9.6 (enterprise 0.20070907.709405) (4:3.5.7enterprise20070926-0ubuntu2) by dragging an attachment to the desktop.

Changed in kdepim:
status: New → Confirmed
Revision history for this message
Ace Suares (acesuares) wrote :
Revision history for this message
Harald Sitter (apachelogger) wrote :

Please forward this report to http://bugs.kde.org and add the URL to the bugwatch for KDE PIM.

Changed in kdepim:
importance: Undecided → Low
Changed in kdepim:
importance: Undecided → Unknown
status: New → Unknown
status: Confirmed → Triaged
Changed in kdepim:
status: Unknown → Confirmed
Revision history for this message
In , Jonathan Thomas (echidnaman) wrote :

Version: 1.10.1 (using 4.1.2 (KDE 4.1.2), Kubuntu packages)
Compiler: cc
OS: Linux (i686) release 2.6.26-5-generic

This is similar to bug 79685, in the sense that both deal with attachments getting read-only rights. The difference is that this occurs when attachments are dragged to the desktop, and the disregardUmask=ture option doesn't work. Saving the attachments work as expected.

Revision history for this message
In , Ruchir-brahmbhatt-a (ruchir-brahmbhatt-a) wrote :

Reproducible on 1.11.2. When we drag & drop attachment anywhere not just desktop, it has only read permissions but when we save as, it has write permission as well.

Revision history for this message
In , Jtamate (jtamate) wrote :

I guess the problem is not totally kmail fault:
  kmail drags a Url list, and when dolphin or plasma drops it, they create read-only files.

  If kmail uses the right mime type for each attachment, there is another problem:
* In plasma, it will try to open the plasmoid to handle the type. For example, an image will open the preview plasmoid. But dows not allow to create a file.
* In dolphin, an image mime type is not allowed to drop.

  You can check it trying to drag&drop the image captured with ksnapshot.

Revision history for this message
In , Gerlando Lo Savio (gerlos) wrote :

(In reply to comment #1)
> Reproducible on 1.11.2. When we drag & drop attachment anywhere not just
> desktop, it has only read permissions but when we save as, it has write
> permission as well.

The same on kmail 1.11.4. When I drag & drop any attachment (I've tried also with png images) from kmail windows to any file manager window, that file will be saved in read-only mode.

When I save using the right click menu and "save as" instead permissions are fine.
Please correct this, it would be really comfortable if we could just drag attachments out of the windows to save them.

Revision history for this message
In , Cgiboudeaux (cgiboudeaux) wrote :

*** Bug 185837 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Kollix (kollix) wrote :

As this is a problem with the drop-target application, I reassign to dolphin.

Revision history for this message
In , Jtamate (jtamate) wrote :

*** Bug 208986 has been marked as a duplicate of this bug. ***

Revision history for this message
Harald Sitter (apachelogger) wrote :

Closing in favor of KDE bug report, please refer there for updates. Thanks.

Changed in kdepim (Ubuntu):
status: Triaged → Invalid
Revision history for this message
In , Dav1dblunk3tt (dav1dblunk3tt) wrote :

I get this in 4.4.2 - this has been with us since 3.5 and is really annoying

Revision history for this message
In , Cgiboudeaux (cgiboudeaux) wrote :

*** Bug 164997 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Peter-penz19 (peter-penz19) wrote :

I don't know why this has been assigned to Dolphin - Dolphin is not involved when dragging between kmail and the desktop -> reassigned to plasma

Revision history for this message
In , Björn Ruberg (bjoern-ruberg-wegener) wrote :

@ Jaime Torres:
But kmail does save the attachments as read-only temporary files? In that case, either plasma and dolphin may just copy the read-only property.

Revision history for this message
In , aseigo (aseigo) wrote :

yes, it's simply copying the permissions already there. perhaps kmail should set the permissions to whatever it uses by default for "save as" before starting a drag (and resetting it afterwards). a bit of a hack, perhaps, but i don't see how else we could work around this issue without changing the permissions of all files that are copied into folderview (which would, imho, be a bug in the general case).

Changed in kdepim:
importance: Unknown → Medium
Revision history for this message
In , Montel-3 (montel-3) wrote :

I fixed it in 4.9

Changed in kdepim:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.