Bug 32404 - ucs_registerUDMSyntax library function
ucs_registerUDMSyntax library function
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-lib
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Arvid Requate
Stefan Gohmann
: interim-3
Depends on: 32406
Blocks: 32421
  Show dependency treegraph
 
Reported: 2013-08-28 14:23 CEST by Arvid Requate
Modified: 2014-03-20 16:24 CET (History)
1 user (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 Arvid Requate univentionstaff 2013-08-28 14:23:48 CEST
A function ucs_registerUDMSyntax schould be implemented in univention-lib which

* takes the name of an existing UDM syntax file
* creates an univentionUDMSyntax object in UDM
* saves the given file to the UDM property "univentionUDMSyntax"
* sets the UDM property "univentionUDMSyntaxFilename"
* sets some other attributes useful to track creator package and version number.

* The creator package (.deb) and version number is detected automatically.
* The cn schould reflect <basename of the file>_<version number>.
Comment 1 Arvid Requate univentionstaff 2013-08-28 16:18:57 CEST
The string <AppID>_<AppVersion> should be stored in an attribute univentionAppIdentifier as tracking reference e.g. for Bug 32418.
Comment 2 Arvid Requate univentionstaff 2013-08-28 16:41:57 CEST
ucs_unregisterUDMSyntax is also required (e.g. for unjoinscripts), to remove the object in case no App is registered any longer for it.
Comment 3 Arvid Requate univentionstaff 2013-09-10 16:38:42 CEST
Implemented in shell-univention-lib. Changelog comitted.
Comment 4 Arvid Requate univentionstaff 2013-09-16 18:03:06 CEST
Now merged into more general functions:

ucs_registerLDAPExtension "$@" --udm_syntax <filename>

ucs_unregisterLDAPExtension "$@" --udm_syntax <objectname>
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2013-09-26 14:33:40 CEST
ucs_registerLDAPExtension does not write UNIVENTION_APP_IDENTIFIER to LDAP.
Setting the app identifier via UDM CLI seems to work flawlessly
→ found by ucs-test 04_register_and_verify_test_app_id
→ REOPEN

ucs_registerLDAPExtension does not write version start and version end to LDAP.
Setting the range via UDM CLI seems to work flawlessly
→ found by ucs-test 05_register_and_verify_version_start_end
→ REOPEN

ucs_registerLDAPExtension does not compare the package versions correctly. The new package always seems to have a lower package version number.
→ found by ucs-tests 10_update_extension_via_package, 
  11_update_extension_via_package_expected_fail and 
  12_update_extension_via_other_packagename
→ REOPEN
Comment 6 Arvid Requate univentionstaff 2013-10-07 14:04:02 CEST
See Bug #32401 Comment 8.
Comment 7 Stefan Gohmann univentionstaff 2013-10-31 12:27:48 CET
The auto tests were passed.
Comment 8 Stefan Gohmann univentionstaff 2013-11-19 06:43:54 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

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