Bug 49500 - ldap_extension: validation failed for univention-app.schema
ldap_extension: validation failed for univention-app.schema
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-0-errata
Assigned To: Felix Botner
Florian Best
:
Depends on:
Blocks: 49596
  Show dependency treegraph
 
Reported: 2019-05-17 10:06 CEST by Felix Botner
Modified: 2019-06-05 10:13 CEST (History)
0 users

See Also:
What kind of report is it?: Development Internal
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 Felix Botner univentionstaff 2019-05-17 10:06:11 CEST
Recently the ldap schema extension validation failed in some jenkins test (http://jenkins.knut.univention.de:8080/job/UCS-4.4/job/UCS-4.4-0/job/AutotestJoin/SambaVersion=s4,Systemrolle=master-part-II/ws/test/autotest-091-master-s4-part-II.log/*view*/).

Unfortunately the output seems to be broken see, python/ldap_extension.py

 # Slapschema doesn't fail on schema errors, errors are 
 # printed to stdout (Bug #45571)
 ud.debug(ud.LISTENER, ud.ERROR, '%s: validation failed:\n%s.' % (name, stdout))

but:

-> slapschema >/dev/null
5cddc2bc /var/lib/univention-ldap/local-schema/univention-app.schema: line 18: unknown directive <ttributetype> outside backend info and database definitions.
slapschema: bad configuration file!
-> slapschema 2>/dev/null

So first step is to also print stderr to the log.
Comment 1 Felix Botner univentionstaff 2019-05-17 10:22:13 CEST
f796d69d8e3e8f31004d643cefbc1e6409f95772 univention-lib
dcc921c11be11affba9082147adaa5f3da4abbff yaml
Comment 2 Florian Best univentionstaff 2019-05-20 17:09:02 CEST
OK: stderr is logged.
BTW: subprocess.Popen(..., stderr=subprocess.STDOUT) would write both into stdout.
~OK: YAML description
Comment 3 Arvid Requate univentionstaff 2019-05-29 13:24:27 CEST
<http://errata.software-univention.de/ucs/4.4/125.html>