Bug 453178

Summary: Bad URL to register an acount at freechess.org
Product: [Applications] knights Reporter: Narcis Garcia <narcisgarcia>
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, d_k, kde-games-bugs-null
Priority: NOR    
Version First Reported In: 2.6.20122   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Narcis Garcia 2022-04-29 08:12:07 UTC
SUMMARY
***
Once selected freechess.org , when pressing "Create account" button it makes a call to open a bad URL.
***

STEPS TO REPRODUCE
1. Start clean Knights application
2. Create new game. Select human vs Chess server: freechess.org
3. OK. It asks for login data, but user presses on button to create an account

https://www.freechess.orgregister/index.html

https://www.freechess.org/register/index.html

SOFTWARE/OS VERSIONS
Debian GNU/Linux 11 (stable) with Gnome desktop.
Qt Version: 5.15.2
Knights version 2.6.20121
Comment 1 Narcis Garcia 2022-04-29 08:13:58 UTC
Better URL to prevent future issues:
http://www.freechess.org/Register/
Comment 2 Albert Astals Cid 2022-04-30 09:08:21 UTC
This may be something worth reporting to freechess.

Their URL rewriting is broken, if you go to http://freechess.org/Register/index.html they send you to https://www.freechess.orgregister/index.html
Comment 3 Dave Kaye 2022-12-09 17:51:58 UTC
Knights is programmed to send the user to the url

http://freechess.org/Register/index.html

when requesting a new account.  The FreeChess website has changed from http to https.  When the above url is recieved by the chess website, it sends a redirect response.  Unfortunately it is malformed, and the redirect is to the url

https://www.freechess.orgregister/index.html

which does not exist.  Correcting the issue at the website will correct this error.  A note has been sent to support@freechess.org to inform them of the problem.

A second method to correct this error is to change Knights ficsdialog.cpp from requesting http: to requesting https: by adding an "s" to the code.  This is the correct url, and the malformed redirect url is never issued. This has been done in pull request labeled Commit 93002685.  This change is awaiting acceptance by development team.