<table><tr><td style="">mgallien requested changes to this revision.<br />mgallien added a comment.<br />This revision now requires changes to proceed.
</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/D10694" rel="noreferrer">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D10694#214996" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">D10694#214996</a>, <a href="https://phabricator.kde.org/p/michaelh/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;" rel="noreferrer">@michaelh</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D10694#213712" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">D10694#213712</a>, <a href="https://phabricator.kde.org/p/mgallien/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;" rel="noreferrer">@mgallien</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>To me, it is necessary to have a test that ensures that possible existing clients are not affected by your change. Could you add it ?</p></div>
</blockquote>
<p>The new behaviour will break clients. No test needed for this. E.g. baloo-widgets will show the label 'Subject' but no content.<br />
To make it clear: I do not want break this for clients apart from baloo-widgets. The question is: Who are the clients? and How to find them except for searching <a href="https://lxr.kde.org/" class="remarkup-link" target="_blank" rel="noreferrer">https://lxr.kde.org/</a>? Please help me with this.</p></div>
</blockquote>
<p>Yesterday, I tried looking for such use and did not found them. I did try to use web search engine with no success. I am afraid I cannot help you but would be happy to hear any advice.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>The current behaviour is already breaking: I have some epub files with a lot of <tt style="background: #ebebeb; font-size: 13px;">dc:subject</tt> tags. The semicolon-concatenated string is longer than my monitor is wide. As a result in dolphin the tooltip does not display at all. My rationale was to tackle the problem at the root rather than to work around it by splitting the string within baloo-widgets. With regard to <a href="https://phabricator.kde.org/T8079" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">T8079</a> it will be the same. If data is taken from baloo's database that old long string will be displayed</p></blockquote>
<p>I am sure that your work is really trying to fix real problem that are seeing. You have my full support on your aim.</p>
<p>I should apologize given how bad my knowledge of KFileMetaData is. It is already silently managing single and multiple entries. In fact, yes, the epub extractor is doing it wrong.<br />
I have also checked how baloo is handling multiple entries and it works in the same way than pure kfilemetadata.</p>
<p>In the taglib extractors multiple entries are added in several call to add method. This is nicely handled by KFileMetaData::SimpleExtractionResult::add . It would be nice if you modify your patch to follow the same approach. In Baloo, things are a little bit different and a list is automatically created when multiple add are called with the same property but the result is similar (in baloo Result::add ).</p>
<p>You can forget my initial objection, I was plain wrong.</p>
<p>We may have bugs in user of the API not expecting a list when they should have. In my opinion, this should not block your diff. Let's fix them when we discover them.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>According to the standard an epub can have multiple <tt style="background: #ebebeb; font-size: 13px;">dc:subject</tt> entries. So it is reasonable to expect a string list from KFileMetaData. Plus the possibilities are grand with an KFileMetaData writer for epubs one could use the tag widget to change them. One could unify xattr tags and epub subjects in tags:// protocol and mayby more.</p></blockquote></div></div><br /><div><strong>REPOSITORY</strong><div><div>R286 KFileMetaData</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10694" rel="noreferrer">https://phabricator.kde.org/D10694</a></div></div><br /><div><strong>To: </strong>michaelh, mgallien, dfaure<br /><strong>Cc: </strong>Frameworks, ashaposhnikov, michaelh, spoorun, navarromorales, isidorov, nicolasfella, firef, andrebarros, alexeymin, emmanuelp<br /></div>