Bug 31989 - univention-ldap: temporary schema file not deleted
univention-ldap: temporary schema file not deleted
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Arvid Requate
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-16 13:48 CEST by Philipp Hahn
Modified: 2013-11-19 06:41 CET (History)
2 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): Cleanup
Max CVSS v3 score:


Attachments
Fix /etc/init.d/slapd (2.66 KB, patch)
2013-07-16 13:48 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2013-07-16 13:48:06 CEST
Created attachment 5326 [details]
Fix /etc/init.d/slapd

On each (re-)start of /etc/init.d/slapd the complete schema is duped to a temporary file to calculate an MD5 sum. The file is not deleted and and fills up valuable space.
This is especially problematic during testing, where slapd is restarted often.

The attached patch fixes this following issues:
1. Use integer comparison
2. Use ucs.is_true()
3. Remove temporary file
4. Re-indent function to use tabs.
Comment 1 Arvid Requate univentionstaff 2013-10-17 16:52:53 CEST
Code and changelog adjusted.
Comment 2 Stefan Gohmann univentionstaff 2013-10-25 21:52:04 CEST
Code: OK
Tests: OK
Changelog: OK
Comment 3 Stefan Gohmann univentionstaff 2013-11-19 06:41:44 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".