Prerequisites
Either GitHub search fails or this is a new issue indeed.
Describe the bug
In an AppGallery URL, there may be the cloud part already present. Without the proper check, the app adds the part into the URL. This may result in a malformed URL and the corresponding error:
ClientException with SocketException: Failed host lookup: 'appgallery.cloud.cloud.huawei.com' (OS Error: No address associated with hostname, errno = 7), uri=https://appgallery.cloud.cloud.huawei.com/appdl/C000000000
To Reproduce
Go to the main screen.
Tap on Add App
In the App Source URL field, enter https://appgallery.cloud.huawei.com/appdl/C000000000 (or with a valid app number)
Select Override Source to Huawei AppGallery.
Click the Add button.
See the error message.
Please complete the following information:
Device: Motorola moto g¹⁰⁰ (XT2125-4)
OS: Android 12 (S1RTS32.41-20-16-1-9)
Obtainium Version: 1.1.6
Additional context
When I enter the URL I can get from the browser (like https://appgallery.huawei.com/#/app/C000000000), the app complains that the URL is invalid. The trick is to replace the /#/app/ part with /appdl/. This is not trivial. Please consider the fix for that, too.
Prerequisites Either GitHub search fails or this is a new issue indeed.
Describe the bug
In an AppGallery URL, there may be the
cloud
part already present. Without the proper check, the app adds the part into the URL. This may result in a malformed URL and the corresponding error:To Reproduce
https://appgallery.cloud.huawei.com/appdl/C000000000
(or with a valid app number)Please complete the following information:
Additional context When I enter the URL I can get from the browser (like
https://appgallery.huawei.com/#/app/C000000000
), the app complains that the URL is invalid. The trick is to replace the/#/app/
part with/appdl/
. This is not trivial. Please consider the fix for that, too.