Bug 362681 - use of Solid::Device listFromType member function give back some doubles datas and some empty occurences
Summary: use of Solid::Device listFromType member function give back some doubles data...
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-solid
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.20.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL: http://s1244.photobucket.com/user/jer...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-05 03:06 UTC by optional___
Modified: 2021-08-07 04:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description optional___ 2016-05-05 03:06:15 UTC
from images you can see from the link, use of  generate list from: Solid::Device::listFromType(Solid::Type::StorageVolume, QString())
converted to Solid::StorageVolume object for print QString datas of the volume (look at image 3 offer a view in the concerned code), failed to do the job by add some empty occurences (bug number one) in the list, and one doubles (bug number two).
And also (bug number 3), later, if you use the Solid::StorageAccess (do try it really...), with udi search for a storage device selected, ZFS formated partitions never show the listpath() (the mount point) of the partition.
 

Reproducible: Always

Steps to Reproduce:
1. follow the kde4 tutos for use solid::device for read storage and do the code from ther...
2. use/format a partition disk in ZFS, mixed on the same Hard drive with other ext4 or other format (and do use zfs packages for that)
3. so use the Solid::Device::listFromType(....) same the API explain it
4. then look at the occurrences inside the list generated... it has some doubles and maybe some copy for this ZFS partition
5. use Solid::StorageAccess for try to see the mount point of the ZFS volume (good luck for see them...)

Actual Results:  
1. in the QList<Solid::Device> list generate, there is some empty occurences.
2. in this list, for ZFS partitions of disk who are mixed with after format partitions, there is a double.
3. when use Solid:StorageAccess with ZFS partitions, listPath() member function is empty instead of show you the mount point of the partition.

Expected Results:  
1. no empty occurrences, just what the function is intend to search for
2. no other doubles of occurrences
3. just show what he has to show: the mount point.

I paste 3 images, 2 of them is a view of the output (these output are the same from a qDebug() message), then picture nb 3 is a view of the concerned code who is made from official KDE4 (so old one... links are broken... look at this please)  tutos pages for these "solid framework".
I try to find help on IRC channel in kde-devel without any success (no one seems to know).
Comment 1 Ahmad Samir 2021-07-08 19:58:45 UTC
Is this still an issue?
Comment 2 Bug Janitor Service 2021-07-23 04:33:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2021-08-07 04:36:03 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!