Commit Graph

4194 Commits (ce6fe2e749fd704467db368fbe08d99d9bcba545)
 

Author SHA1 Message Date
Antonio Doblas Viso 0be201458a #938 ogBurgInstallMbr() : binary may be in the ogLive or OGLIB/burg/burg.tgz
Check the availability of the binary in the ogLive. If necessary use the sources from $ OGLIB / burg / burg.tgz
Live. If necessary use the sources from $ OGLIB / burg / burg.tgz
2019-12-09 21:09:55 +01:00
Antonio Doblas Viso ca8168983e #937 #906 formRemotePartitionCloning: Show Target list from the "pintaConfiguraciones" table
Remote Cloning Wizard shows partition target  list as a query to the "pintaConfiguraciones" table.

Code from the other Wizards  is reused.
2019-12-09 20:28:15 +01:00
Antonio Doblas Viso 3cba7cfc3c #937 #906 formRemotePartitionCloning: show "partition configuration table"
Remote Cloning Wizard shows "partition configuration table" before the form.

The table shows the content of the images in the cache

Code from the other Wizards  is reused.
2019-12-09 20:28:15 +01:00
Antonio Doblas Viso bee527d3f0 #936 form deploy web shows duplicate partitions
The multidimensional array that is generated from the configurations doubled the entries.
The multidimensional array is changed to a simple array where the index is the string composed of disk id part id

The select "idpartition" form will have the array index as text.
2019-12-09 19:50:36 +01:00
Antonio Doblas Viso b3c0768539 #934 Web Netboot form not filter the PC group scope
The netboot web form does not correctly filter the computer group scope.
There is a BUG in the "case" to filter the scopes.
The file is boot_grub4dos.php
2019-12-09 18:56:45 +01:00
Irina Gomez d43a16a447 #914 Computer properties: Fix error in cancel button. 2019-12-05 14:08:05 +01:00
Irina Gomez a1a2a333c9 #914 PXE template for ogLive: support Ubuntu 18. The marks for windows boot are searched in windows partitions only. 'acodoner' gave this solution in [message:907]. 2019-12-05 13:19:24 +01:00
Irina Gomez f6ab0497b3 #802 #888 PXE default template for UEFI shows a menu with operating system loaders. Searchs grub, rEFInd, operating system restored with OpenGnsys, windows and Ubuntu. 2019-12-05 12:42:23 +01:00
Irina Gomez 541ddee383 #914 #811 setclientmode: Fix error for temporary change of PXE file. Adds permission to be call from console, for example with 'Ejecutar script' . 2019-12-05 11:50:09 +01:00
Ramón M. Gómez edfcca896a #914: Avoid installation on a previously installed system. 2019-12-04 18:54:28 +01:00
Ramón M. Gómez a5ed41010b #659: Using only compiled `rsync` command on old 32-bit ogLive clients. 2019-12-04 18:16:18 +01:00
Javier Sánchez Parra 8ecc409bda #915 Fix WoL command support in queued commands
Irina reports that the Wake on Lan command does not work in queued
commands.

This bug appeared when we fixed duplicated command execution when added
to the queue (ccb862b). It is caused because the client needs to be ON
to ask itself for the queued command, but the WoL command can not work
this way because the client is OFF.

This commit changes the behaviour of gestor_Comandos.php to always send
the WoL command immediately.
2019-12-03 17:34:06 +01:00
Ramón M. Gómez 0be52457e8 #914: Reverting installation URL to master branch after fixing last bug. 2019-12-01 13:16:40 +01:00
Ramón M. Gómez 6ab13a3149 #914: Fix bug when getting the release from a Git tag. 2019-11-30 21:44:01 +01:00
Ramón M. Gómez 062ea34989 #914: Reverting installation URL to `master` branch. 2019-11-29 13:15:36 +01:00
Ramón M. Gómez 153055fbbf #914: Releasing OpenGnsys 1.1.1 (Espeto). 2019-11-29 13:13:00 +01:00
Ramón M. Gómez 869f42581d #914: Linking database upgrade file from `pre` version to OpenGnsys 1.1.1 2019-11-29 13:09:26 +01:00
Ramón M. Gómez 1caf9936ad #914: Remove unused files. 2019-11-29 12:53:16 +01:00
Javier Sánchez Parra b2b8797b82 #924 Fix that only the commands without session were checked
Irina reports that the bug fixed in 78a97c5 happens again when you run a
command with a session (queue of actions).

The bug was introduced in 78a97c5, the goal of the commit was
to change the behaviour of respuestaEstandar to always check
the result of a command, whether it has a session or not. But, instead
of this behaviour, the commit changes respuestaEstandar to only check the
commands without session.
2019-11-25 13:19:41 +01:00
Ramón M. Gómez b551d58163 #914: Delete unused variables. 2019-11-25 12:58:22 +01:00
Ramón M. Gómez 08b7e126c2 #914: Adapting all scripts to use the `master` branch. 2019-11-25 11:22:48 +01:00
Irina Gomez 560358b544 #914 Fix error in repository properties when list images of organization unit with subdirectory separated. 2019-11-22 13:21:17 +01:00
Javier Sánchez Parra 00f0fe2358 #915 Fix WoL command support in procedures and tasks
Irina reports that the Wake on Lan command does not work in procedures.
The client/computer does not turn on, causing that any of the other
commands are executed.

This bug appears when we adapt the procedures and tasks to work with the
new API REST of the ogAdmServer. It is caused because the client needs
to be on to ask itself for the pending commands, but the WoL command can
not work this way because the client is off.

This commit changes the behaviour of recorreProcedimientos to send the
WoL command without the client has to ask.
2019-11-22 12:36:57 +01:00
Ramón M. Gómez 5118932da3 #839: Always update the partition types when obtaining the computer configuration. 2019-11-21 17:42:57 +01:00
Ramón M. Gómez d986707e24 #915: Add new ogAdmServer compilation dependency. 2019-11-21 14:14:09 +01:00
Ramón M. Gómez 8a2b568dfb #920: Remove white spaces when obtaining the client serial number. 2019-11-21 09:57:54 +01:00
Ramón M. Gómez 5db5a8b2ba #834: Delete duplicate lines in lab properties form. 2019-11-20 14:52:42 +01:00
Ramón M. Gómez a82d41435c #915 #932: Fix lost variable in Wake-On-Lan function. 2019-11-20 14:48:05 +01:00
Irina Gomez 101796b529 #915 Fix error: run_command needs parameter 'cadenamac' for WOL. 2019-11-20 12:50:35 +01:00
Irina Gomez d2e7f10f7a #914 Software inventory command in console improved info message when no operating system is detected. 2019-11-20 09:18:24 +01:00
Ramón M. Gómez 49ac7971d8 #839: Clearest code and fix typos in `rest/index.php` file. 2019-11-18 14:11:43 +01:00
Ramón M. Gómez 195753cec8 #839: Fix a PHP 7 compatibility bug in REST private functions `jsonResponseNow` to avoid HTTP error 500 and redefine some log messages. 2019-11-18 14:08:53 +01:00
Ramón M. Gómez dae2b131ff #816: Updating web REST API definition. 2019-11-15 13:41:48 +01:00
Roberto Hueso Gómez ccb862bed9 #915 Fix duplicated command execution when added to the queue
This patch fixes duplicated command execution by running queue scheduler instead
of directly calling the command's REST API function.

If command is already queued, then execute pending commands. Otherwise,
invoke the OgAdmServer REST API.
2019-11-15 12:39:38 +01:00
Roberto Hueso Gómez 666dd3f44c #915 Test malformed payload for POST commands
This patch includes tests for the remaining REST API commands:

	POST /shell/output
	POST /session
	POST /poweroff
	POST /reboot
	POST /stop
	POST /refresh
	POST /hardware
	POST /software
	POST /image/create
	POST /image/restore
	POST /setup
	POST /image/create/basic
	POST /image/create/incremental
	POST /image/restore/basic
	POST /image/restore/incremental
	POST /run/schedule

This test covers requests that are missing one of the parameters in its
payload.
2019-11-14 14:51:13 +01:00
Ramón M. Gómez b45357db9c #932: REST route `POST /repository/poweron` accepts MAC addresses without colon characters. 2019-11-14 14:23:38 +01:00
Irina Gomez 4d92ee0d2c #914 Fix error in message of [0531169] commit. 2019-11-14 11:44:14 +01:00
Irina Gomez a9123416dd #914 Login command in console improved info message when no operating system is detected. 2019-11-14 11:40:35 +01:00
Roberto Hueso Gómez 394ba0950a #915 Test malformed payload for POST /shell/run
This test covers requests that do not contain 1 of the parameters in their
payloads.
2019-11-13 14:16:02 +01:00
Roberto Hueso Gómez 5a54cec734 #915 Test malformed payload for POST /wol
This test covers requests that do not contain 1 of the parameters in their
payloads.
2019-11-13 14:16:01 +01:00
Roberto Hueso Gómez bbde0c133c #915 Test malformed payload for POST /clients
This test covers requests that do not contain 1 of the parameters in their
payloads.
2019-11-13 14:15:58 +01:00
Roberto Hueso Gómez 2f3d7f5309 #915 Return HTTP 400 error code in og_client_state_process_payload_rest
This patch meets RFC 7235 and returns an HTTP 400 error code when ogAdmServer
recieves a wrong request.
2019-11-13 14:15:57 +01:00
Roberto Hueso Gómez c1a046d205 #915 Extend REST API POST no payload tests to all remaining tests.
This patch extends tests for requests without any payload in the following REST
API POST functions:

- /clients
- /wol
- /shell/run
- /shell/output
- /session
- /poweroff
- /reboot
- /stop
- /refresh
- /hardware
- /software
2019-11-13 14:15:56 +01:00
Roberto Hueso Gómez 9381fdf5ce #915 Rename POST /image/setup for /setup in REST API
This patch renames the setup command to avoid semantic confusion.
2019-11-13 14:15:43 +01:00
Roberto Hueso Gómez e7ad0b867a #915 Adapt web to use 'echo' parameter of POST /shell/run 2019-11-12 21:37:11 +01:00
Roberto Hueso Gómez 6dc823e4d2 #915 Adapt POST /shell/run test to the 'echo' parameter 2019-11-12 21:37:11 +01:00
Roberto Hueso Gómez 454ab570c4 #915 Add 'echo' parameter to POST /shell/run
'echo' parameter makes possible for users to request the console output.
2019-11-12 21:37:11 +01:00
Roberto Hueso Gómez 18d237685d #915 Fix og_json_parse_clients flags for empty arrays
This patch prevents the flag OG_REST_PARAM_ADDR to be activated when the array
is empty.
2019-11-12 21:37:11 +01:00
Roberto Hueso Gómez 3aac64e42e #915 Validate POST /run/schedule 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 64aef4d001 #915 Validate POST /image/restore/incremental REST API parameters
This patch ensures that all required parameters are sent in the request.
2019-11-12 21:37:11 +01:00