Commit Graph

4194 Commits (ce6fe2e749fd704467db368fbe08d99d9bcba545)
 

Author SHA1 Message Date
Javier Sánchez Parra 9696fc321c #915 add __pycache__ folder to .gitignore
During ogAdmServer API tests execution, __pycache__ folder may be
generated. To avoid annoyances, this commit adds the pattern
to .gitignore.
2019-08-28 17:53:16 +02:00
OpenGnSys Support Team ca239ad11a #915 trim unknown command syslog error to the initial 32 bytes
Aug 28 17:12:33 server ogAdmServer[10110]: 127.0.0.1:54640 POST /nonexistent HTTP/1.1^M Host ...
Aug 28 17:12:33 server ogAdmServer[10110]: unknown command: nonexistent HTTP/1.1^M Host: loca ...
2019-08-28 17:31:48 +02:00
OpenGnSys Support Team 0c1ff40cec #915 add syslog error when HTTP request processing fails 2019-08-28 17:22:19 +02:00
OpenGnSys Support Team d6852fb732 #915 add og_server_internal_error()
This function sends a 500 HTTP error to client.
2019-08-28 17:22:12 +02:00
OpenGnSys Support Team 2cced2b312 #915 add syslog debugging for HTTP request
Display initial 32 bytes of the HTTP request.
2019-08-28 17:22:05 +02:00
OpenGnSys Support Team d8a2d5f4df #915 close connection to REST API if request is too long
If REST API request length is >= 4096 bytes, close the connection.
2019-08-28 17:16:01 +02:00
OpenGnSys Support Team c935fc9066 #915 add OG_CLIENTS_MAX definition
This definition specifies the maximum number of clients, that is set up
to 4096.
2019-08-28 17:15:49 +02:00
OpenGnSys Support Team 611f470879 #915 set maximum REST API response to 64 Kbytes
The existing 4 Kbytes might not be enough to store the results of the
GET /clients request, extend it up to 64 Kbytes.
2019-08-28 17:15:35 +02:00
OpenGnSys Support Team a36ed2078a #915 json_dump_callback() takes flags as a parameter
Not as the buffer size, this leads to incorrectly printing the json
output since this might set on the JSON_EMBED flag on libjansson >= 2.10
2019-08-28 17:15:14 +02:00
OpenGnSys Support Team 5e8588bb59 #915 allow up to 4096 clients from REST API
Raise maximum number of clients to 4096.
2019-08-28 11:50:11 +02:00
Javier Sánchez Parra e80413435a #915 reply with HTTP 405 when the method is incorrect
When a command/request exists but the method is not correct returns 405
error code.
2019-08-27 14:32:13 +02:00
OpenGnSys Support Team 5bbcedc226 #915 internal error response if reply is too long
In case reply is too long, return 501 internal server error.
2019-08-27 12:02:57 +02:00
Ramón M. Gómez befd4f9e02 #892: Revert the removal of {{{wakonlan}}} installation dependency from commit {{{2b00219}}}. 2019-08-26 16:52:15 +02:00
Ramón M. Gómez 0b97d9697a #834: Setting a default value for some PHP variables to avoid warnings. 2019-08-22 13:43:24 +02:00
Irina Gomez e3b1b1e2a9 #922 Fixes create of grub.cfg by ogGrubInstall: In '/etc/grub.d/00_header' when 'pkgdatadir' is empty it takes same value than other ogLive. 2019-08-21 12:20:22 +02:00
Ramón M. Gómez aceea31604 Merge branch 'devel-browser-newlinks' into devel 2019-08-20 17:31:21 +02:00
Irina Gomez be3932dd7d Fixes bugs in 'importimage': it only created the lockfile if target repository content a image with same name that imported image. 2019-08-20 17:26:48 +02:00
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