Bug 452127 - URL redirection is not visible
Summary: URL redirection is not visible
Status: RESOLVED FIXED
Alias: None
Product: libalkimia
Classification: Unclassified
Component: General (show other bugs)
Version: 8.1.0
Platform: Other All
: NOR wishlist
Target Milestone: 8.1
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-31 20:44 UTC by Ralf Habacker
Modified: 2022-03-31 21:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 8.1.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2022-03-31 20:44:00 UTC
SUMMARY
The retrieval of an online quote source can be redirected by the server to another page, which is not output as changed when using KIO download support.

STEPS TO REPRODUCE
1. download portable alkimia package from https://binary-factory.kde.org or https://kmymoney.org/snapshots.php 
2. unpack archive and start onlinequoteseditor
3. select 'alkimia..' profile
4. press 'install' in the online quotes window, install 'FinancialTimesFund' online quote and close the add-on installer dialog 
5.select online quote 'FinancialTimesFund' and press 'check source'

OBSERVED RESULT
In the debug windows there is printed 'URL found: https://markets.ft.com/data/funds/tearsheet/charts?s=ORCL' 

EXPECTED RESULT
The resulting URL should be https://markets.ft.com/data/equities/tearsheet/charts?s=ORCL:NYQ, which can be verified by entering the original URL in a browser.

An output of the changed URL helps to keep online source definitions up to date, speeding up frequent retrievals.  

SOFTWARE/OS VERSIONS
Windows: 10 
Linux: openSUSE Leap 15 
KDE Frameworks Version: 5.x 
Qt Version: 5.x

ADDITIONAL INFORMATION
Corresponding support is possible when using QtNetwork download support.
Comment 1 Ralf Habacker 2022-03-31 21:57:37 UTC
Git commit a5b1c728a8afa3f9d07db4f8262fca71990e6117 by Ralf Habacker.
Committed on 31/03/2022 at 21:57.
Pushed by habacker into branch '8.1'.

AlkOnlineQuote::Private: Add support to show redirected urls for BUILD_WITH_QTNETWORK

The visible message is marked with the use of I18N_NOOP for extraction,
but is not used to avoid an otherwise necessary wait for translations.
FIXED-IN:8.1.1

M  +25   -6    src/alkonlinequote.cpp

https://invent.kde.org/office/alkimia/commit/a5b1c728a8afa3f9d07db4f8262fca71990e6117