Hi Mohib,
Sorry for the late answer, but, we could fix all problems by ourselves. Next a detailed report how we fixed this two problems:
The "`ScimProperties`" were set to "`None`" in "`oxTrustConfApplication`", causing the following error:
```bash
Traceback (most recent call last):
File "upg4xto450.py", line 1845, in <module>
updaterObj.update_persistence_data()
File "upg4xto450.py", line 706, in update_persistence_data
self.apply_persist_changes(js_conf, self.persist_changes[(config_element, config_dn, object_class)])
File "upg4xto450.py", line 902, in apply_persist_changes
js_conf[key][value[0]] = value[1]
TypeError: 'NoneType' object does not support item assignment
```
I applied the following patch to define a empty dictionary, if subentries should be added and the parent is "`None`":
```bash
--- upg4xto450.py.orig 2023-03-06 05:26:04.606453262 +0000
+++ upg4xto450.py 2023-03-07 11:38:57.623909445 +0000
@@ -899,6 +899,8 @@
if how_change == 'entry':
js_conf[key] = value
if how_change == 'subentry':
+ if js_conf[key] == None:
+ js_conf[key] = {}
js_conf[key][value[0]] = value[1]
elif change_type == 'remove':
if how_change == 'entry':
```
After that, the upgrade script worked.
During the start, another error occured in "`/opt/gluu/jetty/idp/logs/2023_03_07.jetty.log`":
```sh
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.gluu.idp.externalauth.openid.conf.IdpConfigurationFactory]: Constructor threw exception; nested exception is org.gluu.persist.exception.MappingException: Failed to convert json value '{"conne
ctProtectionList":["None","StartTls","SslTls"],"valid":false,"host":"","port":0,"connect-protection":"SslTls","trust-host":false,"from-name":"","from-email-address":"","requires-authentication":false,"user-name":"","password":"","key-store":"/etc/certs/smtp-keys.pkcs12","
key-store-password":"BASE64VALUE","key-store-alias":"smtp_sig_ec256","signing-algorithm":"SHA256withECDSA"}' to object of type class org.gluu.model.SmtpConfiguration
```
Since we do not need SMTP configuration I just set an empty dictionary "`{}`" into "oxSmtpConfiguration", restarted the Gluu container and it worked. The default values of
```json
{"valid":false,"connectProtectionList":["NONE","START_TLS","SSL_TLS"],"host":null,"port":0,"connect-protection":null,"trust-host":false,"from-name":null,"from-email-address":null,"requires-authentication":false,"user-name":null,"password":null,"key-store":null,"key-store-password":null,"key-store-alias":null,"signing-algorithm":null}
```
where inserted into "`oxSmtpConfiguration`" afterwards.
It should look like following, if no SMTP server is must be defined or used:
```json
{
"connect-protection": null,
"connectProtectionList":
[
"NONE",
"START_TLS",
"SSL_TLS"
],
"from-email-address": null,
"from-name": null,
"host": null,
"key-store": null,
"key-store-alias": null,
"key-store-password": null,
"password": null,
"port": 0,
"requires-authentication": false,
"signing-algorithm": null,
"trust-host": false,
"user-name": null,
"valid": false
}
```
I hope, this helps other persons to solve their upgrade problems,
Regards, Daniel