Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 24950 invoked by uid 6000); 28 Feb 1998 23:00:08 -0000 Received: (qmail 24913 invoked by uid 2001); 28 Feb 1998 23:00:01 -0000 Received: (qmail 23510 invoked by uid 2012); 28 Feb 1998 22:50:51 -0000 Message-Id: <19980228225051.23509.qmail@hyperreal.org> Date: 28 Feb 1998 22:50:51 -0000 From: Tim Costello Reply-To: tjcostel@socs.uts.edu.au To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: os-windows/1890: Proxy filenames truncated to 22 chars Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 1890 >Category: os-windows >Synopsis: Proxy filenames truncated to 22 chars >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat Feb 28 15:00:01 PST 1998 >Last-Modified: >Originator: tjcostel@socs.uts.edu.au >Organization: apache >Release: 1.3b5 >Environment: Windows 95, 4.00.950B Microsoft Visual C++ 4.0 >Description: Files created by Apache as a caching proxy have names that are only 22 characters long. This is only a problem because the proxy_hash function for WIN32 encodes the 128 bit hash into 26 characters. This is not a problem which will stop Apache from working properly. >How-To-Repeat: Run Apache as a caching proxy server under WIN32. Observe the length of the filenames created in proxy directories. >Fix: Change the lines at the end of the proxy_hash function in proxy_util.c. Only do this for the #ifdef WIN32 version. Change from memcpy(&val[i], &tmp[k], 22 - k); val[i + 22 - k] = '\0'; to memcpy(&val[i], &tmp[k], 26 - k); val[i + 26 - k] = '\0'; %0 >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]