From ebe3ab8cd0fde4138a5a946f621a54a38fda9cbf Mon Sep 17 00:00:00 2001 From: Ricardo Dalinger Date: Mon, 24 Jan 2022 17:09:53 -0300 Subject: [PATCH 1/4] Evita notice al lidiar con una tarea planificada --- php/nucleo/lib/toba_planificador_tareas.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/nucleo/lib/toba_planificador_tareas.php b/php/nucleo/lib/toba_planificador_tareas.php index 50de8038c..ec188d193 100644 --- a/php/nucleo/lib/toba_planificador_tareas.php +++ b/php/nucleo/lib/toba_planificador_tareas.php @@ -42,7 +42,8 @@ function programar_tarea(toba_tarea $tarea, $timestamp, $intervalo=null, $nombre //Inserta el objeto serializado en el BLOB $pdo = $db->get_pdo(); $stmt = $pdo->prepare($sql); - $stmt->bindParam(1, serialize($tarea), PDO::PARAM_LOB); + $tarea_serializada = serialize($tarea); + $stmt->bindParam(1, $tarea_serializada, PDO::PARAM_LOB); $stmt->execute(); $id_tarea = $db->recuperar_secuencia('apex_tarea_seq'); From 115a5f914bfbb92486ff94cf30d5fa36de1aae07 Mon Sep 17 00:00:00 2001 From: Ricardo Dalinger Date: Mon, 14 Feb 2022 16:57:22 -0300 Subject: [PATCH 2/4] Fix error de instanciacion del logger al terminarse la sesion --- php/nucleo/lib/toba_manejador_sesiones.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/nucleo/lib/toba_manejador_sesiones.php b/php/nucleo/lib/toba_manejador_sesiones.php index 9cda33a99..301fc9397 100644 --- a/php/nucleo/lib/toba_manejador_sesiones.php +++ b/php/nucleo/lib/toba_manejador_sesiones.php @@ -749,11 +749,11 @@ private function control_finalizacion_sesion() $ultimo_acceso = $_SESSION[TOBA_DIR]['instancias'][$this->instancia]['proyectos'][$this->proyecto]['info_sesion']['ultimo_acceso']; $tiempo_desconectado = ((time()-$ultimo_acceso)/60);//Tiempo desde el ultimo REQUEST if ( $tiempo_desconectado >= $ventana) { - toba::notificacion('Usted ha permanecido varios minutos sin interactuar + toba::notificacion()->agregar('Usted ha permanecido varios minutos sin interactuar con el servidor. Por razones de seguridad su sesion ha sido eliminada. Por favor vuelva a registrarse si desea continuar utilizando el sistema. Disculpe las molestias ocasionadas.'); - toba_logger::error("Se exedio la ventana temporal ($ventana m.)"); + toba_logger::instancia()->error("Se exedio la ventana temporal ($ventana m.)"); throw new toba_error_autorizacion('Se exedio la ventana temporal'); } } @@ -763,7 +763,7 @@ private function control_finalizacion_sesion() $inicio_sesion = $_SESSION[TOBA_DIR]['instancias'][$this->instancia]['proyectos'][$this->proyecto]['info_sesion']['inicio']; $tiempo_total = ((time()-$inicio_sesion)/60);//Tiempo desde que se inicio la sesion if ( $tiempo_total >= $maximo) { - toba::notificacion('Se ha superado el tiempo de sesion permitido + toba::notificacion()->agregar('Se ha superado el tiempo de sesion permitido Por favor vuelva a registrarse si desea continuar utilizando el sistema. Disculpe las molestias ocasionadas.'); toba_logger::instancia()->error("Se exedio el tiempo maximo de sesion ($maximo m.)"); From da10960c04cfcbbd4bdccfeccd027b0c152880b3 Mon Sep 17 00:00:00 2001 From: Ricardo Dalinger Date: Mon, 14 Feb 2022 17:01:20 -0300 Subject: [PATCH 3/4] Remueve dependencias de paquete externo --- www/js/utilidades/jquery-ui/package.json | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/www/js/utilidades/jquery-ui/package.json b/www/js/utilidades/jquery-ui/package.json index e3c846e3a..ad36e77d4 100644 --- a/www/js/utilidades/jquery-ui/package.json +++ b/www/js/utilidades/jquery-ui/package.json @@ -53,19 +53,6 @@ "dependencies": {}, "devDependencies": { "commitplease": "2.3.0", - "grunt": "0.4.5", - "grunt-bowercopy": "1.2.4", - "grunt-cli": "0.1.13", - "grunt-compare-size": "0.4.0", - "grunt-contrib-concat": "0.5.1", - "grunt-contrib-csslint": "0.5.0", - "grunt-contrib-jshint": "0.12.0", - "grunt-contrib-qunit": "1.0.1", - "grunt-contrib-requirejs": "0.4.4", - "grunt-contrib-uglify": "0.11.1", - "grunt-git-authors": "3.1.0", - "grunt-html": "6.0.0", - "grunt-jscs": "2.1.0", "load-grunt-tasks": "3.4.0", "rimraf": "2.5.1", "testswarm": "1.1.0" From 59a6c7ec50f345cf322798f89502f4bf98b7fb47 Mon Sep 17 00:00:00 2001 From: Ricardo Dalinger Date: Mon, 14 Feb 2022 17:08:54 -0300 Subject: [PATCH 4/4] Changelog Update & Version Bump --- CHANGELOG.md | 4 ++++ VERSION | 2 +- package.json | 2 +- proyectos/toba_editor/proyecto.ini | 2 +- proyectos/toba_referencia/proyecto.ini | 2 +- proyectos/toba_usuarios/proyecto.ini | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20cd5c61d..721faa020 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ [CURRENT](https://github.com/SIU-Toba/framework/compare/master...develop) +[3.3.23](https://github.com/SIU-Toba/framework/releases/tag/v3.3.23) (2022-02-14) +- Fix instanciacion incorrecta del logger al superarse el tiempo de sesión +- Fix notice al lidiar con tareas serializadas + [3.3.22](https://github.com/SIU-Toba/framework/releases/tag/v3.3.22) (2021-12-23) - Fix por escapado multiple en mensajes de error - Se actualizan los siguientes paquetes diff --git a/VERSION b/VERSION index c21e5b4eb..d244a1e79 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.22 +3.3.23 diff --git a/package.json b/package.json index 80c0ea7b8..d447d319d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "siu-toba-framework", - "version": "3.3.22", + "version": "3.3.23", "description": "Framework para desarrollo rápido de aplicaciones web", "license": "SEE LICENSE IN licencia.txt", "repository": "https://github.com/SIU-Toba/framework.git", diff --git a/proyectos/toba_editor/proyecto.ini b/proyectos/toba_editor/proyecto.ini index 76ed9604d..93b4f09b8 100644 --- a/proyectos/toba_editor/proyecto.ini +++ b/proyectos/toba_editor/proyecto.ini @@ -6,7 +6,7 @@ mail_soporte = url_ayuda = doc/wiki/trac/toba/wiki/ ;Versi? del proyecto, debe ser formato x.y.z -version = 3.3.22 +version = 3.3.23 ;Nombre de fantas? de la versi? version_fantasia = diff --git a/proyectos/toba_referencia/proyecto.ini b/proyectos/toba_referencia/proyecto.ini index 44a615ec4..e5dc4ed66 100644 --- a/proyectos/toba_referencia/proyecto.ini +++ b/proyectos/toba_referencia/proyecto.ini @@ -8,7 +8,7 @@ url_ayuda_agregar_extension = 0 mostrar_resize_fuente = 1 ;Versi? del proyecto, debe ser formato x.y.z -version = 3.3.22 +version = 3.3.23 api_major = 1 api_minor = 0 diff --git a/proyectos/toba_usuarios/proyecto.ini b/proyectos/toba_usuarios/proyecto.ini index ab52eb063..5b02c26d2 100644 --- a/proyectos/toba_usuarios/proyecto.ini +++ b/proyectos/toba_usuarios/proyecto.ini @@ -5,7 +5,7 @@ descripcion = Descripci? del proyecto mail_soporte = ;Versi? del proyecto, debe ser formato x.y.z -version = 3.3.22 +version = 3.3.23 app_launcher = 1 ;Nombre de fantas? de la versi?