Summary: | Error hotstuff-access when try to download new molecule in molecule-editor | ||
---|---|---|---|
Product: | [Applications] kalzium | Reporter: | Ruben <ruben.rojovazquez.sa> |
Component: | general | Assignee: | Kalzium Developers <kalzium> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | sgmoore, tuomas |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ruben
2022-08-03 09:16:12 UTC
I can reproduce this with current git head ("kalzium 22.11.70"), and had a bit deeper look at the problem. My documentation of the underlying technical probem and a solution prototype at https://invent.kde.org/education/kalzium/-/merge_requests/26 . I might inspect this more later. *** Bug 461027 has been marked as a duplicate of this bug. *** 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.) |