Bug 56669 - [ox-connector] incompatible OX settings preventing expected bahaviour
[ox-connector] incompatible OX settings preventing expected bahaviour
Status: NEW
Product: Z_Internal OX development
Classification: Unclassified
Component: Documentation
UCS 5.0 / 7.10.6
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-09-27 10:29 CEST by Daniel Tröder
Modified: 2023-09-27 10:39 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.171
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 Daniel Tröder univentionstaff 2023-09-27 10:29:17 CEST
Various OX properties must be set, to ensure an expected behavior.

Failing to do so (using the default settings), for example leads to the test test_cache::test_rename_user always failing. In the ox-connector.log:

---------------------------------------------------------------------------------------
https://jenkins2022.knut.univention.de/job/UCS-5.0/job/UCS-5.0-5/view/all/job/product-test-component-ox-connector/3/testReport/tests/test_cache/test_rename_user/
---------------------------------------------------------------------------------------
2023-09-26 17:25:29 WARNING Traceback (most recent call last):
2023-09-26 17:25:29 WARNING   File "/tmp/univention-ox-connector.listener_trigger", line 341, in run_on_files
2023-09-26 17:25:29 WARNING     function(obj)
2023-09-26 17:25:29 WARNING   File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/__init__.py", line 86, in run
2023-09-26 17:25:29 WARNING     modify_user(obj)
[..]
2023-09-26 17:25:29 WARNING   File "/usr/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 329, in process_error
2023-09-26 17:25:29 WARNING     raise Fault(
2023-09-26 17:25:29 WARNING zeep.exceptions.Fault: Changing username is disabled!; exceptionId -1480253657-6
---------------------------------------------------------------------------------------

The reason is, that by default the username is not allowed to change.
* Default file: /opt/open-xchange/etc/AdminUser.properties:USERNAME_CHANGEABLE=false
* OX Docs: https://documentation.open-xchange.com/components/middleware/config/7.10.6/#USERNAME_CHANGEABLE

---------------------------------------------------------------------------------------

Actually there are a few more settings that are missing. See https://git.knut.univention.de/univention/open-xchange/appsuite/-/blob/5.0/univention-ox/sbin/ox-server-install#L207

Add the following settings to the documentation (https://docs.software-univention.de/ox-connector-app/latest/installation.html):

ox/cfg/AdminUser.properties/CHECK_USER_UID_FOR_NOT_ALLOWED_CHARS=false
ox/cfg/AdminUser.properties/PRIMARY_MAIL_UNCHANGEABLE=false
ox/cfg/AdminUser.properties/USERNAME_CHANGEABLE=true
ox/cfg/Group.properties/CHECK_GROUP_UID_FOR_NOT_ALLOWED_CHARS=false

---------------------------------------------------------------------------------------

When you're at it, also change the documentation to not add 
-------
com.openexchange.folderstorage.database.preferDisplayName=false
-------
to "user.properties". It belongs in the file "foldercache.properties".
Comment 1 Daniel Tröder univentionstaff 2023-09-27 10:39:51 CEST
(In reply to Daniel Tröder from comment #0)
> When you're at it, also change the documentation to not add 
> -------
> com.openexchange.folderstorage.database.preferDisplayName=false
> -------
> to "user.properties". It belongs in the file "foldercache.properties".

'false' is the default. It is not necessary to set this:

https://documentation.open-xchange.com/components/middleware/config/7.10.6/#com.openexchange.folderstorage.database.preferDisplayName

It can be removed from the documentation.