Bug 55020 - StoreAppAction 'NoneType' object has no attribute 'split_app_string'
StoreAppAction 'NoneType' object has no attribute 'split_app_string'
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-2-errata
Assigned To: Iván.Delgado
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-22 11:07 CEST by Iván.Delgado
Modified: 2022-08-17 17:32 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Patch fix StoreAppAction (921 bytes, patch)
2022-07-22 11:10 CEST, Iván.Delgado
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Iván.Delgado univentionstaff 2022-07-22 11:07:44 CEST
root@ucs-8358:~# univention-app selfservice-import 4.4/self-service "Software Inc" --publish
Traceback (most recent call last):
  File "/usr/bin/univention-app", line 97, in <module>
    main()
  File "/usr/bin/univention-app", line 75, in main
    args = parser.parse_args()
  File "/usr/lib/python3.7/argparse.py", line 1758, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib/python3.7/argparse.py", line 1790, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python3.7/argparse.py", line 1978, in _parse_known_args
    positionals_end_index = consume_positionals(start_index)
  File "/usr/lib/python3.7/argparse.py", line 1955, in consume_positionals
    take_action(action, args)
  File "/usr/lib/python3.7/argparse.py", line 1864, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/lib/python3.7/argparse.py", line 1161, in __call__
    subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
  File "/usr/lib/python3.7/argparse.py", line 1790, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python3.7/argparse.py", line 1978, in _parse_known_args
    positionals_end_index = consume_positionals(start_index)
  File "/usr/lib/python3.7/argparse.py", line 1955, in consume_positionals
    take_action(action, args)
  File "/usr/lib/python3.7/argparse.py", line 1864, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 80, in __call__
    app = self.cache_class.split_app_string(val)
AttributeError: 'NoneType' object has no attribute 'split_app_string'
Comment 1 Iván.Delgado univentionstaff 2022-07-22 11:10:23 CEST
Created attachment 10966 [details]
Patch fix StoreAppAction
Comment 3 Iván.Delgado univentionstaff 2022-08-15 15:56:33 CEST
I've fixed the issue using the patch.

a28d1ad7
833e2875
7e0bde49

univention-appcenter 9.0.3-2A~5.0.0.202208151547
Comment 4 Dirk Wiesenthal univentionstaff 2022-08-17 12:46:30 CEST
Now works in case app_class is None.

(Does not happen in the actual univention-appcenter package; needed for the App Provider Portal)