Skip to content

Script-only packages with the same filename stem are indistinguishable in list views #53696

Closed

Description

@Brajim20

Fleet versions

  • Discovered: 4.93.0-rc.2609212342 (rev 71341116b4)
  • Reproduced: main (rev f87401fec7) on a second instance

Web browser and operating system: Chromium 147.0.7727.15 (Playwright) on macOS 27.0


💥 Actual behavior

Script-only packages whose filenames share a stem but differ in extension (hello.py, hello.sh, hello.ps1) all produce software titles named hello. Nothing in the list views tells them apart:

  • Software › Inventory — one row per package, every one named hello, every one typed Script-only package (macOS & Linux), every Version ---.
  • Controls › Setup experience › Install software — same rows, same name, each with its own checkbox. The checkboxes select different installers, so an admin can pick the wrong interpreter for setup experience with nothing on screen to indicate it and no error.

The title detail page does show the filename in the Library card, so this is limited to list views.

Image Image

🛠️ Expected behavior

Script-only packages that resolve to the same title name should be tellable apart in list views, at least wherever they can be individually selected.

🧑‍💻 Steps to reproduce

These steps:

  • Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
  • Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
  1. Create a fleet.
  2. Save two script files that share a stem:
    • hello.py containing #!/usr/bin/env python3 and print("hello from python")
    • hello.sh containing #!/bin/sh and echo "hello from sh"
  3. Go to Software › Add software › Custom package for that fleet and upload hello.py. Repeat for hello.sh.
  4. Go to Software › Inventory — two rows, both named hello, same Type, same --- Version.
  5. Go to Controls › Setup experience › Install software › macOS — the same two hello rows, each with its own checkbox.

🕯️ More info

Not specific to .py — .sh and .ps1 collide the same way, so this did not arrive with Python script packages. Any two script-only packages sharing a stem collide.

Script-only titles take the filename minus its extension as the title name (ee/server/service/software_installers.go:2804). That line is already present at the v4.80.0 tag, so this has been reachable for a long time.

Ordinary naming gets you there: install.sh alongside install.ps1 is a common cross-platform pairing.

Found while verifying #49087. No existing issue found — #28108 is closed and covers multiple packages under one title, which is the opposite case.

Activity

  1. added
    bugSomething isn't working as documented
    ~frontendFrontend-related issue.
    ~released bugThis bug was found in a stable release.
    #g-auto-patchingProduct group focused on auto patching software
    on Sep 22, 2026
  2. self-assigned this
    on Oct 5, 2026
  3. added this to the 4.94.0 milestone on Oct 5, 2026
  4. Brajim20 commented on Oct 5, 2026

    @Brajim20
    MemberAuthor

    QA Pass — 9/9 checks on main (rev 2ac91b368e) vs rc-minor-fleet-v4.93.0 (rev bc215a449f). Same-stem .py/.sh/.ps1 packages in Software Inventory and Setup experience (Linux, Windows, macOS), filename search, select + save, custom display names, long names, and non-script packages.

    # Type Case Pre-fix Fixed
    1 Core Inventory: hello.py + hello.sh in one fleet ❌ reproduced: two identical hello rows ✅ hello (hello.py), hello (hello.sh)
    2 Core Setup experience › Install software › Linux ❌ reproduced: two identical hello rows ✅ labels match Inventory
    3 Core Setup experience › Install software › macOS ➖ n/a: tab gated (no ABM on this box) ✅ labels match Inventory
    4 Core Pick the .py row and Save ❌ reproduced: can't tell which row is which ✅ only hello.py is set to install during setup; label persists after reload
    5 Core Setup experience search for hello.py ❌ reproduced: no results ✅ only hello (hello.py); case-insensitive; .py matches every .py package
    6 Halo .ps1 with custom display name, Windows tab + Inventory ✅ Hello Windows ✅ Hello Windows (hello.ps1)
    7 Halo Long same-stem pair (configure-corporate-vpn-client-settings.sh/.py) in Inventory ❌ reproduced: identical rows ✅ full label in the hover tooltip (cut off when not hovered)
    8 Regression .deb, .msi labels ✅ ✅ unchanged, no suffix
    9 Regression Search by title name hello ✅ both rows ✅ both rows
    Image Image Image Image Image
  5. moved this from ✅ Ready for release to Done in ❤️‍🩹 #g-auto-patchingon Oct 29, 2026
  6. fleet-release commented on Oct 29, 2026

    @fleet-release
    Contributor

    Packages share a name
    filename shows the difference
    clarity matters

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

Metadata

Metadata

Assignees

Labels

#g-auto-patchingProduct group focused on auto patching softwarebugSomething isn't working as documented~frontendFrontend-related issue.~released bugThis bug was found in a stable release.

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions