Failed to get the release date for an old AppGallery app #1630
Labels
bug
Something isn't working
needs follow up
Further information is requested
source-specific
This bug/feature affects a specific source
Obtainium fails to find the release date for
https://appgallery.cloud.huawei.com/appdl/C104450749
and, possibly, other apps published years ago.Steps to Reproduce:
https://appgallery.cloud.huawei.com/appdl/C104450749
.FormatException: Trying to read yy from ru-/d-l/-ap-pd-l/-ap-pl-ic-at-io-n/-ap-k/-32-/3-2d-dd-aa-c6-30-34-75-b9-6d-cb-98-04-da-16-96-4/-16-66-97-26-48-78-4--16-55-e5-a0--e-85-5--46-33--9-34-6--42-66-7a-74-4c-5c at 0
or another beginning.Investigation
The server redirects to
https://appdlc-drru.hispace.dbankcloud.ru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c.apk?maple=0&trackId=0&distOpEntity=HKS
The app adds numerous dashes due to the lines:
Obtainium/lib/app_sources/huaweiappgallery.dart
Lines 80 to 84 in cbe41de
Before that, the app gets the first part of the URL:
Obtainium/lib/app_sources/huaweiappgallery.dart
Lines 76 to 77 in cbe41de
Namely,
res.headers['location']
ishttps://appdlc-drru.hispace.dbankcloud.ru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c.apk?maple=0&trackId=0&distOpEntity=HKS
(or another host, depending on the load balancer).res.headers['location']?.split('?')[0]
ishttps://appdlc-drru.hispace.dbankcloud.ru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c.apk
(or another host, depending on the load balancer).res.headers['location']?.split('?')[0].split('.').reversed.toList()[1]
isru/dl/appdl/application/apk/32/32dddaac6303475b96dcb9804da16964/1666972648784-1655e5a0-e855-4633-9346-42667a744c5c
(or another beginning, depending on the load balancer).See that the latter contains no
'.'
.The Solution
Check whether
relDateStr
contains a'/'
.Obtainium/lib/app_sources/huaweiappgallery.dart
Lines 78 to 87 in cbe41de
The text was updated successfully, but these errors were encountered: