summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest
Commit message (Collapse)AuthorAgeFilesLines
* #1070 Fix SQL query in remotePC unreserve function.Irina Gómez2022-02-251-1/+1
|
* Revert "#915 Send command id in remotepc scheduling"Jose M. Guisado2021-07-211-4/+2
| | | | | Due to a regression reported in ticket #1051, ogserver scheduling falls back to use the session value instead of command id.
* #915 Send command id in remotepc schedulingJavier Sánchez Parra2021-06-161-2/+4
| | | | | | | | | Send command (formerly action) id on remotepc scheduling, instead of session number. Otherwise, ogServer can not find the command in the database. This patch is necessary because commit 076a797 in ogServer repo changes command query filter from session to id.
* #1043 Add WOL_SENT state supportJose M. Guisado2021-04-291-0/+1
| | | | | | Adds ogServer wol state, used to report WoL packet sending. This state can timeout (returning to off) or change to a new state after clients report a new one.
* #942 Adapt RemotePC API to use new queue implementationJavier Sánchez Parra2021-04-261-0/+6
| | | | | | | | | | RemotePC API queues commands only inserting them in the database and expects ogServer to find them and send them to its respective clients. Since v1.2.0, ogServer do not seek the database periodically searching for pending commands. Now ogServer expose an HTTP API to queue commands. This commit adapts RemotePC API to use new ogServer queue API.
* #992 REST route /ous/:ouid/labs/:labid/clients/:clntid/init:Irina Gómez2021-03-041-1/+1
| | | | The operation isn't remove on timeout.
* #992 REST route /ous/:ouid/labs/:labid/clients/:clntid/init:Irina Gómez2021-02-232-1/+38
| | | | | Fixes that include global variables, required to add the operating system startup to the action queue. This route is defined in swagger.
* #990 restfunctions: wol: require clients and wol_type params onlyJose M. Guisado2021-02-151-2/+2
| | | | | | | | | | | | Webconsole is directly querying the database to build the payload for requesting the ogServer a Wake On Lan. ogServer is expected to query the database for the netmask and mac parameters. Do not require the client request to have such parameters. Adjust calls to the wol php method by other OpenGnsys components. Fixes: a35b7c4 ("#990 Use client broadcast address on WoL")
* #839 Fixes problem of expulsion of the user from the session at 15min.Irina Gómez2021-01-201-1/+2
|
* #1006 Fix RemotePC IP retrieving on running clientsIsaac Vidal Daza2020-09-281-2/+2
| | | | | | | | | | | Error in the REST API response of /ous/:id1/labs/:id2/clients/status that returns the status of the computers in a classroom. It returns running PCs with an X.X.X.1 and X.X.X.2 IP address instead of those that are actually running, which are X.X.X.15 and X.X.X.16. The error cause is, when constructing the JSON response, a foreach that ignores the "keys" of the response array. This commit adds the "keys" to the foreach to iterate also through them.
* #1005 Add support for computer groups in RemotePCJosé Alberto Royo Ratia2020-09-281-0/+4
| | | | | | | | | | | When OpenGnsys is used via RemotePC, a failure occurs when classrooms with groups of computers are included because the processing and recursion is not controlled correctly because attempts are made to add objects to a null array. This commit adds and populates an array with the computers in the group. Reviewed-by: Javier Sánchez Parra <jsanchez@soleta.eu>
* #992: New REST route `/ous/:ouid/labs/:labid/clients/:clntid/init`Ramón M. Gómez2020-09-111-26/+172
| | | | New route to boot up a computer and init session on the operating systems where the image was restored. UDS will request this route when it detects that a reserved computer is turned off.
* #992: Set local session flag on user login or logout.Ramón M. Gómez2020-09-111-7/+10
|
* #990 Fix WOL call for RemotePCRoberto Hueso Gómez2020-07-311-2/+3
| | | | | This patch fixes the call to the WOL rest function by adapting it to the new API.
* #992: Release a reserved client if a user logs in a local session.Ramón M. Gómez2020-07-241-9/+19
|
* #992: Set/unset URL to release a client for remote access.Ramón M. Gómez2020-07-231-8/+14
|
* #991: Computers in maintenance mode will not be chosen for remote access.Ramón M. Gómez2020-07-171-0/+1
|
* #839: Fix index overflow in REST route `GET ↵Ramón M. Gómez2020-04-021-6/+7
| | | | /ous/{ouid}/labs/{labid}/clients/status`
* #839: Fix bug when creating database event.Ramón M. Gómez2020-04-011-7/+6
|
* #839: Clearest code and fix typos in `rest/index.php` file.Ramón M. Gómez2019-11-181-16/+15
|
* #839: Fix a PHP 7 compatibility bug in REST private functions ↵Ramón M. Gómez2019-11-181-28/+16
| | | | `jsonResponseNow` to avoid HTTP error 500 and redefine some log messages.
* #816: Updating web REST API definition.Ramón M. Gómez2019-11-151-43/+45
|
* #932: REST route `POST /repository/poweron` accepts MAC addresses without ↵Ramón M. Gómez2019-11-141-13/+15
| | | | colon characters.
* #839 #915: Fix bug in route `GET ↵Ramón M. Gómez2019-11-121-67/+59
| | | | /ous/:ouid/labs/:labid/clients/:clntid/status` when a client has never connected to the server.
* #915 Remove all references to SocketHidraRoberto Hueso Gómez2019-10-291-1/+0
| | | | | This patch removes all remaining references to SocketHidra. The existing code uses the REST API ogAdmServer.
* #839: Drop database event when remote access reservation is finished.Ramón M. Gómez2019-10-241-2/+4
|
* #839: Avoid error code 500 when redirecting a logout operation to the remote ↵Ramón M. Gómez2019-10-241-4/+5
| | | | access server (UDS).
* #915: Remove REST function `sendCommand` obsoleted by the ogAdmServer REST API.Ramón M. Gómez2019-10-231-38/+0
|
* #915: Adapt RemotePC reservation function to the new ogAdmServer REST API.Ramón M. Gómez2019-10-231-20/+7
|
* #915: REST function to get client status uses new ogAdmServer REST API.Ramón M. Gómez2019-10-231-28/+6
|
* #708: Fix a typo when composing the software inventory.Ramón M. Gómez2019-10-021-1/+1
|
* #839: Reservation (power-on) operation is also sent to client repository (as ↵Ramón M. Gómez2019-09-231-3/+17
| | | | in {{{e57b608}}} commit).
* #891: Boot (wake) command is sent by both server and client repository.Ramón M. Gómez2019-05-301-45/+19
|
* #892: extract ogAdmServer data from the configuration fileJavier Sánchez Parra2019-01-301-28/+36
|
* #892: Use ogAdmServer Wake on LanJavier Sánchez Parra2019-01-291-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gestor_Comando.php only execute wakeonlan_repo.php when wake up command is called. * wakeonlan_repo.php send new needed parameters for ogAdmServer WoL. * repository.php use ogAdmServer WoL instead of wakeonlan perl script. * opengnsys_installer.sh and opengnsys_update.sh don't have wakeonlan perl script dependency anymore. # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Mon Jan 28 10:22:57 2019 +0100 # # On branch devel # Your branch is ahead of 'origin/devel' by 1 commit. # (use "git push" to publish your local commits) # # Changes to be committed: # modified: admin/WebConsole/comandos/gestores/gestor_Comandos.php # modified: admin/WebConsole/comandos/gestores/wakeonlan_repo.php # modified: admin/WebConsole/rest/repository.php # modified: installer/opengnsys_installer.sh # modified: installer/opengnsys_update.sh # # Untracked files: # 0001-892-Use-ogAdmServer-Wake-on-Lan.patch # 0001-892-Use-ogAdmServer-Wake-on-Lan.zip #
* #834: Remove all redundant PHP closing tags.Ramón M. Gómez2019-01-235-5/+5
|
* #834: More PHP/HTML/CSS code cleanup.Ramón M. Gómez2019-01-231-0/+1
|
* #834: Check for more variable definitions and continue code cleanup.Ramón M. Gómez2019-01-211-0/+2
|
* #875: Remove unused field from repositories table and update list of closed ↵Ramón M. Gómez2018-11-211-1/+0
| | | | tickets.
* #843: API REST uses new version file.Ramón M. Gómez2018-06-122-10/+20
|
* #708: Corregir error en verificación de administrdor de UO.Ramón M. Gómez2018-05-232-53/+53
|
* #839: Correción en API REST para RemotePC: permitir sesión ilimitada si ↵ramon2018-04-302-9/+12
| | | | | | parámetro {{{deadLine=0}}}. git-svn-id: https://opengnsys.es/svn/branches/version1.1@5763 a21b9725-9963-47de-94b9-378ad31fedc9
* #816 #834: Incluir PC de profesor en API REST, limpiar código y revisar ↵ramon2018-03-061-75/+87
| | | | | | comentarios. git-svn-id: https://opengnsys.es/svn/branches/version1.1@5640 a21b9725-9963-47de-94b9-378ad31fedc9
* #804 uso de Mysqli por compatibilidad de php7irina2018-02-271-1/+1
| | | | git-svn-id: https://opengnsys.es/svn/branches/version1.1@5620 a21b9725-9963-47de-94b9-378ad31fedc9
* #730: Cambios menores:ramon2018-02-201-2/+5
| | | | | | | | | - Correcciones en comentarios. - Corrección al actualizar la BD. - Incluir {{{curl}}} en lista de paquetes a instalar en ogLive. - Volver a activar Wake-On-Lan al arrancar clientes. git-svn-id: https://opengnsys.es/svn/branches/version1.1@5601 a21b9725-9963-47de-94b9-378ad31fedc9
* #708: Compatibilidad con funciones horarias de PHP 5.6+.ramon2018-02-061-0/+6
| | | | git-svn-id: https://opengnsys.es/svn/branches/version1.1@5589 a21b9725-9963-47de-94b9-378ad31fedc9
* #718: Adaptar la API REST que atiende notificaciones de ''logout'' de OGAgent.ramon2017-12-202-3/+7
| | | | git-svn-id: https://opengnsys.es/svn/branches/version1.1@5539 a21b9725-9963-47de-94b9-378ad31fedc9
* #743: Mejoras en petición Wake-On-Lan a repositorio:ramon2017-12-141-1/+29
| | | | | | | | | * documentar API REST, * hacer una única llamada múltiple a todos los repositorios afectados, * mostrar aviso si ha habido algún problema de conexión con un repo, * incluir dependencias de instalación/actualización. git-svn-id: https://opengnsys.es/svn/branches/version1.1@5534 a21b9725-9963-47de-94b9-378ad31fedc9
* #743: Usar formato JSON en entrada a ruta REST {{{POST /repository/poweron}}}.ramon2017-12-141-5/+3
| | | | git-svn-id: https://opengnsys.es/svn/branches/version1.1@5533 a21b9725-9963-47de-94b9-378ad31fedc9
* #708: API REST guarda idioma de la sesión para adaptar los mensajes de fin ↵ramon2017-12-121-2/+14
| | | | | | de acceso remoto. git-svn-id: https://opengnsys.es/svn/branches/version1.1@5529 a21b9725-9963-47de-94b9-378ad31fedc9