• Bug#1109042: unblock: horizon/3:25.3.0-2

    From Thomas Goirand@21:1/5 to All on Thu Jul 10 11:40:01 2025
    XPost: linux.debian.devel.release

    This is a multi-part MIME message sent by reportbug.


    Package: release.debian.org
    Severity: normal
    User: [email protected]
    Usertags: unblock
    X-Debbugs-Cc: [email protected]
    Control: affects -1 + src:horizon

    Please unblock package horizon

    [ Reason ]
    This is a fix for:
    https://bugs.debian.org/1108931

    What's going on is that Horizon tried to import from a folder
    that is gone once the last plugin is removed.

    What I did is a simple try/catch thingy, so that it wont
    crash, and then not include the enabled code when it does
    not exist. The diff is simple and is more easy to understand
    than my explanations, I believe.

    [ Impact ]
    Stack dump in collect_static when removing the last plugin.

    [ Tests ]
    Tried manually that it fixed, and it indeed works.

    [ Risks ]
    Not much risk.

    [ Checklist ]
    [x] all changes are documented in the d/changelog
    [x] I reviewed all changes and I approve them
    [x] attach debdiff against the package in testing

    unblock horizon/3:25.3.0-2

    diff --git a/debian/changelog b/debian/changelog
    index 49ed3f785..befa030ec 100644
    --- a/debian/changelog
    +++ b/debian/changelog
    @@ -1,3 +1,11 @@
    +horizon (3:25.3.0-3) unstable; urgency=medium
    +
    + * Refreshed:
    + Dont_load_user_role_assignment_or_groups_tabs_for_non-admins.patch.
    + * Add do-not-import-enabled-if-no-plugins.patch (Closes: #1108931).
    +
    + -- Thomas Goirand <[email protected]> Thu, 10 Jul 2025 11:09:04 +0200
    +
    horizon (3:25.3.0-2) unstable; urgency=medium

    * Uploading to unstable.
    diff --git a/debian/patches/Dont_load_user_role_assignment_or_groups_tabs_for_non-admins.patch b/debian/patches/Dont_load_user_role_assignment_or_groups_tabs_for_non-admins.patch
    index 2846f892c..356401c1a 100644
    --- a/debian/patches/Dont_load_user_role_assignment_or_groups_tabs_for_non-admins.patch
    +++ b/debian/patches/Dont_load_user_role_assignment_or_groups_tabs_for_non-admins.patch
    @@ -21,7 +21,7 @@ Index: horizon/openstack_dashboard/dashboards/identity/users/tabs.py
    ===================================================================
    --- horizon.orig/openstack_dashboar