Bug 50498

Summary: AppCenter: one shot schema registration for installation (and re-installation ...)
Product: UCS Reporter: Felix Botner <botner>
Component: App CenterAssignee: App Center maintainers <appcenter-maintainers>
Status: NEW --- QA Contact: App Center maintainers <appcenter-maintainers>
Severity: normal    
Priority: P5 CC: gulden
Version: UCS 4.4   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
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:

Description Felix Botner univentionstaff 2019-11-14 12:50:30 CET
Seems that the schema registration is triggered only once per app, even if the app is removed and re-installed.

install with failure during registration

* installation of app
* ldap schema registration
* ldap_extensions listener is triggerd, schema registation fails
* now, the app is removed from the appcenter, but not the schema 
  (which is good, we do not remove ldap schemas)

re-installation

* but as one tries to install the app again, the ldap schema registration 
  does not trigger the ldap_extensions listener (the ldap object for the
  schema already exists and is not changed in a way, that the listener
  handler is triggered)

Workaround, remove the settings/ldapschema object (but that is not the solution!)