--- parser3/ChangeLog 2019/12/16 02:05:35 1.129 +++ parser3/ChangeLog 2020/11/23 02:05:13 1.147 @@ -1,3 +1,400 @@ +2020-11-22 moko + + * src/: include/pa_common.h, main/pa_common.C, main/pa_request.C, + types/pa_vfile.C: pa_filename added to avoid useless rsplit + + * src/main/pa_request.C: content_disposition_inline returned. + +2020-11-17 moko + + * src/main/pa_request.C: empty main method name support + + * src/: main/pa_common.C, targets/cgi/parser3.C: httpd + config_handler added, stdout flush added. + +2020-11-16 moko + + * src/targets/cgi/parser3.C: filespec_4log added, pa_strcat used. + + * tests/results/: 099.processed, 205.processed, 237.processed, + 309.processed, 310.processed: Content-Disposition: inline is not + required and should not contain filename="" + + * src/: include/pa_common.h, main/pa_common.C, main/pa_exception.C, + targets/apache/mod_parser3_core.C, targets/cgi/parser3.C, + targets/isapi/parser3isapi.C: pa_strcat implemented and used + +2020-11-14 moko + + * src/targets/cgi/parser3.C: spelling + + * src/targets/cgi/parser3.C: renaming + + * src/targets/cgi/parser3.C: args_skip removed, locate_config + relocated + + * src/targets/cgi/parser3.C: execution_canceled was for sigpipe + before request processing, which is weired + +2020-11-13 moko + + * src/main/pa_http.C: pa_recv added with timeout support, thus read + copied in httpd. + +2020-11-12 moko + + * src/main/pa_http.C: ALARM code unified to be used in httpd + + * src/: include/pa_request.h, main/pa_request.C, + targets/cgi/pa_sapi_info.h: pa_httpd_timeout added + + * src/main/pa_http.C: URI validation added + + * src/targets/cgi/parser3.C: filespec_to_process now variable, + can't be empty but can be null. httpd-main is now main method + name for httpd mode + +2020-11-11 moko + + * src/main/pa_request.C: path_translated can be null in httpd mode + + * src/: classes/curl.C, classes/file.C, classes/hashfile.C, + classes/image.C, classes/op.C, classes/string.C, classes/table.C, + classes/xdoc.C, include/pa_request.h, main/execute.C, + main/pa_request.C: r.absolute -> r.full_disk_path + + * src/targets/cgi/parser3.C: if filename to process is not + specified, auto.p should be present. + +2020-11-03 moko + + * src/: classes/op.C, include/pa_request.h: unused argument removed + + * src/main/pa_request.C: content_disposition_inline is the default, + not required. + +2020-10-29 moko + + * src/: classes/op.C, include/pa_request.h, main/pa_request.C: + ^use[file; $.main(true) ] implemented for auto.p processing and + path_translated changing to correct relative files path + calculation in httpd mode + + * src/: include/pa_request.h, main/pa_request.C: + fail_on_read_problem removed, as it allways true, as if should + be. + + * src/: include/pa_request.h, main/pa_request.C, + targets/apache/mod_parser3_core.C, targets/cgi/parser3.C, + targets/isapi/parser3isapi.C: clearing config_filespec when + config was not found, thus flag not required and removed. + +2020-10-28 moko + + * tests/: 402.html, results/402.processed: error reporting test + + * src/main/execute.C: better error reporting when + $result[^hash::create[]] in @main. + + * src/main/: execute.C, pa_request.C: frame.result() should be used + + minor optimization + + * src/: include/pa_request.h, main/execute.C, main/pa_request.C, + main/pa_xml_io.C: execute_*_method simplified and unified + +2020-10-27 moko + + * tests/: 306.html, results/306.processed: a bit more testing. :) + + * src/: main/execute.C, types/pa_value.h, types/pa_vclass.C, + types/pa_vclass.h, types/pa_vconsole.h, types/pa_vcookie.C, + types/pa_vdate.C, types/pa_venv.C, types/pa_vform.C, + types/pa_vhash.h, types/pa_vimage.C, types/pa_vmemcached.C, + types/pa_vmethod_frame.h, types/pa_vobject.C, + types/pa_vrequest.C, types/pa_vresponse.C, types/pa_vtable.C, + types/pa_vxnode.C: optimization: PUT_ELEMENT_REPLACED_ELEMENT no + longer used in object-prototype mode + + * src/: include/pa_sapi.h, targets/apache/mod_parser3_core.C, + targets/cgi/pa_sapi_info.h, targets/cgi/parser3.C, + targets/isapi/parser3isapi.C, types/pa_venv.C, types/pa_venv.h, + types/pa_vform.C, types/pa_vform.h: + $env:name[value] and + $form:name[value] features + +2020-10-18 moko + + * src/targets/cgi/Makefile.am: + pa_sapi_info.h + +2020-10-15 moko + + * src/main/pa_http.C: url no longer needed as + ALTER_EXCEPTION_SOURCE is used + + * src/: classes/curl.C, include/pa_common.h, main/pa_common.C, + main/pa_http.C: check_file_size filespec is now optional + + * src/: classes/curl.C, include/pa_exception.h, + main/pa_exception.C, main/pa_http.C: ALTER_EXCEPTION_SOURCE and + ALTER_EXCEPTION_COMMENT added for better error reporting + + * tests/: 379-curl.html, 379.html, results/223-curl.processed, + results/346-curl.processed, results/379-curl.processed, + results/379.processed: test results updated as load now provides + better error reporting + curl responses updated + +2020-10-14 moko + + * src/: classes/date.C, include/pa_string.h, main/pa_http.C, + main/pa_string.C, targets/apache/mod_parser3_core.C, + targets/cgi/parser3.C: pa_atoi / pa_atoui / pa_atoul usage + checked. 10 is now default base, no hex autodetect by default + + * src/: include/pa_http.h, main/pa_http.C, targets/cgi/parser3.C: + connection socket closing in destructor + accept exception + handling + + * src/targets/cgi/parser3.C: warning war + + * src/: include/pa_http.h, include/pa_sapi.h, main/pa_http.C, + main/pa_request.C, targets/apache/mod_parser3_core.C, + targets/cgi/pa_sapi_info.h, targets/cgi/parser3.C: global try + exception handling unified + +2020-10-13 moko + + * src/targets/isapi/parser3isapi.C: reverted to atoi to avoid hex + autodetection + + * src/targets/apache/mod_parser3_core.C: reverted to atoi + + * src/: main/pa_http.C, targets/cgi/pa_sapi_info.h: warning war + + * src/main/pa_http.C: warning war + +2020-10-12 moko + + * src/: main/pa_request.C, targets/apache/mod_parser3_core.C, + targets/cgi/parser3.C, targets/isapi/parser3isapi.C: excaption in + unhandled exception code optimization + + * src/targets/cgi/parser3.C: request_info now global variable + + * src/main/pa_http.C: http_read_response moved to HTTP_response + class + + * src/: include/pa_http.h, main/pa_http.C, + targets/cgi/pa_sapi_info.h: read_post implemented + + * src/: include/pa_http.h, main/pa_http.C, targets/cgi/parser3.C: + [host:]port syntax support in httpd mode + + * src/: include/pa_http.h, targets/cgi/pa_sapi_info.h, + targets/cgi/parser3.C: populate_env added + + * src/include/pa_hash.h: to make get(char *) compiling in + HashStringString + +2020-10-10 moko + + * src/: classes/curl.C, include/pa_http.h, main/pa_http.C, + targets/cgi/pa_sapi_info.h: ResponseHeaders -> HTTP_Headers + + * src/: include/pa_http.h, include/pa_request_info.h, + main/pa_http.C, main/pa_string.C, + targets/apache/mod_parser3_core.C, targets/cgi/pa_sapi_info.h, + targets/cgi/parser3.C, targets/isapi/parser3isapi.C, + types/pa_vrequest.C: initial httpd mode implementation + +2020-10-04 moko + + * src/targets/cgi/parser3.C: options together + +2020-09-30 moko + + * src/main/pa_http.C: renamed + +2020-08-14 moko + + * configure, configure.ac, parser3.sln, src/lib/Makefile.am, + src/targets/cgi/Makefile.am: no httpd as separate library + +2020-08-13 moko + + * src/targets/cgi/parser3.C: SAPI::die used in exception in + unhandled exception handler to report 500 instead of 200 it was + before. + + * src/targets/apache/mod_parser3_core.C: minor cleanup + + * src/: include/pa_sapi.h, main/untaint.C, + targets/apache/mod_parser3_core.C, targets/cgi/parser3.C, + targets/isapi/parser3isapi.C: SAPI::abort was used only once, + thus replaced with SAPI::die and removed + + * src/targets/: apache/mod_parser3_core.C, isapi/parser3isapi.C, + cgi/parser3.C: whitespace + + * src/targets/cgi/parser3.C: locate_config() extracted, whitespace. + +2020-08-12 moko + + * src/targets/cgi/parser3.C: duplicate info in signal logging + removed, whitespace was: SIGPIPE received while executing code. + uri=/_tmp.html, method=GET, cl=0 [uri=/_tmp.html, method=GET, + cl=0] + + * parser3.sln: + httpd.vcproj + +2020-08-11 moko + + * src/targets/cgi/Makefile.am: +libhttpd + + * configure.ac, src/lib/Makefile.am: +libhttpd + +2020-07-13 moko + + * tests/: 401.html, results/401.processed: test for hash key does + not keep language, but tainted in foreach. + +2020-07-01 moko + + * tests/: 235.html, results/235.processed: test result updated as + messages before attachments implemented (feature #1176) + +2020-06-27 moko + + * tests/: 400.html, results/400.processed: test updated to check + ^return{code} + + * src/classes/op.C: bugfix: ^return{code} or ^return(expre+ssion) + fixed + +2020-06-26 moko + + * tests/: 400.html, results/400.processed: test for OPTIMIZE_RESULT + added (related to https://www.parser.ru/forum/?id=85319) + + * src/types/pa_vmethod_frame.h: bugfix: OPTIMIZE_RESULT failed, + when $result assignment was last statement in the method + (https://www.parser.ru/forum/?id=85319) + +2020-05-23 moko + + * src/: classes/mail.C, types/pa_vmail.C, types/pa_vmail.h: + whitespace, unused level removed + +2020-05-19 moko + + * src/types/pa_vmail.C: whitespace + + * src/types/pa_vmail.C: files should be processed last (related to + feature #1176) + +2020-05-12 moko + + * src/include/pa_memory.h: no new/delete checks for for FreeBSD1X.X + due to https://bugs.llvm.org/show_bug.cgi?id=40161 bug + + * configure.ac: FreeBSD1X.X check added to avoid + https://bugs.llvm.org/show_bug.cgi?id=40161 bug. + +2020-02-26 moko + + * src/main/pa_common.C: entry_exists -> entry_ifdir to fix Windows + compilation issue (related to bug #1201) + + * src/main/pa_common.C: entry_readable -> entry_exists, + undocumented access(fname, R_OK) call removed (fixes bug #1201) + -f and -d now works under Windows in UTF-8 with Russian + filenames. + + * src/types/pa_vmail.C: g_mime_stream_pipe_new used by gmime author + advice (related to feature #1199) + +2020-02-25 moko + + * buildall: --silent removed + + * configure.ac: gmime-3.0 support + + * buildall: --with-system-mailreceive option added to build with + system libgmime + + * src/types/pa_vmail.C: avoiding + https://github.com/jstedfast/gmime/issues/83 "feature" (related + to feature #1199) + +2020-02-18 moko + + * src/classes/op.C: windows x64 debug mode compile fix + + * src/main/pa_globals.C: no longer required due to -MD -> -MT + change (releated to feature #1200) + + * src/: classes/classes.vcproj, lib/cord/cord.vcproj, + lib/gd/gd.vcproj, lib/json/json.vcproj, lib/ltdl/ltdl.vcproj, + lib/md5/md5.vcproj, lib/memcached/memcached.vcproj, + lib/pcre/pcre_internal.vcproj, lib/punycode/punycode.vcproj, + lib/sdbm/sdbm.vcproj, lib/smtp/smtp.vcproj, main/main.vcproj, + targets/apache/ApacheModuleParser3.vcproj, + targets/apache/ApacheModuleParser3Core.vcproj, + targets/cgi/parser3.vcproj, targets/isapi/parser3isapi.vcproj, + types/types.vcproj: -MD -> -MT to remove msvcp71.dll/etc + dependency (related to feature #1200) + +2020-02-12 moko + + * src/types/pa_vmail.C: minimize diff + + * src/types/pa_vmail.C: libgmime 3.X support (implements feature + #1199) + +2020-01-18 moko + + * tests/: 388-sql.html, results/388-sql.processed: +postprocess + +2019-12-28 moko + + * src/targets/cgi/parser3.C: avoid empty ? + +2019-12-27 moko + + * src/targets/cgi/parser3.C: PATH_INFO check in reinventing + DOCUMENT_ROOT (related to feature #1164) + + * src/targets/cgi/parser3.C: IIS5 support removed to simplify + fcgiwrap setup (implements feature #1164) + + * src/targets/cgi/parser3.C: real_parser_handler logic simplified, + but no issues found (related to feature #1164) + + * src/targets/cgi/parser3.C: actualized + +2019-12-26 moko + + * src/targets/apache/ApacheModuleParser3.vcproj: apache stop/start + removed + + * src/targets/isapi/parser3isapi.vcproj: inetinfo stop/start + removed + + * src/: lib/gc/include/gc.h, main/pa_globals.C: As we log + allocation errors, we don't want default gc warnings (without + timestamp and URI). + + * src/: classes/memory.C, main/pa_globals.C, + targets/apache/mod_parser3_core.C, targets/cgi/parser3.C, + targets/isapi/parser3isapi.C: GC_dont_gc=1 moved to + pa_globals_init + + * src/main/pa_globals.C: setup_hex_value() removed, static array + initialization used (optimization) + + * src/: main/pa_globals.C, targets/apache/mod_parser3_core.C, + targets/cgi/parser3.C, targets/isapi/parser3isapi.C: + pa_socks_init/pa_socks_done moved inside pa_globals_init + (optimization) + 2019-12-09 moko * src/include/pa_config_fixed.h: warning war