Skip to content

Report download unavailable and 'reports' directory created with owner as root #1093

Closed

Description

@duncangreene

Describe the bug
Strange one... A colleague ran a test on a device and is encountering the below when attempting to download the report file(s).

Image

Corresponding line in Testrun output.

Image

See below ls -l.

Image

I did wonder whether case sensitivity/similarity of device names thus directory names may be a contributor somewhere along the line? The testrun process was started as ossadmin using sudo testrun and has been running for a number of days with other reports accessible without issue.

Interestingly, even after suitable chown -R of the affected reports directory...

Image

...the report(s) are still unavailable for download.

Image

Error logs
This is the reports directory, containing 2 tests. The first one (that colleague was trying to initially download above), and a second one that should contain more useful info in the testrun.log file.

reports.zip

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

  • Version: 2.1

Additional context
Only modifications from official 2.1 release are as below.

  • resources/test_packs/qualification.json (Set tests to excluded/recommended/informational as appropriate)
  • resources/devices/device_profile.json (Add custom questions)

Activity

  1. duncangreene commented on Jan 30, 2025

    @duncangreene
    Author

    For the avoidance of doubt in case the similarity in directory names is a cause of concern, the two devices/directories do relate to two completely separate physical Tridium JACE 8000's with 2 entirely different configurations/ports open/etc.

    Image

  2. duncangreene commented on Feb 24, 2025

    @duncangreene
    Author

    We were able to recreate the root issue by doing the following.

    1. Add device with Manufacturer as "Delta".
    2. Run test on device and let it complete.
    3. Edit the device and change Manufacturer to "Delta Controls".
    4. Run test on device and let it complete.

    You can see the root ownership in the below comparison of an unedited (Eurotech) and edited (Delta Controls) device folder.

    Image

  3. self-assigned this
    on Apr 14, 2025
  4. jboddey commented on Apr 16, 2025

    @jboddey
    Contributor

    The solution here would be to set the device folder name to the MAC address. However, we went with Manufacturer and Model so that it is more readable.

  5. jboddey commented on Apr 22, 2025

    @jboddey
    Contributor

    To allow it to remain readable, we will append the MAC address to the folder name (keeping it unique). This should then fix the issue you are facing.

  6. duncangreene commented on Apr 22, 2025

    @duncangreene
    Author

    To allow it to remain readable, we will append the MAC address to the folder name (keeping it unique). This should then fix the issue you are facing.

    @jboddey just for the avoidance of doubt, is this to cover more the question of #1094?

    This issue specifically relates to the handling of post-test device renaming (Manufacturer or Model) and folder ownership/download issues. Presumably the same issue will manifest itself if post-device addition MAC address changes are made also.

  7. duncangreene commented on May 8, 2025

    @duncangreene
    Author

    Just confirming that the root issue is still present in 2.2.

    Image

    The above was achieved by following similar steps as already posted here, although in this case step 2 was not conducted (i.e. no test is required to be carried out first).

  8. added theissue type on May 23, 2025
  9. added
    BE
    on Jun 5, 2025
  10. hitnik commented on Jun 5, 2025

    @hitnik
    Collaborator

    The issue has been reported 422739482

  11. added
    triaged
    on Jun 6, 2025
  12. Aksinnia-Dzenisenka commented on Jun 13, 2025

    @Aksinnia-Dzenisenka
    Collaborator

    Hi! Thank you for reporting the issue.

    Changing Manufacturer/Model post-test is not allowed to avoid results manipulation.

    It is possible to add functionality to download old reports after the manufacturer name was changed, but old reports should have the previous manufacturer name.

  13. duncangreene commented on Jun 13, 2025

    @duncangreene
    Author

    Changing Manufacturer/Model post-test is not allowed to avoid results manipulation.

    It is possible to add functionality to download old reports after the manufacturer name was changed, but old reports should have the previous manufacturer name.

    @Aksinnia-Dzenisenka Is this comment more related to #1291? This particular issue above is referring to a permissions and download issue that will occur during day-to-day renaming/fixing typos/etc.

  14. KrystsinaT commented on Jun 29, 2026

    @KrystsinaT
    Collaborator

    Fixed in version 2.3.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BEtriaged

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions