<table><tr><td style="">Zren updated this revision to Diff 21841.<br />Zren edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-4mhmrap3xhdlrqw/" rel="noreferrer">(Show Details)</a><br />Zren edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-oj6rds553fj2y3e/" rel="noreferrer">(Show Details)</a>
</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/D8636" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>This patch adds the ability to specify which link to download <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">in</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">with</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">3rd path section</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">`?linkId=3` query parameter</span>.<br />
<br />
Eg: `kns://plasmoids.knsrc/api.kde-look.org/1160672<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">/3`</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">?linkId=3`</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>knshandler kns://plasmoids.knsrc/api.kde-look.org/1160672<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">/2</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">?linkId=1</span><br />
# Should error, since we didn't uninstall the previous version. Should log:<div style="padding: 8px 0;">...</div>knshandler kns://plasmoids.knsrc/api.kde-look.org/1160672<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">/2</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">?linkId=2</span><br />
# Should error, since we didn't uninstall the previous version. Should log:<div style="padding: 8px 0;">...</div>knshandler kns://plasmoids.knsrc/api.kde-look.org/1160672<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">/3</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">?linkId=3</span><br />
# Should error, since we didn't uninstall the previous version. Should log:<div style="padding: 8px 0;">...</div>knshandler kns://plasmoids.knsrc/api.kde-look.org/1160672<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">/3</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">?rawr=blarg</span><br />
# Should error, since we didn't uninstall the previous version. Should log:<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"><br />
# Command ' "kpackagetool5 --install /tmp/tiledmenu-v18-kde5.9.plasmoid --type Plasma/Applet" ' failed with code 4<br />
<br />
knshandler kns://plasmoids.knsrc/api.kde-look.org/1160672/test</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"># linkId is not an integer QUrl("kns://plasmoids.knsrc/api.kde-look.org/1160672/test") ("api.kde-look.org", "1160672", "test")</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"># Command ' "kpackagetool5 --install /tmp/tiledmenu-v05-kde5.5.plasmoid --type Plasma/Applet" ' failed with code 4</span><br />
<br />
knshandler kns://plasmoids.knsrc/api.kde-look.org/1160672<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">/2/</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">?linkId=</span>test<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"># wrong format in the url path</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"># linkId is not an integer</span> QUrl("kns://plasmoids.knsrc/api.kde-look.org/1160672<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">/2/</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">?linkId=</span>test") ("api.kde-look.org",<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> "1160672", "2",</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">"test"</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">"1160672"</span>)<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R252 Framework Integration</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D8636?vs=21823&id=21841" rel="noreferrer">https://phabricator.kde.org/D8636?vs=21823&id=21841</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8636" rel="noreferrer">https://phabricator.kde.org/D8636</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kpackage-install-handlers/kns/main.cpp</div></div></div><br /><div><strong>To: </strong>Zren, apol<br /><strong>Cc: </strong>Frameworks<br /></div>