Roberto Hueso Gómez
bd07a93fac
#915 Validate POST /image/restore/basic REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-12 21:37:11 +01:00
Roberto Hueso Gómez
3e6623df8e
#915 Validate POST /image/create/incremental REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-12 21:37:11 +01:00
Roberto Hueso Gómez
6c1b3a9138
#915 Validate POST /image/create/basic REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-12 21:37:11 +01:00
Roberto Hueso Gómez
12e25a97d9
#915 Validate POST /image/setup REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-12 21:37:11 +01:00
Ramón M. Gómez
16491c9c2e
#839 #915 : Fix bug in route `GET /ous/:ouid/labs/:labid/clients/:clntid/status` when a client has never connected to the server.
2019-11-12 19:32:16 +01:00
Ramón M. Gómez
afd6b4ee66
#925 : Script `settoken` changes REST token for users.
2019-11-11 17:41:54 +01:00
Ramón M. Gómez
e93dfe5f60
#839 : Use global function to execute commands in the database.
2019-11-11 17:38:05 +01:00
Ramón M. Gómez
83f20d1889
#839 : Do not check partition type when obtaining computer configuration to hide/unhide NTFS partitions.
2019-11-11 12:37:05 +01:00
Ramón M. Gómez
063caa5acb
#914 : Reverting commit `3df93ab` and using GAWK for regex compatibility.
2019-11-08 14:32:11 +01:00
Ramón M. Gómez
cf701e946f
#839 : New `checkrest` script to run automatic tests in the OpenGnsys Server REST API (includes the first 17 test).
2019-11-08 14:28:45 +01:00
Irina Gomez
0531169693
#914 deployImagen shows error message when image file is corrupt or was created with other partclone version.
2019-11-08 14:04:21 +01:00
Irina Gomez
3df93abeaa
#914 sendFileMcast changes filter of multicast parameter by compatibility with awk in Ubuntu16.
2019-11-08 11:41:12 +01:00
Juan Manuel Bardallo
aed3308c1b
Modificación para tratar discos nvme, la sintaxis generada por grub_probe no es la adecuada para arrancar este tipo de discos, se detecta y renombra la entrada del disco correspondiente con la nomenclatura: hd0,0 para discos nvme con tabla MSDOS y hd0,gpt1 para discos nvme con tabla GPT
2019-11-08 09:13:37 +01:00
Irina Gomez
a4f15eb8ae
#802 #888 ogGrubInstallMbr in UEFI computers: NVRAM entry for 'grub' is better detected, avoiding errors.
2019-11-06 12:58:52 +01:00
Roberto Hueso Gómez
bc0ad31b6a
#915 Validate POST /image/restore REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:29:42 +01:00
Roberto Hueso Gómez
072f5c5092
#915 Validate POST /image/create REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:27:47 +01:00
Roberto Hueso Gómez
c80150e1ab
#915 Validate POST /software REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:26:45 +01:00
Roberto Hueso Gómez
a0df5af724
#915 Validate POST /hardware REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:26:33 +01:00
Roberto Hueso Gómez
3402460091
#915 Validate POST /refresh REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:26:15 +01:00
Roberto Hueso Gómez
04a8c17d71
#915 Validate POST /stop REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:26:06 +01:00
Roberto Hueso Gómez
d86ddce3f5
#915 Validate POST /reboot REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:25:54 +01:00
Roberto Hueso Gómez
2aad3d9eaf
#915 Validate POST /poweroff REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:25:24 +01:00
Roberto Hueso Gómez
66ce511eb4
#915 Validate POST /session REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:24:24 +01:00
Roberto Hueso Gómez
22469c6586
#915 Validate POST /shell/output REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:22:35 +01:00
Roberto Hueso Gómez
3debec6024
#915 Validate POST /shell/run REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:17:19 +01:00
Roberto Hueso Gómez
becce94edd
#915 Validate POST /wol REST API parameters
...
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:16:59 +01:00
Roberto Hueso Gómez
70a698a122
#915 Validate POST /clients parameters
...
This patch adds og_msg_params_validate function as well as some flags that can
be used to validate parameters of a REST API request.
This patch ensures that all required parameters are sent in the request.
2019-11-06 11:16:36 +01:00
Roberto Hueso Gómez
d3bed4e91a
#915 Fix ogAdmServer POST /software test parameters
...
This patch adds missing parameters to the test JSON.
2019-11-06 11:16:22 +01:00
Javier Sánchez Parra
78a97c59c8
#924 Always check the result of a command to avoid errors
...
Irina reports that if you try to restore an image without success
(for example: the disk does not have enough space), the database changes
as if no error would happen. So you see the computer in the WebConsole
with an image/OS that, actually, does not have.
The bug is caused because the function respuestaEstandar only checks
the result of a command if it has a session. So the problem is that the
commands which use respuestaEstandar without a session can return an
error, but the ogAdmServer always works as no error would occur.
This commit changes the behaviour of respuestaEstadar to always check
the result of a command, whether it has a session or not.
2019-11-04 15:09:04 +01:00
Irina Gomez
a445889f0e
#802 #888 On UEFI computers, OpenGnsys installs grub to boot from the hard drive. You can use the rEFInd template example for computers without SecureBoot.
2019-11-04 13:58:45 +01:00
Roberto Hueso Gómez
082e812e18
#915 Add test for POST /run/schedule REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Roberto Hueso Gómez
1a73af69f0
#915 Add test for POST /image/restore/incremental REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Roberto Hueso Gómez
8303f96054
#915 Add test for POST /image/restore/basic REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Roberto Hueso Gómez
fedec037f4
#915 Add test for POST /image/create/incremental REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Roberto Hueso Gómez
7c85f5286b
#915 Add test for POST /image/create/basic REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Roberto Hueso Gómez
2293c0e087
#915 Add test for POST /image/setup REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Roberto Hueso Gómez
4c4efc04ad
#915 Add test for POST /image/restore REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Roberto Hueso Gómez
56b1b048b5
#915 Add test for POST /image/create REST API
...
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
2019-10-31 13:18:48 +01:00
Ramón M. Gómez
7cb1ca81dd
#915 : Remove duplicate parameter definitions in `restfunctions.php`.
2019-10-30 15:08:01 +01:00
Roberto Hueso Gómez
15243d40c7
#915 Fix run script command
...
This patch fixes run script command as it now uses REST API instead of
SocketHidra.
2019-10-30 13:22:05 +01:00
Ramón M. Gómez
940b1c7f51
#816 856: Scripts `setserveraddr` and etclientmode` use common Shell function file.
2019-10-29 14:32:47 +01:00
Roberto Hueso Gómez
5cef356b05
#915 Remove all references to SocketHidra
...
This patch removes all remaining references to SocketHidra. The existing
code uses the REST API ogAdmServer.
2019-10-29 14:22:31 +01:00
Roberto Hueso Gómez
03e3f88eef
#915 Remove dead code that uses SocketHidra
...
This patch removes files that are dead code and that also use SocketHidra.
2019-10-29 14:22:26 +01:00
Roberto Hueso Gómez
e21eb0caeb
#915 Remove dead function EjecutandoTareas() from gestor_tareas.php
...
There are no cases in which gestor_tareas.php is called with $op_ejecucion as
an option. Remove this function.
2019-10-29 14:22:23 +01:00
Roberto Hueso Gómez
37f3de613f
#915 Adapt gestor_Comandos.php to use the REST API
...
This patch removes the possibility of commands being executed using SocketHidra
and replaces it by the calls to the REST API.
It also prevents commands from being executed when they are intended to be added
to a task or scheduled.
2019-10-29 14:22:20 +01:00
Roberto Hueso Gómez
207a74b032
#915 Use og_cmd_legacy_send in og_cmd_run_schedule for ogAdmServer
...
This patch simplifies the og_cmd_run_schedule function by calling
og_cmd_legacy_send.
2019-10-29 14:22:08 +01:00
Irina Gomez
d0bf22a973
#802 #890 ogGrubInstallMbr: Adds NVRAM entry for grub and place it in second order.
2019-10-29 14:06:31 +01:00
Ramón M. Gómez
25bb3d131a
#816 : Define a new shell parameter to know if client is defined as a teaching computer.
2019-10-29 13:18:38 +01:00
Ramón M. Gómez
e020339b6e
#856 : Fix bug when updating repository IP address.
2019-10-29 10:47:49 +01:00
Irina Gomez
138234ea83
#804 Restore image and partition command: Fix the error when ungroup computers is selected.
2019-10-28 12:38:25 +01:00