After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732566 - Encrypted partition created if passphrase was entered on Create Partition dialog despite switching back to unencrypted partition
Encrypted partition created if passphrase was entered on Create Partition dia...
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: Kai Lüke
gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2014-07-01 17:35 UTC by Michael Catanzaro
Modified: 2017-04-04 11:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screencast demonstrating bug (675.24 KB, application/octet-stream)
2014-07-01 17:35 UTC, Michael Catanzaro
  Details
Fix wrong behavior of filesystem creation dialog by adding an "encrypted" property (8.08 KB, patch)
2017-04-03 09:45 UTC, Kai Lüke
none Details | Review
Fix wrong behavior of filesystem creation dialog by adding an "encrypted" property (8.23 KB, patch)
2017-04-03 18:54 UTC, Kai Lüke
committed Details | Review

Description Michael Catanzaro 2014-07-01 17:35:39 UTC
Created attachment 279703 [details]
screencast demonstrating bug

* Open the Create Partition dialog
* Under Type, select Encrypted Partition
* Enter a passphrase
* Change your mind and change the Type to ext4
* Click create

Expected: gnome-disks creates an ext4 partition
Actual: gnome-disks creates an encrypted partition
Comment 1 Kai Lüke 2017-04-02 14:56:09 UTC
Patch pending, soon to be resolved.
Comment 2 Kai Lüke 2017-04-03 09:45:52 UTC
Created attachment 349164 [details] [review]
Fix wrong behavior of filesystem creation dialog by adding an "encrypted" property
Comment 3 Ondrej Holy 2017-04-03 13:19:45 UTC
Review of attachment 349164 [details] [review]:

Thanks for your patch. The patch seems work nicely, but wouldn't be better to just simply clear the password entries if LUKS is not selected?
Comment 4 Kai Lüke 2017-04-03 14:03:04 UTC
Ideally I think the format dialog should be reworked anyway and the encrypt option split to be separate from the filesystem selection. So if now a solution clears the passphrase at each selected filesystem option except LUKS+ext4 this would need to be changed again later.
Comment 5 Kai Lüke 2017-04-03 18:54:12 UTC
Created attachment 349198 [details] [review]
Fix wrong behavior of filesystem creation dialog by adding an "encrypted" property

(added bugzilla link to commit message)
Comment 6 Ondrej Holy 2017-04-04 11:54:36 UTC
Thanks for your contribution! I have pushed the Attachment 349198 [details] as d4695b9. I have just modified the short commit description to be shorter (it should be up to 50 chars at the best as per guidelines)...
Comment 7 Ondrej Holy 2017-04-04 11:55:19 UTC
(In reply to Kai Lüke from comment #4)
> Ideally I think the format dialog should be reworked anyway and the encrypt
> option split to be separate from the filesystem selection. So if now a
> solution clears the passphrase at each selected filesystem option except
> LUKS+ext4 this would need to be changed again later.

It is ok if you have some future plans with it...

(In reply to Kai Lüke from comment #5)
> Created attachment 349198 [details] [review] [review]
> Fix wrong behavior of filesystem creation dialog by adding an "encrypted"
> property
> 
> (added bugzilla link to commit message)

I really appreciate that you updated this patch as per my comment from another bug :-)