aaronparker / evergreen

Create evergreen Windows image build pipelines with the latest version numbers and download URLs for common applications
http://stealthpuppy.com/evergreen/
MIT License
382 stars 66 forks source link

[Bug]: FoxitReader is returning an old version #756

Open PatcherPanther opened 1 month ago

PatcherPanther commented 1 month ago

What happened?

The current version of Foxit PDF reader in Evergreen is 2023.3.0, while the latest update is 2024.3.0

Version

2409.1385

What PowerShell edition/s are you running Evergreen on?

Windows PowerShell

Which operating system/s are you running Evergreen on?

Windows 10+, Windows Server 2016+

Have you reviewed the documentation?

Verbose output

Get-EvergreenApp -name FoxitReader -verbose
VERBOSE: Function path: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2409.1419\Apps\Get-FoxitReader.ps1
VERBOSE: Function exists: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2409.1419\Apps\Get-FoxitReader.ps1.
VERBOSE: Dot sourcing: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2409.1419\Apps\Get-FoxitReader.ps1.
VERBOSE: Get-FunctionResource: read application resource strings from [C:\Program Files\WindowsPowerShell\Modules\Evergreen\2409.1419\Manifests\FoxitReader.json]
VERBOSE: Calling: Get-FoxitReader.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: MaximumRedirection: 2.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: DisableKeepAlive: True.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0
Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: Method: Default.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: Uri:
https://www.foxitsoftware.com/portal/download/getdownloadform.html?retJson=1&product=Foxit-Reader&platform=Windows&formId=download-reader.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: ContentType: application/json; charset=utf-8.
VERBOSE: GET with 0-byte payload
VERBOSE: received -1-byte response of content type text/html; charset=UTF-8
VERBOSE: Get-FoxitReader: Found version: 2023.3.0.23028.
VERBOSE: Get-FoxitReader: Return details for language: Danish.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Danish&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Dutch.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Dutch&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: English.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=English&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_enu_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Finnish.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Finnish&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: French.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=French&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: German.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=German&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Italian.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Italian&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Norwegian.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Norwegian&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Polish.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Polish&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Portuguese(Brazil).
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Portuguese(Brazil)&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Russian.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Russian&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Spanish.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Spanish&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].
VERBOSE: Get-FoxitReader: Return details for language: Swedish.
VERBOSE: Resolve-SystemNetWebRequest: Attempting to resolve:
https://www.foxitsoftware.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=Windows&version=2023.3.0.23028&package_type=msi&language=Swedish&distID=.
VERBOSE: Resolve-SystemNetWebRequest: Resolved to: [https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi].
VERBOSE: ConvertTo-DateTime: Converting: [11/22/23].
VERBOSE: ConvertTo-DateTime: Attempting to convert date format to: en-US.
VERBOSE: ConvertTo-DateTime: Returning date: [11/22/2023].

Version        Date       Language           URI
-------        ----       --------           ---
2023.3.0.23028 11/22/2023 Portuguese(Brazil) https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Polish             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Norwegian          https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Swedish            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Spanish            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Russian            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Italian            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 English            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_enu_Setup.msi
2023.3.0.23028 11/22/2023 Dutch              https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Danish             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 German             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 French             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
2023.3.0.23028 11/22/2023 Finnish            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup.msi
aaronparker commented 1 month ago

The JSON used to find the version number is returning 2023.3.0.23028 - not sure why:

{
    "package_info": {
        "language": {
            "Danish": "Danish",
            "Dutch": "Dutch",
            "English": "English",
            "Finnish": "Finnish",
            "French": "French",
            "German": "German",
            "Italian": "Italian",
            "Norwegian": "Norwegian",
            "Polish": "Polish",
            "Portuguese": "Portuguese(Brazil)",
            "Russian": "Russian",
            "Spanish": "Spanish",
            "Swedish": "Swedish"
        },
        "type": [
            "exe"
        ],
        "version": [
            "2023.3.0.23028",
            "2023.2",
            "12.1.0.15250",
            "12.0.0.12394",
            "10.0.0.35798",
            "9.7.2.29539",
            "9.7.0.29455",
            "9.6.0.25114",
            "9.5.0.20723",
            "9.4.1.16828",
            "9.4.0.16811",
            "9.3.0.10826",
            "9.2.0.9297",
            "8.3.2.25013"
        ],
        "size": "-",
        "release": "11/22/23",
        "os": "Windows 11, 10, 8, and 7",
        "down": "/product/reader/desktop/win/2023.3.0/FoxitPDFReader20233_L10N_Setup_Prom.exe",
        "mirror": "",
        "manual": "",
        "big_version": "2023.3.x"
    }
}
aaronparker commented 1 month ago

Omitting the version number from the URL used to resolve the installer gets us the right download URLs:

Version        Date       Language           URI
-------        ----       --------           ---
2023.3.0.23028 22/11/2023 Danish             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Dutch              https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 English            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_enu_Setup.msi
2023.3.0.23028 22/11/2023 Finnish            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 French             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 German             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Italian            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Norwegian          https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Polish             https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Portuguese(Brazil) https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Russian            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Spanish            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
2023.3.0.23028 22/11/2023 Swedish            https://cdn01.foxitsoftware.com/product/reader/desktop/win/2024.3.0/FoxitPDFReader20243_L10N_Setup.msi
aaronparker commented 3 weeks ago

Lastest module version will return the correct installer URLs; however, we're reliant on Foxit to fix the JSON source for the version numbers.