admin-systemsettings page goes into read-only mode after changing "Share Hostname" and then restarting Alfresco.
[Steps to reproduce]
1. Install and start up Alfresco.
2. Go to the admin-systemsettings page
3. Change the value of "Share Hostname", and Save it.
4. Restart Alfresco
5. Go to the admin-systemsettings page
6. Change the value of "Share Hostname" again, and try to save it.
- Actual Behaviour
We cannot save it with this error message. Please find the screenshot named error.png for further assistance.
- Expected Behaviour.
We should be able to save with the changed value.
Once we get the error, we cannot fix the error until we change the value through JMX console (Alfresco > Configuration > sysAdmin > Attributes > share.host ), because it is a persistent JMX bean, otherwise these values are stored in
database of alf_prop_string_value table as follows,
These values does not exist until we start changing values through System Summary as that is a persistent JMX beans, otherwise these will be created only when we change the value. Also, when we change the value again through Jconsole, it will create an additional line at a time, rather than updating the existing value as follows,
We can clean them up by one of the ootb schedule jobs named propTableCleanup job. Once we run it, only the latest one will remain as follows,
But, the whole repository will be in read-only mode after restarting Alfresco after we clean them up by the job and update the latest one like this query. This could also be happened when we initialise database. Some of customers at implementation stage tends to initialise database, otherwise it is possible to get the read-only problem for the whole repository like the customer who requested this Jira.
So, the only way we can recover is to change the value through JMX console as a work around.