/usr/share/doc/libapache2-request-perl/html/apreq_changes.html is in libapreq2-doc 2.13-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 | <html>
<head>
<link rel="stylesheet" type="text/css" href="dox.css" />
<title>libapreq2-2.13: libapreq2: CHANGES</title>
</head>
<body>
<div id="page-header">
<p class="menu">
<a href="http://www.apache.org/">Apache Software Foundation</a> > <a href="http://httpd.apache.org">HTTP Server Project</a> >
<a href="http://httpd.apache.org/apreq/">Request Library Subproject</a></p>
<p class="apache">Apache HTTP Server Request Library</p>
<img alt="" src="feather.gif" /></div>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1><a class="anchor" name="apreq_changes">CHANGES </a></h1>! brief List of major changes.<h2><a class="anchor" name="v2_13">
Changes with libapreq2-2.13 (released December 3, 2010)</a></h2>
<ul>
<li>HTTP Only Cookie [Robert Stone & Adam Prime] The C and Perl Cookie APIs now support an HttpOnly flag to tell user agents to deny client-side script access to the cookie</li></ul>
<h2><a class="anchor" name="v2_12">
Changes with libapreq2-2.12 (released March 13, 2009)</a></h2>
<ul>
<li>C API [joes] Make the cookie parser a little more flexible.</li></ul>
<h2><a class="anchor" name="v2_11">
Changes with libapreq2-2.11 (not released)</a></h2>
<ul>
<li>Interactive CGI module [issac] Allow cgi module to interactively prompt for parameters and cookies when running a script from the command line and not from a CGI interface</li></ul>
<h2><a class="anchor" name="v2_10">
Changes with libapreq2-2.10 (not released)</a></h2>
<ul>
<li>Perl Glue [joes] Fix the linking of the perl modules to libapreq2 and libapr on Solaris.</li></ul>
<p>
<ul>
<li>Perl Glue [joes] Fix install-time linking issue of the .so modules. Previously they would remain linked against the src library path, not the install path.</li></ul>
<p>
<ul>
<li>C API [joes] Add optional interface for <a class="el" href="group__mod__apreq2.html#g68f508b2e1d9909328d7b1277ce4aa80">apreq_handle_apache2()</a>.</li></ul>
<p>
<ul>
<li>C API [joes] Clean up buggy apreq_hook_find_param().</li></ul>
<p>
<ul>
<li>Perl Glue Build [Philip M. Gollucci] config.status format changed format yet again in autoconf 2.62+.</li></ul>
<p>
<ul>
<li>License [Mladen Turk] Add libapreq.rc and generate libapreq.res</li></ul>
<p>
<ul>
<li>Build [Mladen Turk] Add APREQ_DECLARE_EXPORT/APREQ_DECLARE_STATIC in the same way as APR declares so that dllexport/dllimport get correctly handled.</li></ul>
<p>
<ul>
<li>Build [Randy Kobes] Add appropriate manifest command to embed manifest files on Win32 when using VC8</li></ul>
<p>
<ul>
<li>C API [Andy Grundman, joes] Add missing bytes_read initializer to <a class="el" href="apreq__module_8h.html#beaaad6c03b54ca963f9f14a3031e912">apreq_handle_custom()</a>.</li></ul>
<p>
<ul>
<li>C API [suggested by Vinay Y S, tested by Steve Hay and Peter Walsham] For Win32, remove the flag |= APR_FILE_NOCLEANUP | APR_SHARELOCK; in apreq_file_cleanup, to avoid problems with file uploads.</li></ul>
<h2><a class="anchor" name="v2_09">
Changes with libapreq2-2.09 ( not released)</a></h2>
<ul>
<li>C API [joes] Fix leak associated to calling <a class="el" href="apreq__util_8h.html#3bbe5ee2d1537c6a9f30d0fed9f5f1e1">apreq_brigade_fwrite()</a> on an upload brigade.</li></ul>
<p>
<ul>
<li>Build [Philip M. Gollucci] SunOS (Solaris) Users must use gmake not make for building.</li></ul>
<p>
<ul>
<li>Build [Philip M. Gollucci] SunOS (Solaris) Code around bug in libtool (at least in 1.5.18, 1.5.20, 1.5.22) causing mod_apreq2 to be built instead of mod_apreq2.so</li></ul>
<p>
<ul>
<li>C API [Philip M. Gollucci] Fix comparison signed vs unsigned comparison in apreq_fwritev() on SunOS/gcc where iovec.iov_len is a long.</li></ul>
<p>
<ul>
<li>Build [Philip M. Gollucci] SunOS (Solaris) fix duplicate link error to libexpat.so -- by using the one from httpd exclusively now.</li></ul>
<p>
<ul>
<li>Build [Philip M. Gollucci] code around |_!!_#| autoconf 2.60 bug.</li></ul>
<h2><a class="anchor" name="v2_08">
Changes with libapreq2-2.08 (released August 8, 2006)</a></h2>
<ul>
<li>Perl API [Randy Kobes] add APR_FILE_NOCLEANUP | APR_SHARELOCK to flags passed to <a class="el" href="apreq__util_8h.html#b266a81c528de92654eb37f9890c4a7d">apreq_file_mktemp()</a> on Win32 in library/util.c, in order to clean up occasional stray temp files left behind in the Perl upload test (reported by Steve Hay)</li></ul>
<p>
<ul>
<li>Build [Philip M. Gollucci, Bojan Smojver, joes] make input brigade volatile in order to give hints to GCC <a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193740">https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193740</a> This fixes an infinite look split_on_bdry() of library/parser_multipart.c particularly on linux/gcc 4.x platforms.</li></ul>
<p>
<ul>
<li>Perl Glue Fix "value computed not used" gcc 4.1.x compile errors</li></ul>
<p>
<ul>
<li>Build [Randy Kobes] Fix the location of apxs and the names of the apr and aprutil libraries on Win32 to enable building against Apache/2.2.</li></ul>
<p>
<ul>
<li>Perl Glue docs [Philip M. Gollucci] Fix the 'docs_install' make target to actually install the docs for the perl glue.</li></ul>
<p>
<ul>
<li>Perl Glue Build [Philip M. Gollucci] Regenerate glue/perl/xsbuilder/ppport.h to fix perl 5.8.8+ on some plaforms.</li></ul>
<p>
<ul>
<li>C API [joes] Add code for <a class="el" href="apreq__module_8h.html#7435376b1f543c604d8326de3157e075">apreq_cookies()</a>.</li></ul>
<p>
<ul>
<li>Perl API [joes] Expose the constants in <a class="el" href="apreq__error_8h.html" title="Error status codes.Define the APREQ_ error codes.">apreq_error.h</a> via the APR::Request::Error package.</li></ul>
<h2><a class="anchor" name="v2_07">
Changes with libapreq2-2.07 (released February 12, 2006)</a></h2>
<ul>
<li>C API [joes] SECURITY: CVE-2006-0042 (cve.mitre.org) Eliminate potential quadratic behavior in apreq_parse_headers() and apreq_parse_urlencoded().</li></ul>
<p>
<ul>
<li>Perl API [Philip M. Gollucci] Fix Apache2::Cookie->cookies() to comply with its documentation</li></ul>
<p>
<ul>
<li>C API [Philip M. Gollucci] Use the APREQ_DEFAULT_READ_LIMIT constant for the read_limit</li></ul>
<p>
<ul>
<li>C API [Ville Skyttä, Dirk Nehring] Add explicit cast in <a class="el" href="apreq__util_8h.html#785be2ceae273b0a7b2ffda223b2ebae">apreq_escape()</a>/apreq_util.h to keep C++ compilers happy.</li></ul>
<p>
<ul>
<li>C API [joes] Protect against arbitrary recursion depth in apreq_parse_multipart() by adding a reasonable compile-time MAX_LEVEL limit.</li></ul>
<p>
<ul>
<li>C API [joes] Clean up end-of-file parsing for apreq_parse_multipart(), conforming to rfc-2046 § 5.1.1.</li></ul>
<p>
<ul>
<li>Perl API [joes] Move APR::Request::Param::Table and APR::Request::Cookie::Table packages to APR::Request module.</li></ul>
<p>
<ul>
<li>Perl XS [Steve Hay] Fix compile problems on Win32 without PERL_IMPLICIT_SYS related to link being an unresolved symbol.</li></ul>
<p>
<ul>
<li>Perl API [joes] APR::Request::Cookie::thaw() isn't a class method.</li></ul>
<p>
<ul>
<li>C API [joes] Fix off-by-one bug in the continuation-lines portion of the header parser.</li></ul>
<p>
<ul>
<li>Perl API [joes] Move APR::Request::upload to APR::Request, where it belongs.</li></ul>
<p>
<ul>
<li>Perl XS [Nikolay Ananiev] Use MP_STATIC declarations to allow Cygwin builds.</li></ul>
<p>
<ul>
<li>Perl API [joes] encode()/decode() were busted with zero-length args. This caused Apache2::Cookie::new() to segfault on cookie value of "".</li></ul>
<p>
<ul>
<li>C API [joes] Add <a class="el" href="apreq__util_8h.html#e11e0b3e2304a2e8c30aaa464ea78037">apreq_charset_divine()</a> and eliminate charset offset from return value of apreq_decode(v).</li></ul>
<p>
<ul>
<li>C API [joes] Improve the cp1252-charset heuristics for apreq_decode(v).</li></ul>
<p>
<ul>
<li>C API [Ralph Mattes] Add explicit casts for apreq_param_charset_* to keep c++ compilers happy.</li></ul>
<h2><a class="anchor" name="v2_06_dev">
Changes with libapreq2-2.06-dev (released July 20, 2005)</a></h2>
<ul>
<li>C API [Marc Gràcia, joes] Fix apreq_decode(v) when iso-latin-1 chars appear at the end of an encoded string.</li></ul>
<p>
<ul>
<li>Perl API [Philip M. Gollucci] Fix "Attempt to free temp prematurely" error in apreq_xs_croak().</li></ul>
<p>
<ul>
<li>C API [Philip M. Gollucci] Add mod_apreq2 to httpd's server tokens.</li></ul>
<p>
<ul>
<li>Perl API [joes] Drop support for $req->env(), which also died with 2.05-dev.</li></ul>
<p>
<ul>
<li>Perl API [joes] Support for table set/add/delete methods is formally withdrawn. Technically this feature died with the module API refactoring in 2.05-dev.</li></ul>
<p>
<ul>
<li>C API [max] Right-hand limit of <a class="el" href="apreq__util_8h.html#a23561a0d169b50454a815926ccc0ba5">apreq_brigade_move()</a> is declared as "excluding", but APR_RING_UNSPLICE() wants an "including" right-hand limit. Fixed this by passing the previous bucket.</li></ul>
<p>
<ul>
<li>Perl API [joes] Drop support for Apache2::Request::new's HOOK_DATA. UPLOAD_HOOK now takes only two arguments: ($upload, $data).</li></ul>
<p>
<ul>
<li>Perl API [joes] Drop support for Apache2::Cookie::Jar::new's VALUE_CLASS. 2.05-dev broke that API, and it's not worth trying to fix. People who need that should use APR::Request::Cookie::Table's cookie_class() API instead.</li></ul>
<p>
<ul>
<li>Perl API [joes] Fix cookie domain/path munging in Apache2::Cookie::new().</li></ul>
<h2><a class="anchor" name="v2_05_dev">
Changes with libapreq2-2.05-dev (released May 5, 2005)</a></h2>
<ul>
<li>Win32 build [Randy Kobes] Have top-level 'nmake', 'nmake test', and 'nmake install' targets, respectively, also include building, testing, and installing the corresponding perl glue targets.</li></ul>
<p>
<ul>
<li>C API [geoff] Minimum httpd version is now 2.0.48, which includes the official apr 0.9.4 release.</li></ul>
<p>
<ul>
<li>C API [Max Kellermann] Fix apreq_quote.</li></ul>
<p>
<ul>
<li>Perl API [joes] Remove Apache2::Request::args. WARNING: through inheritance, args() now maps to Apache2::RequestRec::args. Folks that want the pre-2.05-dev behavior need to invoke APR::Request::args by name.</li></ul>
<p>
<ul>
<li>C API [joes, Max Kellermann] Add apreq_initialize, apreq_pre_initialize and apreq_post_initialize. These are not thread-safe operations, so applications need to ensure they are invoked (in the correct sequence) prior to using any apreq2 modules.</li></ul>
<p>
<ul>
<li>C, Perl API [joes] Add pool, bucket_alloc to <a class="el" href="structapreq__handle__t.html">apreq_handle_t</a>.</li></ul>
<p>
<ul>
<li>Perl API [joes] Drop $data argument from UPLOAD_HOOK, and also drop HOOK_DATA option. Perl folks should use a closure instead of passing in context data.</li></ul>
<p>
<ul>
<li>Perl API [joes] Move bake, bake2 to Apache2::Cookie, now requiring an extra $r argument. Also ""-operator is mapped to as_string() for Apache2::Cookie; but APR::Request::Cookie maps it to value().</li></ul>
<p>
<ul>
<li>C API [joes] Remove header_in & header_out from <a class="el" href="structapreq__module__t.html" title="Vtable describing the necessary module functions.">apreq_module_t</a>. Remove apreq_ua_cookie_version() and apreq_cookie_bake*(). Remove cookie2 argument to <a class="el" href="apreq__module_8h.html#beaaad6c03b54ca963f9f14a3031e912">apreq_handle_custom()</a>.</li></ul>
<p>
<ul>
<li>C API [joes] s/APREQ/APREQ2/g in webserver configuration directives.</li></ul>
<p>
<ul>
<li>C API [Igor Shevchenko, Philip Gollucci] Fix segfault in mfd parser caused by parts w/ empty param names.</li></ul>
<p>
<ul>
<li>C API [joes] Add <a class="el" href="apreq__util_8h.html#801aa204656988ff4aa32cec6dd80e5a">apreq_cp1252_to_utf8()</a>.</li></ul>
<p>
<ul>
<li>C, Perl API [joes] Add charset support for params and couple the SvUTF8 flag to the param's taint flag.</li></ul>
<p>
<ul>
<li>C API [joes] Replace v->size with v->nlen + v->dlen. Added supporting <a class="el" href="apreq_8h.html#0d27c51db1532fa3f829838ed90f6226">apreq_value_table_add()</a>.</li></ul>
<p>
<ul>
<li>C API [joes] Remove apreq_cookie_attr().</li></ul>
<p>
<ul>
<li>C API [joes]<ul>
<li>Add <a class="el" href="apreq__error_8h.html" title="Error status codes.Define the APREQ_ error codes.">apreq_error.h</a>, <a class="el" href="apreq__module_8h.html" title="Module API.">apreq_module.h</a>.</li><li>Rename apreq_run* and apreq_make* funcs to conform with apreq_$obj_$meth scheme.</li><li>Replace c->version & c->secure with flags.</li><li>Parsers are assumed to be working with external data, so the cookies & params they produce are marked tainted.</li></ul>
</li></ul>
<p>
<ul>
<li>C API [joes] <a class="el" href="apreq__cookie_8h.html#113be08c01bc82605ec52d80c054cbf6">apreq_parse_cookie_header()</a> failed to parse RFC Cookie headers which contained no space chars after the '$Version=1' preamble.</li></ul>
<p>
<ul>
<li>C API [joes] Reorganize around include/, library/, and module/ dirs.</li></ul>
<p>
<ul>
<li>C Tests [joes] Replace CuTest-based tests with custom TAP-compliant framework.</li></ul>
<p>
<ul>
<li>C API [Max Kellermann] Continue the API improvements:</li></ul>
<p>
<ul>
<li>Convert APREQ_RUN_PARSER and APREQ_RUN_HOOK to inline, and downcase them.</li><li>Remove apreq_memmem.</li><li>Convert apreq_(un)escape to inline.</li><li>apreq_escape does not create an apreq_value_t*.</li><li>Initialize default_parsers explicitly to NULL.</li><li>Convert APREQ_BRIGADE_COPY to inline, and downcase it.</li><li>Lowercase APREQ_BRIGADE_SETASIDE, APREQ_BRIGADE_COPY.</li><li>Convert apreq_cookie_name and apreq_cookie_value macros to inline.</li><li>Convert apreq_param_name, apreq_param_value, apreq_param_info, and apreq_param_brigade to inline.</li></ul>
<p>
<ul>
<li>C API [joes] Widespread API refactorization to remove apreq_jar_t and apreq_request_t:</li></ul>
<p>
<ul>
<li>Header includes reorganized; apreq_parsers.h added (back again).</li><li>Replaced apreq_jar_t and apreq_request_t with single apreq_env_handle_t.</li><li>Added const qualifier to "v" attribute of <a class="el" href="structapreq__cookie__t.html" title="Cookie type, supporting both Netscape and RFC cookie specifications.">apreq_cookie_t</a> and <a class="el" href="structapreq__param__t.html">apreq_param_t</a>.</li><li>Use union type-puns to drop const qualifiers inside the new apreq_value_to_cookie and apreq_value_to_param implementations (gcc generates same object code as the macro versions did).</li><li>Moved "flags" attribute from <a class="el" href="structapreq__value__t.html" title="libapreq's pre-extensible string type">apreq_value_t</a> to <a class="el" href="structapreq__cookie__t.html" title="Cookie type, supporting both Netscape and RFC cookie specifications.">apreq_cookie_t</a> and <a class="el" href="structapreq__param__t.html">apreq_param_t</a>.</li><li>Remove env argument from hooks and parsers.</li><li>Reduce apreq_env_module to minimal set of operations.</li><li>Replace apreq_log calls with apreq-specific error codes.</li><li>Hooks are called on each body param now, not just during file uploads.</li><li>Tie the cgi handle to its creator pool.</li></ul>
<p>
Detailed changes by header file:<p>
[<a class="el" href="apreq_8h.html" title="Main header file...Define the generic APREQ_ macros and common data structures.">apreq.h</a>]<ul>
<li>Remove flags from <a class="el" href="structapreq__value__t.html" title="libapreq's pre-extensible string type">apreq_value_t</a>.</li><li>Remove const qualifier from apreq_value_t's "name" attribute.</li><li>Remove apreq_value_merge* and apreq_value_copy*.</li><li>Remove apreq_char_to_value, apreq_strtoval, and apreq_strlen.</li><li>Move apreq_enctype to apreq_env.h.</li><li>Move apreq_env_handle_t struct definition to apreq_env.h</li><li>Change signature of apreq_decode.</li><li>Move apreq_brigade_concat here, changed its signature and improved it alot.</li><li>Remove apreq_brigade_spoolfile.</li><li>Dropped APREQ_*_ENCTYPE, renamed some APREQ_$foo defaults APREQ_DEFAULT_$foo.</li><li>Added APREQ_ERROR_*.</li></ul>
<p>
[<a class="el" href="apreq__cookie_8h.html" title="Cookies and Jars.apreq_cookie.h describes a common server-side API for request (incoming)...">apreq_cookie.h</a>]<ul>
<li>Remove apreq_env.h include.</li><li>Remove apreq_jar_t.</li><li>Add "flags" to <a class="el" href="structapreq__cookie__t.html" title="Cookie type, supporting both Netscape and RFC cookie specifications.">apreq_cookie_t</a>, add const qualifier to its "v" attr.</li><li>Remove apreq_jar* functions.</li><li>Add apreq_parse_cookie_header.</li><li>Move apreq_cookie, apreq_cookie_bake(2), and apreq_ua_cookie_version to apreq_env.h.</li></ul>
<p>
[apreq_params.h]<ul>
<li>Remove apreq_env.h include.</li><li>Remove apreq_request_t.</li><li>Add "flags" to <a class="el" href="structapreq__param__t.html">apreq_param_t</a>, and const qualifier to its "v" attr.</li><li>Rename "bb" attribute "upload" in <a class="el" href="structapreq__param__t.html">apreq_param_t</a>.</li><li>Remove apreq_request* functions.</li><li>Remove apreq_parse_request.</li><li>Changed apreq_decode_param signature.</li><li>Replace env argument with apr_table_t in apreq_params_as_array, apreq_params_as_string,</li><li>Move remaining apreq_param* to apreq_env.h.</li><li>Move parser and hook sections to apreq_parsers.h.</li><li>Change apreq_upload(s) old apreq_request_t arg to apr_table_t.</li></ul>
<p>
[apreq_parsers.h]<ul>
<li>Acquire the hook and parser sections of original apreq_params.h.</li><li>Remove env argument from APREQ_PARSER_ARGS and APREQ_HOOK_ARGS</li><li>Augment <a class="el" href="structapreq__hook__t.html">apreq_hook_t</a> and <a class="el" href="structapreq__parser__t.html">apreq_parser_t</a> to replace missing env features.</li><li>Change apreq_make_parser and apreq_make_hook signatures.</li><li>Rename apreq_add_hook to apreq_parser_add_hook, returning apr_status_t.</li><li>Change apreq_parser signature.</li></ul>
<p>
[apreq_env.h]<ul>
<li>Remove read, log, pool, bucket_alloc, request, jar, and query_string methods.</li><li>Include apreq_parsers.h.</li><li>Reorganize apreq_env_module_t to provide hook, parser, jar, args, & body table ops.</li><li>Rename max_brigade to "brigade_limit", max_body to "read_limit".</li><li>Change related module sigs, including temp_dir, to get/set methods.</li><li>Add parser and read_limit args to apreq_env_make_custom_handle.</li><li>Drop "name" arg and APREQ_ENV_MODULE =~ s/_ENV//.</li><li>s/apreq_env_make/apreq_handle/ in the handle constructor names.</li></ul>
<p>
[mod_apreq.c, apreq_env_apache2.h]<ul>
<li>Changed APREQ_Max* configs to APREQ_BrigadeLimit and APREQ_ReadLimit.</li><li>Handle constructor renamed apreq_handle_apache2.</li></ul>
<p>
<ul>
<li>C API [joes] Make our "libtool current interface" number depend on apr's major number. This allows libapreq2 to be installed into a system-wide location while avoiding ABI conflicts arising from our apr-based interfaces.</li></ul>
<p>
<ul>
<li>C API [Max Kellermann] Introduce apreq_env_handle_t to replace the void *env usage. Also added apreq_env_custom for making private handles, and new apreq_env_apache2.h to let mod_apreq export apreq_env_make_apache2.</li></ul>
<p>
<ul>
<li>C API [Max Kellermann] Rename apreq_env_t to apreq_env_module_t, to prepare for a new thread-safe apreq_env API.</li></ul>
<p>
<ul>
<li>C API [Max Kellermann] mod_apreq must check the return value of apreq_brigade_concat to avoid a RAM-consuming infinite loop. A bad APREQ_TempDir setting can cause this situation.</li></ul>
<p>
<ul>
<li>C API [joes] Provide workaround for chunked trailers bug in ap_http_filter.</li></ul>
<p>
<ul>
<li>C, Perl API [joes] Several upload-related bugfixes: 1) apreq_upload and apreq_uploads did not search the full body table, 2) $upload->slurp and $io->read did not autovivify the resultant string.</li></ul>
<p>
<ul>
<li>C API [joes] Add "flags" attribute to <a class="el" href="structapreq__value__t.html" title="libapreq's pre-extensible string type">apreq_value_t</a>, planning for charset support. This is an ABI change, starting with libapreq2.so.2.0.24.</li></ul>
<p>
<ul>
<li>C API [joes] Add apreq_env_bucket_alloc() to get an allocator directly from the environment instead of creating them from a pool. This is an ABI change, starting with libapreq2.so.2.0.23.</li></ul>
<p>
<ul>
<li>Build system [joes] Add --with-apache2-httpd option so users can override apxs's notion of where the httpd executable is. XSBuilder's header parser runs from buildconf now instead of configure, so we will include those tables in the release tarball. buildconf gets an additional --with-perl option for running the xsbuilder.pl parsing script. The XS generation code in xsbuilder.pl has moved to glue/perl/Makefile.PL.</li></ul>
<p>
<ul>
<li>Perl API [joes] Allow ctors for Apache::Cookie, Apache::Cookie::Jar and <a class="elRef" doxygen="apu.tag:http://apr.apache.org/docs/apr-util/1.3/" href="http://apr.apache.org/docs/apr-util/1.3/namespace_apache.html">Apache</a>:Request to accept Apache::Request objects (instead of requiring an Apache::RequestRec object). This thread details the bug <a href="http://thread.gmane.org/gmane.comp.apache.mod-perl/15727">http://thread.gmane.org/gmane.comp.apache.mod-perl/15727</a></li></ul>
<p>
<ul>
<li>C API [Bojan Smojver] Bake cookies with err_headers_out so they are sent on non-2xx server responses (ie. a 304 redirect). Also ensure that headers are copied with apr_table_add instead of apr_table_addn. Since apreq_cookie_bake() allocates from the stack, the Set-Cookie headers would occasionally get mangled without this patch.</li></ul>
<p>
<ul>
<li>C API [joes] Add <a class="el" href="apreq__parser_8h.html#595f05be3d241a5b339fd6ef948bfbc8">apreq_register_parser()</a>, which allows users to add their own parsers to <a class="el" href="apreq__parser_8h.html#73013ecad087f14075d319a4a983dd82">apreq_parser()</a>'s recognized MIME types.</li></ul>
<p>
<ul>
<li>C API [joes] Support "multipart/mixed" file uploads. Support XForms' "multipart/related" enctype.</li></ul>
<p>
<ul>
<li>C API [joes] Add apreq_hook_apr_xml_parser(), which is a simple wrapper hook around APR's expat-based apr_xml_parser. Add a generic parser apreq_parse_generic() to parse arbitrary enctypes using the hook API.</li></ul>
<h2><a class="anchor" name="v2_04_dev">
Changes with libapreq2-2.04-dev (released August 30, 2004)</a></h2>
<ul>
<li>Perl API [joes] Add TAINT checks, marking all parsed data as tainted.</li></ul>
<p>
<ul>
<li>C API [joes] Add body_status attribute to apreq_request_t, to allow the both environment and the parser to report any errors encountered.</li></ul>
<p>
<ul>
<li>C API [randyk, joes] Cookie parser was locking up on non-alphanumeric chars in cookie names. Also RFC Cookie attributes are always checked for quotes during bake(2), and the quotes are now stripped from incoming RFC cookies during parsing (but they are never stripped from the actual cookie value).</li></ul>
<p>
<ul>
<li>Perl API [joes] Apache::Cookie::Jar->new accepts a VALUE_CLASS argument, which effectively blesses all the jar's cookies into that class, which simplifies subclassing Apache::Cookie. Accordingly Apache::Cookie->freeze($value) no longer accepts a freeze()-able object in $value.</li></ul>
<p>
<ul>
<li>C API [Markus Wichitill, randyk, joes] Drop APR_DELONCLOSE from apreq_file_mktemp implementation and install apreq_file_cleanup. When passed to apr_file_open on Win32, APR_DELONCLOSE sets the FILE_SHARED_DELETE flag, which is, unfortunately, a property that is preserved across NTFS "hard" links. This breaks apps that link() the temp file to a permanent location, and subsequently expect to open it without FILE_SHARED_DELETE before the original tempfile is closed+deleted. In fact, even Apache::Upload does this, so it is a common enough event that the apreq_file_cleanup workaround is necessary.</li></ul>
<p>
<ul>
<li>C API [Ken Burcham, joes] Fix bug in url parser that occurs when a XX-encoded sequence is split across multiple buckets. Added apreq_decode_decodev to make this problem less inconvenient.</li></ul>
<p>
<ul>
<li>Perl API [joes] Exception objects inherit from the object which raised it, which allows $@ to invoke its methods with impunity (exceptions are disabled for objects which derive from an exception class).</li></ul>
<p>
<ul>
<li>Perl API [joes] Implement HOOK_DATA and UPLOAD_HOOK.</li></ul>
<p>
<ul>
<li>Perl API [joes] Add safe XS wrappers for $table->add, $table->set, $table->STORE, and $table_class->new.</li></ul>
<p>
<ul>
<li>Perl API [joes] Add exceptions to $upload->link, $upload->tempname, $upload->slurp, and $cookie->set_attr. Return value of $upload->slurp is now the upload length. Also document new $upload->io.</li></ul>
<p>
<ul>
<li>C API [joes] Restrict all apr_status_t codes to APR_SUCCESS, APR_INCOMPLETE, APR_EGENERAL, APR_EINIT, APR_ENOTIMPL, since any others will generate confusing error messages from apr_strerror.</li></ul>
<p>
<ul>
<li>Perl API [joes] Added $upload->io with a TIEHANDLE API layered over APR::Brigade. $upload->fh remains implemented as an APR::PerlIO object, which is seekable but less efficient and currently suffers some portability issues associated with largefile support in perl and apr.</li></ul>
<p>
<ul>
<li>Perl API [joes] Added apreq_xs_croak for throwing APR::Error exceptions and included error-checking on $req->param, $req->args, $req->body, $req->upload, and $jar->get.</li></ul>
<p>
<ul>
<li>Perl API [joes] Added $jar->status, $req->args_status and $req->body_status to report parsing errors. Also add $upload->tempname per user request.</li></ul>
<p>
<ul>
<li>C API [joes] Dropped status attribute of <a class="el" href="structapreq__value__t.html" title="libapreq's pre-extensible string type">apreq_value_t</a>. Added status field to apreq_jar_t and added args_status field to apreq_request_t. Parsers also must return their public status code when a NULL brigade is passed. apreq_hook_disable_uploads() is also added.</li></ul>
<p>
This is an ABI change affecting all versions of libapreq2 prior to 2.0.12.<p>
<ul>
<li>Perl API [joes] $upload->info returns a proper APR::Table object now. Also implemented $upload->size, $upload->fh, and $upload->type.</li></ul>
<p>
<ul>
<li>C API [Jean-François Meesse] mfd parser fails to parse CRLF-terminated files when the terminating boundary string is at the start of a new bucket. This is reportedly a common event for PDF files uploaded with Netscape 7.</li></ul>
<p>
<ul>
<li>Perl API [joes] Add back-compat support for Apache::Cookie->fetch() via Apache->request.</li></ul>
<p>
<ul>
<li>C API [joes] Add MaxBody, MaxBrigade, and TempDir per-dir directives to mod_apreq filter.</li></ul>
<p>
<ul>
<li>C API [joes] Replace free/tempnam dependency in <a class="el" href="apreq__util_8h.html#b266a81c528de92654eb37f9890c4a7d">apreq_file_mktemp()</a> with <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/1.3/" href="http://apr.apache.org/docs/apr/1.3/group__apr__file__io.html#g5cc19828a668c362be0ad7a12b805cc0">apr_temp_dir_get()</a>. Add additional gcc warning flags when --enable-maintainer-mode is set.</li></ul>
<p>
<ul>
<li>C API [joes, Scott Hutton] Replace apreq_brigade_copy with more effective APREQ_BRIGADE_COPY macro. Also introduce APREQ_BRIGADE_SETASIDE to deal with buckets that need to be set aside for use in future function calls. mod_ssl generates transient buckets which tickled this bug.</li></ul>
<p>
<ul>
<li>Perl API [joes] Separate Apache::Upload module from Apache::Request for better organization.</li></ul>
<h2><a class="anchor" name="v2_03_dev">
Changes with libapreq2-2.03-dev (released June 12, 2004)</a></h2>
<ul>
<li>C API [joes] "Objectify" cookie/jar API: s/apreq_(make|serialize)_cookie/apreq_cookie_$1/ and reordering args so the cookie/jar object is always the first argument. Macros added to provide source-compatibility with the old names.</li></ul>
<p>
<ul>
<li>Perl API [joes] Added $upload->slurp($data), which reads the contents of the file upload "$upload" into the scalar "$data".</li></ul>
<p>
<ul>
<li>C API [joes, randyk] apreq_run_(hook|parser) are macros, so they are capitalized now. Fixed <a class="el" href="apreq__param_8h.html#0f1db12120bb2307f5e33186f094b0d6">apreq_params_as_string()</a> and added <a class="el" href="apreq__param_8h.html#76c7e698fd45f3f3e07db60fcba15e52">apreq_params_as_array()</a>. Reworked definitions of APREQ_DECLARE_HOOK, APREQ_DECLARE_PARSER and apreq_(parser|hook)_t, hopefully to be more Win32 friendly. Also updated the documentation.</li></ul>
<p>
<ul>
<li>C API [joes] Compensate for a missing CRLF in empty file upload block, which actually complies with RFC 2046 Section 5.1.1. Konqueror (version unknown) and Mozilla 0.9.7 are known to emit such blocks.</li></ul>
<p>
<ul>
<li>Perl API [joes] $req->upload() in list context failed to filter out non-uploads. Also $req->upload("nonexistent-key-name") segfaults.</li></ul>
<p>
<ul>
<li>Perl test suite t/TEST.PL must run parent class' pre_configure to get the configuration right</li></ul>
<p>
<ul>
<li>C API [joes] <a class="el" href="apreq__util_8h.html#4ddf563c9902474bdedbf014e24aafc8">apreq_brigade_concat()</a> wasn't supplying the final EOS bucket to large brigades (>256K), which somtimes caused the prefetch loop in mod_apreq.c's apreq_filter() to hang.</li></ul>
<p>
<ul>
<li>Documentation [joes] CHANGES file reformatted, removing dates & other clutter as Stas suggests.</li></ul>
<p>
<ul>
<li>C API [joes] Rewrote cgi_read() in apreq_env.c and reworked mod_apreq.c to enforce apreq_env_max_body() settings.</li></ul>
<p>
<ul>
<li>C API [joes] Fixed bug in url_parser code- missing context brigade was needed to track key-value pairs which span multiple buckets.</li></ul>
<p>
<ul>
<li>C API [joes] API modifications: removed struct apreq_cfg_t, adding new apreq_env hooks max_body, max_brigade_len, and temp_dir. Folded apreq_parsers.h into apreq_params.h and modified the arguments to apreq_run_parser() and apreq_run_hook(). Renamed apreq_parser_t's content_type as enctype and apreq_copy_brigade() as <a class="el" href="apreq__util_8h.html#b4def9e77622cf22cfa427e7fbf2ac45">apreq_brigade_copy()</a>. These changes make libapreq2.so.2.0.5 incompatible with earlier versions.</li></ul>
<p>
<ul>
<li>Perl API [stas] Include ppport.h from blead-perl to support older perls. Add a proper support for ithreads.</li></ul>
<p>
<ul>
<li>C API [Swen Schillig, joes] Fixed bug in calculation of Netscape cookie expiration dates. apr_time_t is measured in microseconds, not seconds, which threw off the arithmetic; apr_time_from_sec was needed for the conversion.</li></ul>
<p>
<ul>
<li>C API [Max Kellermann] Fix segfault caused by invalid -escape sequence in query string.</li></ul>
<h2><a class="anchor" name="v2_02_dev">
Changes with libapreq2-2.02-dev (released Nov 15, 2003)</a></h2>
<ul>
<li>Perl API [joes] Fix bogus pool/cookie initializers in Apache::Cookie::set_attr(), which caused Apache::Cookie::new to segfault. Bug first reported to modperl list by Wolfgang Kubens.</li></ul>
<h2><a class="anchor" name="v2_01_dev">
Changes with libapreq2-2.01-dev (released Nov 10, 2003)</a></h2>
<ul>
<li>build system [joes] Skip Apache::Test tests in env/ when Apache::Test is unavailable. This allows the C API to be build and installed without requiring Apache::Test (it is still a requirement for compiling the perl glue).</li></ul>
<p>
<ul>
<li>C API mod_apreq.c [joes] Parser errors were creeping into the return value of apreq_filter, which breaks the "transparent tee" paradigm. This caused bogus "400 Bad Request" responses (first reported by Vladimir Dudo) to occur when libapreq2 was used by an output filter during a GET request (handled by apache2's default handler). The test suite has been updated accordingly.</li></ul>
<p>
<ul>
<li>C API [joes] Incorporate libapreq_cgi into libapreq2 as the default environment, and add apreq_env_t and initializer apreq_env_module() to manage the environment at runtime (determining the environment at load-time was problematic on non-ELF systems).</li></ul>
<h2><a class="anchor" name="v2_0_0">
Changes with libapreq2-2.00-dev (Oct 25, 2003)</a></h2>
<ul>
<li>C API: libapreq_cgi.c [randyk, joes] CGI environment defined by env/libapreq_cgi.c is functional (with tests added to env/t). This library may soon be incorporated directly into libapreq2 as a default enviroment.</li></ul>
<p>
<ul>
<li>C API: mod_apreq.c [joes] Added ctx->saw_eos to ensure we don't read from upstream filters after receiving an eos bucket. Otherwise it was possible for two eos buckets to appear when a prefetch read is involved, which breaks other modules like mod_proxy. This bug was uncovered by Philippe Chiasson. mod_apreq's apreq_env_majic_number bumped to reflect the added fixes.</li></ul>
<p>
<ul>
<li>configure: --enable-perl-glue [joes] The --enable-perl-glue option integrates the perl glue into the normal Unix build cycle. It is disabled by default, but is silently reenabled if the user configures the source tree via Makefile.PL.</li></ul>
<p>
<ul>
<li>C API [joes] Added <a class="el" href="apreq__util_8h.html#8195b6a32954928a6088e7cea077dd75">apreq_header_attribute()</a> and fixed mfd parser to allow "charset" attribute to appear in the Content-Type header. Sven Geisler points out that Opera 7.20 does generate such headers.</li></ul>
<p>
<ul>
<li>C API [joes] Added versioning API following <a href="http://apr.apache.org/versioning.html">http://apr.apache.org/versioning.html</a> apreq_env renamed apreq_env_name, and apreq_env_magic_number added to provide versioning for environments (modules). The header files are now installed to "include/apreq2", and the library is renamed "libapreq2". Also added an apreq2-config script based on apu-config.</li></ul>
<p>
<ul>
<li>configure: static mod_apreq.c [Bojan Smojver, joes] Add --with-apache2-src configure option, along with --with-apr-config and --with-apu-config, and provide support for compiling mod_apreq into httpd as a static apache module.</li></ul>
<p>
<ul>
<li>C API: mod_apreq.c [joes] Support for internal redirects added to the mod_apreq filter. This ensures any POST data prefetched in the main request gets passed along to the subrequest handler(s).</li></ul>
<p>
<ul>
<li>C bugfix: apreq_decode [Graham Clark] If the source and destination strings are represented by the same pointer - e.g. if called as apreq_unescape(s) - string s is modified incorrectly in general. Patch includes new unit test.</li></ul>
<p>
<ul>
<li>Perl API [joes] Added $req->parse, $req->status, & "preparse" logic to $req->param & $req->upload.</li></ul>
<p>
<ul>
<li>C API [joes] Added "preparse" logic to apreq_params & apreq_uploads to bring behavior in line with libapreq-1.x.</li></ul>
<p>
<ul>
<li>C API [joes] Dropped param->charset. Make apreq_brigade_concat public, so mod_apreq can use it for its ctx->spool brigade.</li></ul>
<p>
<ul>
<li>Documentation [joes] Updated Cookie_pod to reflect API changes over v1.X.</li></ul>
<p>
<ul>
<li>Documentation [joes] Added doxygen links to Apache::Request and Apache::Cookie perl docs.</li></ul>
<p>
<ul>
<li>C API [joes] Added apreq_copy_brigade(bb) to <a class="el" href="apreq_8h.html" title="Main header file...Define the generic APREQ_ macros and common data structures.">apreq.h</a>.</li></ul>
<p>
<ul>
<li>C API [joes] The new filter-based design required a complete departure from libapreq-1.X codebase. libapreq-2 is based solely on APR, and to be fully functional, requires a supporting environment similar to Apache-2. A person wishing to port libapreq-2 to a new environment needs to provide definitions for the declarations in apreq_env.h.</li></ul>
<p>
<ul>
<li>Perl API [joes] Aggregates are always collected into an APR::Table-based package. New table packages: Apache::Cookie::Table, Apache::Request::Table, and Apache::Upload::Table.</li></ul>
<p>
<ul>
<li>Perl API [joes] Apache::Cookie->fetch now requires an "environment" argument ($r). Its return value is blessed into the Apache::Cookie::Jar class.</li></ul>
<p>
<ul>
<li>Perl API [joes] Two new request lookup functions:<ol type=a>
<li>$req->args - param lookup using only the query string</li><li>$req->body - param lookup using only the POST data </li></ol>
</li></ul>
</div>
<div id="footer">
<p class="apache">
Copyright © 2003-2006 <a href="http://www.apache.org">The Apache Software Foundation</a>.<br/>
See <a href="apreq_license.html">LICENSE</a>.</p>
<p class="menu">
<span style="color:#aaa">page generated by <a href="http://www.doxygen.org/"><code>doxygen</code></a>
version 1.5.6 on 25 Nov 2010</span>
</p>
</div>
</body>
</html>
|