Commit Graph

3627 Commits (a0df5af7248f31bab8a799268e35373936d5911c)
 

Author SHA1 Message Date
Irina Gomez c422dd5420 #847 ogclientSqfs2Img and ogclientImg2Sqfs: Auxiliary file size is increased to fit the content of the second file system. 2019-08-20 17:26:48 +02:00
Irina Gomez ad6671af1b #802 #888 PXE templates for UEFI: 'default' and '1hd' support secure boot for 'rEFInd'. 'default' searches for installed boot loaders and displays a menu. 'ogLiveAdmin' only starts from the network (not from the cache) 2019-08-20 17:26:48 +02:00
Irina Gomez 41b417cb4d #802 For EFI partition: in console in 'RestoreImage' command can't select it and deploy wizard show a message. 2019-08-20 17:26:48 +02:00
Irina Gomez 692ed7a7c7 #923 deployImage exits if detects error in updateCache. updateCache exits if it detects error when copying torrent file. 2019-08-20 17:26:48 +02:00
Irina Gomez 76901a2eae #802 #890 ogGrubInstallXx: grub's first stage finds grub.cfg correctly for computers no UEFI. 2019-08-20 17:26:48 +02:00
Irina Gomez 39720c640a #912 opengnsys_update.sh: the script is fixed that inclued '/' at the end the REPO APITOKEN in repository configuration. 2019-08-20 17:26:48 +02:00
Irina Gomez 2213b9a353 Virtual machine based in Ubuntu 18. 2019-08-20 17:26:48 +02:00
Irina Gomez 25a73948e3 Functions for management Windows Registry: chntpw need '-e' option for edit registry (in ogLive bionic-5.0.0) 2019-08-20 17:26:48 +02:00
Javier Sánchez Parra 335066864a #915 do not print misleading API error on web console
Irina reports a raw array showing in the web console when calling the
new ogAdmServer API.

var_export() prints the error message on the web instead of syslog.
Changing var_export() for print_r() solves this bug.
2019-08-20 17:26:48 +02:00
Irina Gomez a3cd65cddc #921 Fixs 'Action queue': explode in php 7 don't support several delimiters. 2019-08-20 17:26:48 +02:00
OpenGnSys Support Team 0101534fb0 #891 fix crash in wol command
Irina reports a crash in the wol command on Ubuntu 18.04 and gcc 7.4.0:

==9542== Process terminating with default action of signal 6 (SIGABRT)
==9542==    at 0x6C37E97: raise (raise.c:51)
==9542==    by 0x6C39800: abort (abort.c:79)
==9542==    by 0x6C82896: __libc_message (libc_fatal.c:181)
==9542==    by 0x6D2DCD0: __fortify_fail_abort (fortify_fail.c:33)
==9542==    by 0x6D2DC91: __stack_chk_fail (stack_chk_fail.c:29)
==9542==    by 0x111DB1: WakeUp(int, char*, char*, char*) (ogAdmServer.cpp:1390)
==9542==    by 0x11199F: Levanta(char**, char**, int, char*) (ogAdmServer.cpp:1251)
==9542==    by 0x118372: og_cmd_wol(json_t*, og_msg_params*) (ogAdmServer.cpp:3580)
==9542==    by 0x119B91: og_client_state_process_payload_rest(og_client*) (ogAdmServer.cpp:4030)
==9542==    by 0x11A4E9: og_client_read_cb(ev_loop*, ev_io*, int) (ogAdmServer.cpp:4212)
==9542==    by 0x5EA1D72: ev_invoke_pending (in /usr/lib/x86_64-linux-gnu/libev.so.4.0.0)
==9542==    by 0x5EA53DD: ev_run (in /usr/lib/x86_64-linux-gnu/libev.so.4.0.0)

sscanf() returns integers (32-bits) instead of array of 8-bits.
2019-08-20 17:26:48 +02:00
Irina Gomez cd8bf97810 Fixs multicast error: create 'read' alias defining line break character as default delimiter. 2019-08-20 17:26:48 +02:00
Ramón M. Gómez 76c35c1983 #920: Truncate a long serial number. 2019-08-20 17:26:48 +02:00
Irina Gomez 4a9fee1bb4 Import and export scripts include the custom scripts, PXE files for UEFI and /etc/default/opengnsys. 2019-08-20 17:26:48 +02:00
Ramón M. Gómez 0e905a523c #920: Filter more strings by retrieving the client's serial number. 2019-08-20 17:26:48 +02:00
Irina Gomez 4ce1d06653 opengnys_installer.sh: fix error whereby the script failed to try to install an ogLive that does not exist. 2019-08-20 17:26:48 +02:00
Irina Gomez 2f1a232fa0 Fixes bugs in 'importimage': it only created the lockfile if target repository content a image with same name that imported image. 2019-08-16 13:45:45 +02:00
Irina Gomez 014ed6e228 #847 ogclientSqfs2Img and ogclientImg2Sqfs: Auxiliary file size is increased to fit the content of the second file system. 2019-08-16 09:57:56 +02:00
Irina Gomez 137ceb4b55 #802 #888 PXE templates for UEFI: 'default' and '1hd' support secure boot for 'rEFInd'. 'default' searches for installed boot loaders and displays a menu. 'ogLiveAdmin' only starts from the network (not from the cache) 2019-08-14 12:32:48 +02:00
Irina Gomez aa7c8e4673 #802 For EFI partition: in console in 'RestoreImage' command can't select it and deploy wizard show a message. 2019-08-12 11:51:37 +02:00
Irina Gomez 2413feda15 #923 deployImage exits if detects error in updateCache. updateCache exits if it detects error when copying torrent file. 2019-08-09 13:59:55 +02:00
Irina Gomez 67b31420cc #802 #890 ogGrubInstallXx: grub's first stage finds grub.cfg correctly for computers no UEFI. 2019-08-08 11:51:09 +02:00
Irina Gomez 4aef4e8bcd #912 opengnsys_update.sh: the script is fixed that inclued '/' at the end the REPO APITOKEN in repository configuration. 2019-08-02 11:02:49 +02:00
Irina Gomez 3e408cdd00 Merge branch 'ubuntu18-compatibility' into devel 2019-08-02 09:42:13 +02:00
Irina Gomez 9d78c3a028 Virtual machine based in Ubuntu 18. 2019-08-01 10:06:15 +02:00
Irina Gomez aa2d6007b9 Functions for management Windows Registry: chntpw need '-e' option for edit registry (in ogLive bionic-5.0.0) 2019-07-31 12:05:04 +02:00
Javier Sánchez Parra 4d7e35cc3b #915 do not print misleading API error on web console
Irina reports a raw array showing in the web console when calling the
new ogAdmServer API.

var_export() prints the error message on the web instead of syslog.
Changing var_export() for print_r() solves this bug.
2019-07-31 11:40:25 +02:00
Irina Gomez 47580ddb30 #921 Fixs 'Action queue': explode in php 7 don't support several delimiters. 2019-07-30 12:18:35 +02:00
OpenGnSys Support Team 43763e43f1 #891 fix crash in wol command
Irina reports a crash in the wol command on Ubuntu 18.04 and gcc 7.4.0:

==9542== Process terminating with default action of signal 6 (SIGABRT)
==9542==    at 0x6C37E97: raise (raise.c:51)
==9542==    by 0x6C39800: abort (abort.c:79)
==9542==    by 0x6C82896: __libc_message (libc_fatal.c:181)
==9542==    by 0x6D2DCD0: __fortify_fail_abort (fortify_fail.c:33)
==9542==    by 0x6D2DC91: __stack_chk_fail (stack_chk_fail.c:29)
==9542==    by 0x111DB1: WakeUp(int, char*, char*, char*) (ogAdmServer.cpp:1390)
==9542==    by 0x11199F: Levanta(char**, char**, int, char*) (ogAdmServer.cpp:1251)
==9542==    by 0x118372: og_cmd_wol(json_t*, og_msg_params*) (ogAdmServer.cpp:3580)
==9542==    by 0x119B91: og_client_state_process_payload_rest(og_client*) (ogAdmServer.cpp:4030)
==9542==    by 0x11A4E9: og_client_read_cb(ev_loop*, ev_io*, int) (ogAdmServer.cpp:4212)
==9542==    by 0x5EA1D72: ev_invoke_pending (in /usr/lib/x86_64-linux-gnu/libev.so.4.0.0)
==9542==    by 0x5EA53DD: ev_run (in /usr/lib/x86_64-linux-gnu/libev.so.4.0.0)

sscanf() returns integers (32-bits) instead of array of 8-bits.
2019-07-29 12:37:54 +02:00
Irina Gomez 71b93c5dca Fixs multicast error: create 'read' alias defining line break character as default delimiter. 2019-07-26 11:59:24 +02:00
Ramón M. Gómez c0c7fa311f #920: Truncate a long serial number. 2019-07-25 13:25:55 +02:00
Irina Gomez c9ecf0dca2 Import and export scripts include the custom scripts, PXE files for UEFI and /etc/default/opengnsys. 2019-07-25 12:18:58 +02:00
Ramón M. Gómez 0768c71b69 #920: Filter more strings by retrieving the client's serial number. 2019-07-25 09:01:40 +02:00
Irina Gomez 9345a1f2b2 opengnys_installer.sh: fix error whereby the script failed to try to install an ogLive that does not exist. 2019-07-24 11:48:49 +02:00
Ramón M. Gómez b267eea5b6 Merge branch 'devel-browser-newlinks' of opengnsys.es:/git/opengnsys into devel-browser-newlinks 2019-07-18 12:29:12 +02:00
Ramón M. Gómez 8a6f72ca93 #919: Fix bug with quotation marks in constants. 2019-07-18 12:27:43 +02:00
Ramón M. Gómez b80fba23ac #919: Defining new link types accepted by the Browser: command+confirm, command+output, command+confirm+output. 2019-07-18 12:27:43 +02:00
Ramón M. Gómez fb89022838 #919: Fix bug with quotation marks in constants. 2019-07-18 12:25:49 +02:00
Javier Sánchez Parra 9e0f6c9c07 #915 adds tests for a non existent method
This test adds four new error test cases:

1. Non existent method with POST.
2. Non existent method with GET.
3. Non existent method with POST but with wrong API token.
4. Non existent method with POST but without json.
2019-07-15 09:53:40 +02:00
Javier Sánchez Parra f06fcf6fc0 #915 returns 401 when incorrect authentication happens
ogAdmServer REST API now meets the starndar RFC 7235 when incorrect auth
happens.

og_client_not_authorized() now sends "401 Unauthorized" and
"WWW-Authenticate" instead of 404.
2019-07-15 09:51:53 +02:00
Javier Sánchez Parra 4f39a99956 #915 adds test for POST /software REST API
This test covers two two scenarios:

1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:51:22 +02:00
Javier Sánchez Parra 59c16e0681 #915 adds test for POST /hardware REST API
This test covers two two scenarios:

1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:51:03 +02:00
Javier Sánchez Parra fcf27c17c4 #915 adds test for POST /refresh REST API
This test covers two two scenarios:

1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:50:43 +02:00
Javier Sánchez Parra 072122ad1d #915 adds test for POST /stop REST API
This test covers two two scenarios:

1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:50:21 +02:00
Javier Sánchez Parra ec0fd6d4ed #915 adds test for POST /reboot REST API
This test covers two two scenarios:

1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:49:51 +02:00
Javier Sánchez Parra ec85645c9a #915 adds test for POST /poweroff REST API
This test covers two two scenarios:

1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:49:04 +02:00
Javier Sánchez Parra 5907a07fcc #915 tests correct command, /session
This should test /shell/run instead of /session
2019-07-15 09:47:38 +02:00
Javier Sánchez Parra bf17dde05a #559 fixes memory leak in tomaConfiguracion()
Calls fclose() after fopen() to release memory.
2019-07-15 09:44:42 +02:00
Javier Sánchez Parra 1cb36eb7c3 #915 Improve test output using unittest discover
* Call the tests with python module unittest. In particular, the
  discover function.

* Rename tests files to meet the default requirements of discover
  function.
2019-07-05 17:41:26 +02:00
Javier Sánchez Parra 96cced97a8 #915 adapt web to use new software cmd in REST API
SocketHidra software (inventario software) has been replaced by
POST /software.
2019-07-03 02:56:07 +02:00