NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
62 stars 20 forks source link

Error with duplicated apps in Software Center #6946

Closed DavidePrincipi closed 3 months ago

DavidePrincipi commented 3 months ago

If both "subscription" and "default" repositories are enabled, Software Center page raises an error.

Steps to reproduce

Expected behavior

I see a list of available/installed applications in the Software Center.

Actual behavior

Applications are listed twice and an error notification appears.

Image

This is the error detail:

Traceback (most recent call last):
  File "/var/lib/nethserver/cluster/actions/list-core-modules/50read", line 27, in <module>
    json.dump(cluster.modules.list_core_modules(), fp=sys.stdout)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/agent/pypkg/cluster/modules.py", line 292, in list_core_modules
    del(instance['module'])
        ~~~~~~~~^^^^^^^^^^
KeyError: 'module'

Components

Core 2.8.2

See also

Discussion https://mattermost.nethesis.it/nethesis/pl/xtzgc86ct7ryzeg55n4b1abame


Thanks to @amygos

DavidePrincipi commented 3 months ago

Test case

Test the bug is not reproducible with core 2.8.3-dev.2

Amygos commented 3 months ago

test case: VERIFIED

immagine immagine

DavidePrincipi commented 3 months ago

Released in https://github.com/NethServer/ns8-core/releases/tag/2.8.3