From 9045989186209e0aa3b06b94b06e3a2a700481bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Wed, 23 Apr 2014 12:26:55 +0000 Subject: [PATCH 01/12] Tagging release From de80b268808d3d5eda37bd3b52d00bc82984b798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Mon, 28 Apr 2014 15:30:12 +0000 Subject: [PATCH 02/12] Fixed a couple bugs with authenticators left behind in tests --- server/src/uds/auths/RegexLdap/Authenticator.py | 2 +- server/src/uds/templates/uds/html5/login.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/uds/auths/RegexLdap/Authenticator.py b/server/src/uds/auths/RegexLdap/Authenticator.py index 94c61a84..5866b4ee 100644 --- a/server/src/uds/auths/RegexLdap/Authenticator.py +++ b/server/src/uds/auths/RegexLdap/Authenticator.py @@ -32,7 +32,7 @@ @author: Adolfo Gómez, dkmaster at dkmon dot com ''' -from __future__ import unicode_literals +# from __future__ import unicode_literals from django.utils.translation import ugettext_noop as _ from uds.core.ui.UserInterface import gui diff --git a/server/src/uds/templates/uds/html5/login.html b/server/src/uds/templates/uds/html5/login.html index b0ef6a8a..4f7ce901 100644 --- a/server/src/uds/templates/uds/html5/login.html +++ b/server/src/uds/templates/uds/html5/login.html @@ -45,6 +45,7 @@ if( standard.length > 0 ) { $('#backToLogin').click(function() { $('#id_authenticator').val(standard[0]); + $('.selectpicker').selectpicker('render'); $('#nonStandard').hide(300, function() { $('#nonStandardLogin').html(''); $("#login").show(300); @@ -104,4 +105,4 @@ {% endautoescape %} -{% endblock %} \ No newline at end of file +{% endblock %} From 15df5b81413ccdb379bf7d4eef6ac339d8f4077c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Thu, 8 May 2014 09:01:09 +0000 Subject: [PATCH 03/12] Fixed a couple incidences with UTF8 and SAML --- server/src/server/settings.py.sample | 1 + server/src/uds/REST/model.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/server/settings.py.sample b/server/src/server/settings.py.sample index 7072d106..07d84029 100644 --- a/server/src/server/settings.py.sample +++ b/server/src/server/settings.py.sample @@ -158,6 +158,7 @@ MIDDLEWARE_CLASSES = ( SESSION_EXPIRE_AT_BROWSER_CLOSE = True SESSION_COOKIE_HTTPONLY = False +SESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer' ROOT_URLCONF = 'server.urls' diff --git a/server/src/uds/REST/model.py b/server/src/uds/REST/model.py index ebaeb496..ec842202 100644 --- a/server/src/uds/REST/model.py +++ b/server/src/uds/REST/model.py @@ -44,7 +44,7 @@ import logging logger = logging.getLogger(__name__) -__updated__ = '2014-03-22' +__updated__ = '2014-05-08' # a few constants @@ -548,6 +548,7 @@ class ModelHandler(BaseModelHandler): def put(self): logger.debug('method PUT for {0}, {1}'.format(self.__class__.__name__, self._args)) + self._params['_request'] = self._request if len(self._args) > 1: # Detail? return self.processDetail() From a7f96d39334a689ad6d335ce6c330017c9b9aeb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Fri, 9 May 2014 09:57:40 +0000 Subject: [PATCH 04/12] Fixed Storage codec (was utf-8, not uft-8) --- server/src/uds/core/util/Storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/core/util/Storage.py b/server/src/uds/core/util/Storage.py index 0f554d32..49cc7d61 100644 --- a/server/src/uds/core/util/Storage.py +++ b/server/src/uds/core/util/Storage.py @@ -86,7 +86,7 @@ class Storage(object): return self.readData(skey) def getPickle(self, skey): - return cPickle.loads(self.readData(skey).encode('uft-8')) + return cPickle.loads(self.readData(skey).encode('utf-8')) def remove(self, skey): try: From 051bf0358b779455474741ade631257d5be730ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Fri, 9 May 2014 14:27:19 +0000 Subject: [PATCH 05/12] Fixed "detect java" --- server/src/uds/templates/uds/html5/detectJava.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/templates/uds/html5/detectJava.html b/server/src/uds/templates/uds/html5/detectJava.html index dac967f2..e4aff816 100644 --- a/server/src/uds/templates/uds/html5/detectJava.html +++ b/server/src/uds/templates/uds/html5/detectJava.html @@ -3,7 +3,7 @@ {% block title %}{% trans "Login redirection to UDS" %}{% endblock %} -{% block script %} +{% block js %}