Skip to content

Download links from Testing UI do not resolve if accessing Testrun from different IP addresses/hostnames #892

@duncangreene

Description

@duncangreene

Describe the bug
The download links in the Testing UI do not resolve if accessing Testrun via different IP addresses/hostnames.

In this case I have a machine 192.168.0.67 running Testrun, I am web browsing to it from another machine 192.168.0.55. All Testrun browsing is working okay, with the exception of the download links in the Testing window, that appear to not be relative URLs, and instead try to resolve against localhost.

To Reproduce
Steps to reproduce the behavior:

  1. Web browse to Testrun from an external machine (e.g. http://192.168.0.67:8080/).
  2. Run a test and let it complete. Cancel out of the report download modal window once the test has completed.
  3. Attempt to Download PDF or ZIP file as below.
    Image
  4. Error as below.
    Image

Expected behavior
Download link should resolve to a relative URL, to cater for accessing Testrun via hostname/IP address/localhost/behind NAT/etc.

Environment (please provide the following information about your setup):

  • OS: Ubuntu
  • Version 24.04.1
  • Testrun 2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    criticalAn issue or request that is required urgentlyframeworkInvolves backend components (e.g framework or test modules)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions