www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petter "Mhln" <petter.mah...@chello.se>
Subject config/6771: Solution suggestion to problem 6705
Date Tue, 31 Oct 2000 22:55:09 GMT

>Number:         6771
>Category:       config
>Synopsis:       Solution suggestion to problem 6705
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Oct 31 15:00:05 PST 2000
>Originator:     petter.mahlen@chello.se
>Release:        1.3.14
I came across the same problem as 6705, which is that when you install JServ 1.1.2 on a Win32
system with Apache 1.3.14, the server won't start. It works fine with Apache 1.3.12. This
is because of the following line that is added to the httpd.conf file:

Include "C:\Program Files\Apache JServ 1.1.2\conf\jserv.conf"

and my interpretation is that it is caused by the following code in src/os/win32/os.h:

__inline int ap_os_is_path_absolute(const char *file)
  /* For now, just do the same check that http_request.c and mod_alias.c
   * do. 
  return file && (file[0] == '/' || (file[1] == ':' && file[2] == '/'));

in 1.3.12, the check for file[2] == '/' wasn't there.
see above
two options:
1. change the ap_os_is_path_absolute() function to:
  return file && (file[0] == '/' || (file[1] == ':' && (file[2] == '/' ||
file[2] == '\')));
In fact, even better would be something like isDirectorySeparator(file[2]).
2. fix the JServ installation program to use / instead of \
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message