Bug 41913

Summary: allow only lowercase app id
Product: UCS Reporter: Felix Botner <botner>
Component: App CenterAssignee: App Center maintainers <appcenter-maintainers>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P5 CC: best, wiesenthal
Version: UCS 4.1   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=41535
What kind of report is it?: Bug Report What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017 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:

Description Felix Botner univentionstaff 2016-08-04 13:02:11 CEST
seems that the app id is used for some special docker operations (commit), unfortunately these operations have restrictions ->

removed a docker app (eduSharing):

4fb9681', 'appcenter-backup-eduSharing:1470265060']' returned non-zero exit status 1
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/__init__.py", line 182, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/remove.py", line 48, in main
    return self.do_it(args)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/install_base.py", line 107, in do_it
    self._do_it(app, args)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_remove.py", line 49, in _do_it
    super(Remove, self)._do_it(app, args)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/remove.py", line 54, in _do_it
    self._remove_app(app, args)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_remove.py", line 55, in _remove_app
    self._remove_docker_container(app, args)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_remove.py", line 59, in _remove_docker_container
    if self._backup_container(app, backup_data='move') is False:
  File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/docker_base.py", line 86, in _backup_container
    image_id = docker.commit(image_name)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/docker.py", line 308, in commit
    return commit(self.container, new_image_name)
  File "/usr/lib/pymodules/python2.7/univention/appcenter/docker.py", line 216, in commit
    return check_output(['docker', 'commit', container, new_base_image])
  File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['docker', 'commit', '191074e241f832cbd6f69784be8acb81c77296b0fa23b0c1c409203a64fb9681', 'appcenter-backup-eduSharing:1470265060']' returned non-zero exit status 1



->  docker commit ...e8acb81c77296b0fa23b0c1c409203a64fb9681 appcenter-backup-eduSharing:1470265060
FATA[0000] Invalid repository name (appcenter-backup-eduSharing), only 
[a-z0-9-_.] are allowed 

->  docker commit ...e8acb81c77296b0fa23b0c1c409203a64fb9681 appcenter-backup-edusharing:1470265060
38494e4df5794bb765f00f1095586011c59769362856d0152ac9ec00ec9c7d6a
Comment 1 Stefan Gohmann univentionstaff 2019-01-03 07:22:42 CET
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.