Bug 41770

Summary: Prepare App Center for Self Service (3)
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: damrose
Version: UCS 4.1   
Target Milestone: UCS 4.1-2-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: 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:
Bug Depends on:    
Bug Blocks: 41771    

Description Dirk Wiesenthal univentionstaff 2016-07-12 03:40:04 CEST
We need .udeb support (Debian Installer package - used in UCS@school) and there is a bug in the dpkg-name replacement code: The order was not always correct.

Also add univention-app dev-use-test-appcenter. Setting up the Test App Center now is more than one UCRV.
Comment 1 Erik Damrose univentionstaff 2016-07-13 11:09:02 CEST
If the ini file is malformed or missing required fields, only the following traceback is shown: 

    Die Ausführung des Kommandos appcenter-selfservice/upload ist fehlgeschlagen:
     
    Traceback (most recent call last):
      File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 283, in execute
        function(self, request)
      File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 628, in _response
        return function(self, request)
      File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter-selfservice/__init__.py", line 264, in upload
        self._add_meta_file(upload_type, app, uploaded_file, filename_as_uploaded, clear)
      File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter-selfservice/__init__.py", line 398, in _add_meta_file
        self._process_dir(tmp_dir, split_app_dir(app.get_cache_dir()))
      File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter-selfservice/__init__.py", line 436, in _process_dir
        app.component_id = dst_dir.component_id
    AttributeError: 'NoneType' object has no attribute 'component_id'
Comment 2 Dirk Wiesenthal univentionstaff 2016-07-14 11:04:58 CEST
univention-appcenter 5.0.21-19.190.201607141025

New command:
  univention-app dev-use-test-appcenter  [--revert]
Comment 3 Dirk Wiesenthal univentionstaff 2016-07-18 11:27:47 CEST
(In reply to Dirk Wiesenthal from comment #2)
> univention-appcenter 5.0.21-19.190.201607141025
> 
> New command:
>   univention-app dev-use-test-appcenter  [--revert]

This is basically:
ucr set repository/app_center/server=appcenter-test.software-univention.de \
  update/secure_apt=no \
  appcenter/index/verify=no
univention-app update
Comment 4 Felix Botner univentionstaff 2016-07-18 14:38:52 CEST
OK - udeb (i can see udeb packages on the test appcenter, code looks good)
OK - dev-use-test-appcenter
OK - yaml
Comment 5 Janek Walkenhorst univentionstaff 2016-07-21 15:16:24 CEST
<http://errata.software-univention.de/ucs/4.1/218.html>