Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-12-12 | Tests: stop execution if can't unmount any filesystem. | Andrei Zeliankou | 2 | -2/+15 | |
2022-12-12 | Tests: pretty output. | Andrei Zeliankou | 3 | -9/+10 | |
Hide expected alerts by default. Silence succesfull "go build" information. | |||||
2022-12-09 | Tests: fixed tests to run as privileged user. | Andrei Zeliankou | 2 | -8/+15 | |
2022-11-29 | Tests: NJS. | Andrei Zeliankou | 4 | -1/+101 | |
2022-11-20 | Var: improved variable parsing with empty names. | Zhidao HONG | 1 | -0/+1 | |
Unit parsed the case of "$uri$$host" into unknown variables. This commit makes it invalid variable instead. | |||||
2022-11-15 | Tests: fixed _check_processes() checks in "--restart" mode. | Andrei Zeliankou | 1 | -0/+4 | |
2022-11-15 | Tests: removed migration test. | Andrei Zeliankou | 1 | -46/+0 | |
Migration of "share" behaviour was dropped after b57b4749b993. | |||||
2022-11-15 | Tests: fixed assertion in test_variables_dynamic. | Andrei Zeliankou | 1 | -4/+7 | |
2022-11-15 | Tests: features and options checks improved. | Andrei Zeliankou | 3 | -16/+13 | |
Now version output evaluates only once. OpenSSL checks more carefully. | |||||
2022-11-02 | PHP: allowed to specify URLs without a trailing '/'. | Andrew Clayton | 1 | -0/+44 | |
Both @lucatacconi & @mwoodpatrick reported what appears to be the same issue on GitHub. Namely that when using the PHP language module and trying to access a URL that is a directory but without specifying the trailing '/', they were getting a '503 Service Unavailable' error. Note: This is when _not_ using the 'script' option. E.g with the following config { "listeners": { "[::1]:8080": { "pass": "applications/php" } }, "applications": { "php": { "type": "php", "root": "/var/tmp/unit-php" } } } and with a directory path of /var/tmp/unit-php/foo containing an index.php, you would see the following $ curl http://localhost/foo <title>Error 503</title> Error 503 However $ curl http://localhost/foo/ would work and serve up the index.php This commit fixes the above so you get the desired behaviour without specifying the trailing '/' by doing the following 1] If the URL doesn't end in .php and doesn't have a trailing '/' then check if the requested path is a directory. 2) If it is a directory then create a 301 re-direct pointing to it. This matches the behaviour of the likes of nginx, Apache and lighttpd. This also matches the behaviour of the "share" action in Unit. This doesn't effect the behaviour of the 'script' option which bypasses the nxt_php_dynamic_request() function. This also adds a couple of tests to test/test_php_application.py to ensure this continues to work. Closes: <https://github.com/nginx/unit/issues/717> Closes: <https://github.com/nginx/unit/issues/753> Signed-off-by: Andrew Clayton <a.clayton@nginx.com> | |||||
2022-10-13 | Tests: added tests for the $request_time variable. | Andrei Zeliankou | 1 | -0/+29 | |
2022-10-11 | Tests: reworked "test_variables.py". | Andrei Zeliankou | 2 | -216/+259 | |
Access log used for the variables testing instead of limited routing. Added missed test for $status variable. Some tests moved from "test_access_log.py" to "test_variables.py". | |||||
2022-10-11 | Tests: don't try to return response when "no_recv" is True. | Andrei Zeliankou | 14 | -50/+30 | |
2022-09-27 | Tests: added test with proxy for status. | Andrei Zeliankou | 1 | -44/+51 | |
2022-09-19 | HTTP: fixed cookie parsing. | Zhidao HONG | 1 | -0/+14 | |
The fixing supports the cookie value with the '=' character. This is related to #756 PR on Github. Thanks to changxiaocui. | |||||
2022-09-07 | Tests: minor fixes. | Andrei Zeliankou | 11 | -171/+19 | |
2022-09-05 | Tests: added tests for basic statistics. | Andrei Zeliankou | 4 | -0/+301 | |
2022-08-25 | Tests: added tests with abstract UNIX sockets. | Andrei Zeliankou | 6 | -1/+176 | |
2022-08-16 | Tests: added test for ASGI with UNIX socket. | Andrei Zeliankou | 1 | -0/+10 | |
2022-08-11 | Fixing isolated process PID manipulation. | Max Romanov | 1 | -1/+1 | |
Registering an isolated PID in the global PID hash is wrong because it can be duplicated. Isolated processes are stored only in the children list until the response for the WHOAMI message is processed and the global PID is discovered. To remove isolated siblings, a pointer to the children list is introduced in the nxt_process_init_t struct. This closes #633 issue on GitHub. | |||||
2022-08-08 | Tests: added tests with UNIX sockets in "source". | Andrei Zeliankou | 2 | -4/+37 | |
2022-07-28 | Tests: added tests for the log format. | Andrei Zeliankou | 1 | -0/+80 | |
Also added tests for the following variables: $request_line, $time_local, $bytes_sent, and $status. | |||||
2022-07-28 | Tests: added flags to search functions in proto.py. | Andrei Zeliankou | 3 | -13/+8 | |
Also removed unnesessary re.compile() calls. | |||||
2022-07-27 | Ruby: fixed contents of SCRIPT_NAME. | Alejandro Colomar | 1 | -1/+1 | |
Having the basename of the script pathname was incorrect. While we don't have something more accurate, the best thing to do is to have it empty (which should be the right thing most of the time). This closes #715 issue on GitHub. The bug was introduced in git commit 0032543fa65f454c471c968998190b027c1ff270 'Ruby: added the Rack environment parameter "SCRIPT_NAME".'. | |||||
2022-07-20 | Tests: added tests for translating $dollar into a literal $. | Andrew Clayton | 1 | -0/+21 | |
If you need to specify a $ in a URI you can now use '$dollar' or '${dollar}'. Added some tests for the above to test_variables.py setting a Location string. | |||||
2022-07-19 | Tests: added tests for more HTTP variables. | Andrei Zeliankou | 1 | -0/+51 | |
2022-07-14 | Tests: added tests for dynamic variables. | Andrei Zeliankou | 1 | -0/+82 | |
2022-06-30 | Tests: minor improvements. | Andrei Zeliankou | 5 | -98/+39 | |
Added "go" availability check before trying to build an application. update_action() method used were possible and fixed bug with the relative path determination in test_static_chroot.py. Templates optimization and style fixes. | |||||
2022-06-20 | Tests: forwarded header replacement tests. | Zhidao HONG | 2 | -0/+276 | |
2022-06-20 | Tests: reworked client IP tests. | Zhidao HONG | 1 | -17/+38 | |
2022-06-01 | Tests: improved test for $request_uri variable. | Andrei Zeliankou | 1 | -2/+2 | |
2022-06-01 | Tests: removed deprecated ssl.PROTOCOL_TLSv1_2 constant. | Andrei Zeliankou | 1 | -2/+5 | |
2022-05-31 | Tests: Added tests for $request_uri. | Alejandro Colomar | 1 | -0/+9 | |
2022-05-30 | Tests: added tests for "index" (string) option. | Alejandro Colomar | 1 | -0/+28 | |
2022-05-16 | Tests: Added tests for empty "location". | Alejandro Colomar | 1 | -0/+15 | |
2022-05-13 | Tests: added tests for Ruby stream IO.close(). | Andrei Zeliankou | 3 | -7/+8 | |
2022-05-10 | Tests: added test for "SCRIPT_NAME" variable in Ruby. | Andrei Zeliankou | 2 | -0/+2 | |
2022-05-09 | Tests: added more tests with reconfiguration. | Andrei Zeliankou | 4 | -51/+155 | |
2022-04-28 | Tests: Added tests for variables in "location". | Alejandro Colomar | 1 | -0/+19 | |
2022-04-28 | Tests: Changed tests to accept variables in "location". | Alejandro Colomar | 1 | -4/+4 | |
2022-04-12 | Tests: added check for zombie processes. | Andrei Zeliankou | 1 | -0/+58 | |
2022-04-11 | Tests: style. | Andrei Zeliankou | 36 | -343/+291 | |
2022-02-15 | Tests: added test with long certificate chain. | Andrei Zeliankou | 1 | -0/+45 | |
2022-01-31 | Tests: removed TestApplicationTLS.get_server_certificate(). | Andrei Zeliankou | 14 | -60/+61 | |
distutils.version is replaced by packaging.version. Also minor style fixes. | |||||
2022-01-10 | Tests: using modules in Go. | Max Romanov | 3 | -45/+38 | |
2021-12-27 | Perl: creating input and error streams if closed. | Max Romanov | 3 | -0/+47 | |
Application handler can do anything with a stream object (including close it). Once the stream is closed, Unit creates a new stream. This closes #616 issue on GitHub. | |||||
2021-12-12 | Tests: fixed type of applications. | Andrei Zeliankou | 9 | -23/+23 | |
2021-12-11 | Tests: added more OPcache tests. | Andrei Zeliankou | 4 | -13/+66 | |
2021-12-10 | Tests: fixed path to the "php.ini" file. | Andrei Zeliankou | 1 | -2/+10 | |
2021-12-01 | Tests: fixed skipping tests with disabled OPcache. | Andrei Zeliankou | 1 | -1/+1 | |