[kalzium] [Bug 457443] Error hotstuff-access when try to download new molecule in molecule-editor

Tuomas Nurmi bugzilla_noreply at kde.org
Sat Oct 29 11:12:39 BST 2022


https://bugs.kde.org/show_bug.cgi?id=457443

Tuomas Nurmi <tuomas at norsumanageri.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tuomas at norsumanageri.org

--- Comment #3 from Tuomas Nurmi <tuomas at norsumanageri.org> ---
Ok, I tracked down the problem.
KNewStuff's Installation::downloadPayload(const KNSCore::EntryInternal &entry)
generates the file name using QUrl::fileName() at
https://invent.kde.org/frameworks/knewstuff/-/blob/master/src/core/installation.cpp#L222
. however, the URLs are of format
http://newstuff.kde.org/cgi-bin/hotstuff-access?file=alkanes/3S-3-methylheptane.cml&site=kalzium
and .fileName() interprets the hotstuff-access part as the filename, and not
the part that follows the "?file=". Fixing the problem would need some
different kind of handling of the QUrl in KNewStuff (or porting the Kalzium
molecule download data to the newer formats.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kalzium mailing list