Univention Bugzilla – Bug 45934
Importing license ldif fails (60_umc/80_udm_license)
Last modified: 2018-03-14 14:38:06 CET
Importing a license ldif file via the UMC module fails. (Test case 60_umc/80_udm_license). The backend shows this error log message: 19.12.17 19:33:53.702 MODULE ( ERROR ) : License import failed (malformed LDIF): ValueError('Line 2: First line of record does not start with "dn:": \'objectClass\'',)
The "dn:" of our test ldif file was not at the start of the LDIF. The old ldif.LDIFParser accepted this malformed LDIF file. The new one doesn't anymore. I adjusted the LDIF file in our test. ucs-test (8.0.2-1) 605b90ce97bf | Bug #45934: fix test case 60_umc/80_udm_license interim version, no changelog required.
The test fails on master s3: Following errors occurred: -adding computer with free for personal use license: Die Operation ist f\xfcr dieses Objekt nicht erlaubt. Objekte des Objekttyps "computers/windows" k\xf6nnen nicht erstellt werden. -adding user: Der Wert darf nicht ver\xe4ndert werden. Attribut=locked alter Wert=None neuer Wert=0 The licenses were imported successfully
(In reply to Johannes Keiser from comment #2) > -adding user: > Der Wert darf nicht ver\xe4ndert werden. Attribut=locked alter Wert=None > neuer Wert=0 → This is fixed in the latest univention-directory-manager-modules package. Can you upgrade and test again please? Maybe the other test is fixed then, too.
Fixed just as Florian said.
OK Test is green OK changes -> verified
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".