Bug 27471 - Traceback beim einspielen von einer ungültigen Lizenz
Traceback beim einspielen von einer ungültigen Lizenz
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Florian Best
Lukas Walter
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-06 15:12 CEST by Florian Best
Modified: 2012-12-12 21:09 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2012-06-06 15:12:14 CEST
Beim einspielen einer kaputten/falschen Lizenzdatei per UMC gibt es folgenden Traceback:

Die Ausf�hrung des Kommandos udm/license/import ist fehlgeschlagen:

Traceback (most recent call last):
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py', line 102, in execute
    func( request )
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 130, in wrapper_func
    ret = func( *args, **kwargs )
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 196, in license_import
    importer.check( ldap_position.getBase() )
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/tools.py', line 55, in check
    self.parse()
  File '/usr/lib/python2.6/dist-packages/ldif.py', line 382, in parse
    attr_type,attr_value = self._parseAttrTypeandValue()
  File '/usr/lib/python2.6/dist-packages/ldif.py', line 325, in _parseAttrTypeandValue
    attr_value = base64.decodestring(unfolded_line[colon_pos+2:])
  File '/usr/lib/python2.6/base64.py', line 321, in decodestring
    return binascii.a2b_base64(s)
Error: Incorrect padding
Comment 1 Stefan Gohmann univentionstaff 2012-07-17 17:09:42 CEST
UCS 3.1 will be the next release.
Comment 2 Florian Best univentionstaff 2012-09-24 14:13:11 CEST
univention-management-console-module-udm (3.0.7-2) 

für die QA:
# cd /var/tmp/univention-management-console-frontend/
# dd if=/dev/urandom of=random.dat bs=1024 count=1000
# umc-upload udm/license/import -e -o '[{"filename":"foo", "tmpfile":"/var/tmp/univention-management-console-frontend/random.dat", "name":"foo"}]'
Comment 3 Lukas Walter univentionstaff 2012-10-12 12:47:33 CEST
Traceback wurde durch sinnige Fehlermeldung ersetzt.

Changelogeintrag fehlt noch -> Reopened.
Comment 4 Florian Best univentionstaff 2012-10-12 12:50:09 CEST
(In reply to comment #3)
> Traceback wurde durch sinnige Fehlermeldung ersetzt.
> 
> Changelogeintrag fehlt noch -> Reopened.
Changelog erstellt
Comment 5 Lukas Walter univentionstaff 2012-10-12 12:52:38 CEST
(In reply to comment #4)
> (In reply to comment #3)
> > Traceback wurde durch sinnige Fehlermeldung ersetzt.
> > 
> > Changelogeintrag fehlt noch -> Reopened.
> Changelog erstellt

Verified.
Comment 6 Stefan Gohmann univentionstaff 2012-12-12 21:09:52 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".