No way to override/clear the force.url.secure property

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.

Attachments

1
  • 07 Mar 2012, 02:04 PM

Activity

Show:

Steve Swinsburg January 28, 2013 at 3:10 PM

1.2.x 118912, 118913

Gregory Thomas May 31, 2012 at 6:51 AM

r108792 - 1.3 merge for the kernel portion, 2.9 merge for config portion

Aaron Zeckoski March 7, 2012 at 2:31 PM

default.sakai.properties updated (just the docs for the property) to indicate that 0 indicates default insecure behavior

Hudson CI Server March 7, 2012 at 2:27 PM

Integrated in kernel-trunk #471 (See http://builds.sakaiproject.org:8080/job/kernel-trunk/471/)
https://sakaiproject.atlassian.net/browse/KNL-895#icft=KNL-895 add mechanism for overriding the force.url.secure property (Revision 105621)

Result = SUCCESS

Aaron Zeckoski March 7, 2012 at 2:04 PM

Attaching the patch for this change (my super basic testing indicates this seems to work but more QA should be done)

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Labels

Property addition/change required

Yes

Created March 4, 2012 at 7:06 PM
Updated April 25, 2018 at 3:20 PM
Resolved March 7, 2012 at 2:31 PM

Flag notifications