Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
No way to override/clear the force.url.secure property
GENERAL
TESTING
GENERAL
TESTING
Description
I have an installation defined with the property force.url.secure=443 in sakai.properties
I also have a local.properties and security.properties file for specific overrides.
On a particular instance I want to disable the force secure setting as I am running http only.
However there is no way to do that. If I set the value to a blank value (in local or security.properties, ie as an override) in an attempt to clear it, then it throws a NumberFormatException.
So once the setting has a value it must always have a value, AND forces URLs to be https. The code should be adjusted so that a blank value negates any previous value that has been set.
I have an installation defined with the property force.url.secure=443 in sakai.properties
I also have a local.properties and security.properties file for specific overrides.
On a particular instance I want to disable the force secure setting as I am running http only.
However there is no way to do that. If I set the value to a blank value (in local or security.properties, ie as an override) in an attempt to clear it, then it throws a NumberFormatException.
So once the setting has a value it must always have a value, AND forces URLs to be https. The code should be adjusted so that a blank value negates any previous value that has been set.