<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4305" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>property() works in a slightly different way to just calling Get().<br />
It allocates the variant of the relevant type in advance in QObject code, and then calls <br />
the DBus code to populate it.</p>
<p>This fails for QByteArrayList, before it reaches DBus code.<br />
I don't know why, and I should probably investigate..but we need an ASAP fix in Solid anyway.</p>
<p>Calling Get directly aleviates this problem.<br />
m_device is a QDBusInterface making use of a magic DBus feature where it <br />
aggregates all interfaces on that object path. This code therefor has to do the same as the GetAll().</p>
<p>From a DBus traffic perspective this code is identical, we just avoid going through Qt properties.</p>
<p>This shouldn't introduce any new bugs, as we already use GetAll directly, if anything this brings it more <br />
in line.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Commented out the checkCache so that it always loads data.<br />
Instead of failing, it now works.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R245 Solid</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4305" rel="noreferrer">https://phabricator.kde.org/D4305</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/solid/devices/backends/udisks2/udisksdevicebackend.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>Frameworks<br /></div>