Bug 423247 - Dreaded 404 error message in Settings dialog Help button
Summary: Dreaded 404 error message in Settings dialog Help button
Status: CONFIRMED
Alias: None
Product: frameworks-kconfigwidgets
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.71.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-19 21:42 UTC by bugcatcher1@cox.net
Modified: 2021-06-19 00:06 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugcatcher1@cox.net 2020-06-19 21:42:12 UTC
SUMMARY
The link for the “help” button in Shisen-Sho (Shisen-Sho Version 1.10+ #25) is broken/wrong. This is the link in the program:

https://docs.kde.org/stable5/en/kdegames/kshisen//kshisen/index.html

This gives the dreaded 404 error message.

I assume that the problem is this section: “ /kshisen//kshisen/index.html ”. You have two forward slashes instead of just one. Delete this section and it works fine: “//kshisen/index.html”, or if you insist you can just delete the second slash, or …. you choose.


STEPS TO REPRODUCE
1. Click on Settings
2. Click on Configure Shisen Sho
3. Click on “Help” button
4. Get the dreaded 404 error message

OBSERVED RESULT
Dreaded 404 error message

EXPECTED RESULT
Help of some kind

SOFTWARE/OS VERSIONS
Linux Mint 19.3

ADDITIONAL INFORMATION
Comment 1 Frederik Schwarzer 2020-06-19 22:24:12 UTC
Thanks for the report.

I just checked with KBounce and it's the same. Since I only see the kshisen/index.html part in the .desktop file, I do not know where to check for the culprit here.

Investigating...
Comment 2 Frederik Schwarzer 2020-06-19 22:36:51 UTC
This holds also true for other apps like Gwenview, so I suspect the problem within the config widget itself. Maybe someone with more internal knowledge can comment on this?
Comment 3 bugcatcher1@cox.net 2020-06-20 04:29:21 UTC
Thank you Frederik for your quick response. In fact, your time is 
stunning! Thank you.

I have just spent 72 hours trying to do what all the documents say I 
should be able to do, with no luck at all. Really nice to see that I can 
do something right!

Again, thank you.

BC

On 6/19/20 3:36 PM, Frederik Schwarzer wrote:
> https://bugs.kde.org/show_bug.cgi?id=423247
>
> Frederik Schwarzer <schwarzer@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Version|1.10.0                      |5.71.0
>             Assignee|schwarzer@kde.org           |kdelibs-bugs@kde.org
>              Product|kshisen                     |frameworks-kconfigwidgets
>            Component|general                     |general
>
> --- Comment #2 from Frederik Schwarzer <schwarzer@kde.org> ---
> This holds also true for other apps like Gwenview, so I suspect the problem
> within the config widget itself. Maybe someone with more internal knowledge can
> comment on this?
>
Comment 4 Albert Astals Cid 2020-06-20 09:40:03 UTC
meanwhile you can workaround this by installing khelpcenter and thus having a tool to read local docu instead of remote one.
Comment 5 Albert Astals Cid 2020-06-20 09:44:43 UTC
Hmmm, this is working for me just fine.

Which KDE Frameworks are you using?

Or maybe Luigi (or someone else) fixed it on the docs.kde.org side and now it works for you?

I end up in https://docs.kde.org/stable5/en/kdegames/kshisen//
Comment 6 Frederik Schwarzer 2020-06-20 10:14:54 UTC
Here (with the problem showing) I have:
- KDE Frameworks 5.71.0
- Qt 5.15.0 (built against 5.15.0)
- The xcb windowing system
Comment 7 Albert Astals Cid 2020-06-20 10:22:18 UTC
(In reply to Frederik Schwarzer from comment #6)
> Here (with the problem showing) I have:
> - KDE Frameworks 5.71.0
> - Qt 5.15.0 (built against 5.15.0)
> - The xcb windowing system

So "same" setup as me and it works for me and not for you :?
Comment 8 Luigi Toscano 2020-06-20 12:38:46 UTC
I can't reproduce it as well (up-to-date Debian testing and Fedora 32).


Can you see which address you are redirected to first?

You should see the browser opening at something like:

https://docs.kde.org/index.php?branch=stable5&language=en_US&application=kshisen&path=/

which then is redirected to https://docs.kde.org/stable5/en/kdegames/kshisen//


If I understand it correctly, Mint 19.3 is based on Ubuntu 18.04, so unless it uses some ppa, it means Frameworks 5.44. The only relevant kconfigwidgets change between 5.44 and 5.71 is

https://commits.kde.org/kconfigwidgets/8a9cec559211255dedd554caaf39aac1ed04aa3f

but it doesn't apply here, and it doesn't explain why Frederik hits it :/
Comment 9 Frederik Schwarzer 2020-06-20 16:02:21 UTC
Good hint with the initial link. Here it is for Gwenview:
 
https://docs.kde.org/index.php?branch=stable5&language=en_US&application=gwenview&path=/gwenview/index.html
Comment 11 Ahmad Samir 2021-06-19 00:06:15 UTC
I don't see the /kdegames/ part of the url, i.e. right now it eventually goes to:
https://docs.kde.org/stable5/en/kshisen/kshisen//

the double slash stuff is bug 424961.

FWIW, the config dialog seems to ultimately call KHelpClient::invokeHelp() (from KConfigWidgets), which parses the .desktop file to get the X-DocPath entry.