summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | #915 fix missing null-terminated stringJavier Sánchez Parra2019-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the number of characters stored in cli->auth_token from 64 to 63. This way the array has the last position available to store the null character.
* | | | | #915 adds test for too large HTTP requestJavier Sánchez Parra2019-09-041-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test checks for too large HTTP requests, for example: POST /clients with a body of 4096 bytes.
* | | | | #922: ogLive with Kernel 5.0 installs Grub on BIOS computers.Ramón M. Gómez2019-09-044-6/+7
| | | | |
* | | | | #915 do not bail out when failing to send message to stale clientsOpenGnSys Support Team2019-09-021-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clients might enter power saving mode, hence, closing the connection with the server. When the server sends a request to refresh its state, if they are gone, do not break the iteration over the list of clients.
* | | | | #922 ogBootLoaderHidePartitions: Partition data will not hidden. Support ↵Irina Gómez2019-08-301-16/+26
| | | | | | | | | | | | | | | | | | | | several disk. Compatibility with grub.cfg create by ogLive 5.0.
* | | | | #559 fix out of bound array accessJavier Sánchez Parra2019-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch change the size of the array ptrPar from 6 to 7. cppcheck says: [sources/ogAdmServer.cpp:598]: (error) Array 'ptrCfg[6]' accessed at index 6, which is out of bounds.
* | | | | #915 check ogAdmServer binary existence when running pythong testsJavier Sánchez Parra2019-08-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, if you try to run the python test without the ogAdmServer binary, it will throw an exception. This patch adds a check to ensure the existence of the ogAdmServer binary at the beginning of the script. # python3 run-tests.py You need to build the ogAdmServer binary to run these tests :-)
* | | | | #915 add missing brackets to WOL API test jsonJavier Sánchez Parra2019-08-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Without the brackets the call works (200 response) but the ogAdmServer does not send the WOL packets.
* | | | | #915 add __pycache__ folder to .gitignoreJavier Sánchez Parra2019-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During ogAdmServer API tests execution, __pycache__ folder may be generated. To avoid annoyances, this commit adds the pattern to .gitignore.
* | | | | #915 trim unknown command syslog error to the initial 32 bytesOpenGnSys Support Team2019-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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 ...
* | | | | #915 add syslog error when HTTP request processing failsOpenGnSys Support Team2019-08-281-4/+17
| | | | |
* | | | | #915 add og_server_internal_error()OpenGnSys Support Team2019-08-281-5/+12
| | | | | | | | | | | | | | | | | | | | This function sends a 500 HTTP error to client.
* | | | | #915 add syslog debugging for HTTP requestOpenGnSys Support Team2019-08-281-4/+4
| | | | | | | | | | | | | | | | | | | | Display initial 32 bytes of the HTTP request.
* | | | | #915 close connection to REST API if request is too longOpenGnSys Support Team2019-08-281-1/+8
| | | | | | | | | | | | | | | | | | | | If REST API request length is >= 4096 bytes, close the connection.
* | | | | #915 add OG_CLIENTS_MAX definitionOpenGnSys Support Team2019-08-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | This definition specifies the maximum number of clients, that is set up to 4096.
* | | | | #915 set maximum REST API response to 64 KbytesOpenGnSys Support Team2019-08-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | The existing 4 Kbytes might not be enough to store the results of the GET /clients request, extend it up to 64 Kbytes.
* | | | | #915 json_dump_callback() takes flags as a parameterOpenGnSys Support Team2019-08-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | #915 allow up to 4096 clients from REST APIOpenGnSys Support Team2019-08-281-2/+2
| | | | | | | | | | | | | | | | | | | | Raise maximum number of clients to 4096.
* | | | | #915 reply with HTTP 405 when the method is incorrectJavier Sánchez Parra2019-08-271-12/+25
| | | | | | | | | | | | | | | | | | | | | | | | | When a command/request exists but the method is not correct returns 405 error code.
* | | | | #915 internal error response if reply is too longOpenGnSys Support Team2019-08-271-4/+11
| | | | | | | | | | | | | | | | | | | | In case reply is too long, return 501 internal server error.
* | | | | #892: Revert the removal of {{{wakonlan}}} installation dependency from ↵Ramón M. Gómez2019-08-262-2/+2
| | | | | | | | | | | | | | | | | | | | commit {{{2b00219}}}.
* | | | | #834: Setting a default value for some PHP variables to avoid warnings.Ramón M. Gómez2019-08-224-5/+10
| | | | |
* | | | | #922 Fixes create of grub.cfg by ogGrubInstall: In '/etc/grub.d/00_header' ↵Irina Gómez2019-08-211-0/+4
| | | | | | | | | | | | | | | | | | | | when 'pkgdatadir' is empty it takes same value than other ogLive.
* | | | | Merge branch 'devel-browser-newlinks' into develRamón M. Gómez2019-08-202-25/+106
|\ \ \ \ \
| * | | | | Fixes bugs in 'importimage': it only created the lockfile if target ↵Irina Gómez2019-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | repository content a image with same name that imported image.
| * | | | | #847 ogclientSqfs2Img and ogclientImg2Sqfs: Auxiliary file size is increased ↵Irina Gómez2019-08-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | to fit the content of the second file system.
| * | | | | #802 #888 PXE templates for UEFI: 'default' and '1hd' support secure boot ↵Irina Gómez2019-08-203-81/+53
| | | | | | | | | | | | | | | | | | | | | | | | for 'rEFInd'. 'default' searches for installed boot loaders and displays a menu. 'ogLiveAdmin' only starts from the network (not from the cache)
| * | | | | #802 For EFI partition: in console in 'RestoreImage' command can't select it ↵Irina Gómez2019-08-206-19/+34
| | | | | | | | | | | | | | | | | | | | | | | | and deploy wizard show a message.
| * | | | | #923 deployImage exits if detects error in updateCache. updateCache exits if ↵Irina Gómez2019-08-202-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | it detects error when copying torrent file.
| * | | | | #802 #890 ogGrubInstallXx: grub's first stage finds grub.cfg correctly for ↵Irina Gómez2019-08-201-26/+17
| | | | | | | | | | | | | | | | | | | | | | | | computers no UEFI.
| * | | | | #912 opengnsys_update.sh: the script is fixed that inclued '/' at the end ↵Irina Gómez2019-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | the REPO APITOKEN in repository configuration.
| * | | | | Virtual machine based in Ubuntu 18.Irina Gómez2019-08-201-1/+1
| | | | | |
| * | | | | Functions for management Windows Registry: chntpw need '-e' option for edit ↵Irina Gómez2019-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | registry (in ogLive bionic-5.0.0)
| * | | | | #915 do not print misleading API error on web consoleJavier Sánchez Parra2019-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | #921 Fixs 'Action queue': explode in php 7 don't support several delimiters.Irina Gómez2019-08-201-1/+1
| | | | | |
| * | | | | #891 fix crash in wol commandOpenGnSys Support Team2019-08-201-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Fixs multicast error: create 'read' alias defining line break character as ↵Irina Gómez2019-08-203-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | default delimiter.
| * | | | | #920: Truncate a long serial number.Ramón M. Gómez2019-08-201-5/+9
| | | | | |
| * | | | | Import and export scripts include the custom scripts, PXE files for UEFI ↵Irina Gómez2019-08-202-10/+36
| | | | | | | | | | | | | | | | | | | | | | | | and /etc/default/opengnsys.
| * | | | | #920: Filter more strings by retrieving the client's serial number.Ramón M. Gómez2019-08-201-2/+2
| | | | | |
| * | | | | opengnys_installer.sh: fix error whereby the script failed to try to install ↵Irina Gómez2019-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | an ogLive that does not exist.
| * | | | | Merge branch 'devel-browser-newlinks' of opengnsys.es:/git/opengnsys into ↵Ramón M. Gómez2019-07-180-0/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | devel-browser-newlinks
| | * | | | | #919: Fix bug with quotation marks in constants.Ramón M. Gómez2019-07-182-8/+8
| | | | | | |
| | * | | | | #919: Defining new link types accepted by the Browser: command+confirm, ↵Ramón M. Gómez2019-06-272-24/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | command+output, command+confirm+output.
| * | | | | | #919: Fix bug with quotation marks in constants.Ramón M. Gómez2019-07-182-8/+8
| | | | | | |
| * | | | | | #919: Defining new link types accepted by the Browser: command+confirm, ↵Ramón M. Gómez2019-07-182-24/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | command+output, command+confirm+output.
* | | | | | | Fixes bugs in 'importimage': it only created the lockfile if target ↵Irina Gómez2019-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | repository content a image with same name that imported image.
* | | | | | | #847 ogclientSqfs2Img and ogclientImg2Sqfs: Auxiliary file size is increased ↵Irina Gómez2019-08-162-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to fit the content of the second file system.
* | | | | | | #802 #888 PXE templates for UEFI: 'default' and '1hd' support secure boot ↵Irina Gómez2019-08-143-81/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | for 'rEFInd'. 'default' searches for installed boot loaders and displays a menu. 'ogLiveAdmin' only starts from the network (not from the cache)
* | | | | | | #802 For EFI partition: in console in 'RestoreImage' command can't select it ↵Irina Gómez2019-08-126-19/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and deploy wizard show a message.