You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Roy T. Fielding" <fi...@kiwi.ICS.UCI.EDU> on 2000/03/21 01:55:23 UTC
Re: cvs commit: apache-1.3/src/main http_request.c
This also requires a bump to the MMN. I think a minor bump, assuming
that it is the end of the record that is being extended.
....Roy
In message <20...@locus.apache.org>,
stoddard@locus.apache.org writes:
>stoddard 00/03/20 08:50:15
>
> Modified: src CHANGES
> src/include httpd.h
> src/main http_request.c
> Log:
> Add case_preserved_filename field to the request_rec structure.
> On systems with case insensitive file systems (Windows, OS/2, etc.),
> r->filename is case canonicalized (folded to either lower or upper
> case, depending on the specific system) to accomodate file access
> checking. case_preserved_filename is the same as r->filename
> except case is preserved. There is at least one instance where Apache
> needs access to the case preserved filename: Java class files published
> with WebDAV need to preserve filename case to make the Java compiler
> happy.
>
> Revision Changes Path
> 1.1528 +10 -0 apache-1.3/src/CHANGES
>
> Index: CHANGES
> ===================================================================
> RCS file: /home/cvs/apache-1.3/src/CHANGES,v
> retrieving revision 1.1527
> retrieving revision 1.1528
> diff -u -r1.1527 -r1.1528
> --- CHANGES 2000/03/16 22:05:43 1.1527
> +++ CHANGES 2000/03/20 16:50:12 1.1528
> @@ -1,3 +1,13 @@
> + *) Add case_preserved_filename field to the request_rec structure.
> + On systems with case insensitive file systems (Windows, OS/2, etc.),
> + r->filename is case canonicalized (folded to either lower or upper
> + case, depending on the specific system) to accomodate file access
> + checking. case_preserved_filename is the same as r->filename
> + except case is preserved. There is at least one instance where Apache
> + needs access to the case preserved filename: Java class files publishe
>d
> + with WebDAV need to preserve filename case to make the Java compiler
> + happy. [Bill Stoddard]
> +
> *) Put in Korean and Norwegian index.html pages (2.0 and 1.3)
> which where donated by Lee Kuk Hyun and Lorant Czaran [dirkx].
>
>
>
>
> 1.312 +11 -0 apache-1.3/src/include/httpd.h
>
> Index: httpd.h
> ===================================================================
RCS file: /home/cvs/apache-1.3/src/include/httpd.h,v
> retrieving revision 1.311
> retrieving revision 1.312
> diff -u -r1.311 -r1.312
> --- httpd.h 2000/03/19 16:15:35 1.311
> +++ httpd.h 2000/03/20 16:50:14 1.312
> @@ -816,6 +816,17 @@
> */
> const struct htaccess_result *htaccess;
>
> + /* On systems with case insensitive file systems (Windows, OS/2, etc.),
>
> + * r->filename is case canonicalized (folded to either lower or upper
> + * case, depending on the specific system) to accomodate file access
> + * checking. case_preserved_filename is the same as r->filename
> + * except case is preserved. There is at least one instance where Apach
>e
> + * needs access to the case preserved filename: Java class files publis
>hed
> + * with WebDAV need to preserve filename case to make the Java compiler
>
> + * happy.
> + */
> + char *case_preserved_filename;
> +
> /* Things placed at the end of the record to avoid breaking binary
> * compatibility. It would be nice to remember to reorder the entire
> * record to improve 64bit alignment the next time we need to break
>
>
>
> 1.153 +2 -0 apache-1.3/src/main/http_request.c
>
> Index: http_request.c
> ===================================================================
> RCS file: /home/cvs/apache-1.3/src/main/http_request.c,v
> retrieving revision 1.152
> retrieving revision 1.153
> diff -u -r1.152 -r1.153
> --- http_request.c 2000/01/11 14:13:41 1.152
> +++ http_request.c 2000/03/20 16:50:15 1.153
> @@ -398,6 +398,8 @@
> return res;
> }
>
> + r->case_preserved_filename = r->filename;
> +
> r->filename = ap_os_canonical_filename(r->pool, r->filename);
>
> test_filename = ap_pstrdup(r->pool, r->filename);
>
>
>