[BUG] The 7070
port of the redirect URL is replaced by 0
when trying to connect (4G-LTE) to an OAuth2 WFS service: oauthlib error raised. QField 3.0.7 (35e3ee)
#4812
Labels
upstream
Issue in an upstream library
Describe the issue
When trying to connect to a WFS service (provided by a GeoMapFish instance using an OAuth2 connection, it seems that the port (
7070
) of the redirect URL is replaced by0
. Indeed, it tries to reachhttp://127.0.0.1:0/
instead ofhttp://127.0.0.1:7070/
(this last URL being the one configured in the QGIS project) therefore, the server throws an internal server error when receiving that URL:The same problem occurs when setting a different port (e.g.
80
,443
, or other values) in the redirect URL parameter of the OAuth2 authentication tab: it consistently tries to reachhttp://127.0.0.1:0/
instead of the specified port.Reproduction steps
Steps to reproduce the behavior:
Expected behavior
It should be redirected to the following URL, which is the proper one (it's working with QGIS Desktop 3.22.16):
https://server.ch/login?type=oauth2&response_type=code&client_id=***********************&redirect_uri=http%3A%2F%2F127.0.0.1%3A7070%2F
Observed behavior
See "Describe the issue" above.
Mobile (please complete the following information)
Additional information
I was not able to find out a debug tool or a developer toolbox that can capture some events or messages inside QField before loading a project. This would be great to help debugging such early issue.
Thanks for your precious support and all the nice job done on QField.
The text was updated successfully, but these errors were encountered: