apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44761] New: apr_uri_parse doesn't set path to "/" for ' http://hostname' url.
Date Sun, 06 Apr 2008 18:35:47 GMT

           Summary: apr_uri_parse doesn't set path to "/" for
                    'http://hostname' url.
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: lgo@mobsol.be

A user of Subversion reported an issue where svn doesn't work on repositories
hosted directly under the root of the server. This issue is tracked as #3167

The cause of the issue seems to be apr-util's apr_uri_parse function that
doesn't behave as documented:

Snippet of code that shows the issue:
repos_url = "http://localhost";
apr_status_t status = apr_uri_parse(pool, repos_url, &uri);
assert(uri.path[0] == '/' && uri.path[1] == '\0');

Here uri.path should be '/', as is stated in the documentation of the apr_uri_t
structure in apr_uri.h:

struct apr_uri_t {
  /** the request path (or "/" if only scheme://host was given) */
  char *path;

I have a patch ready about which I have some questions, so I'll send it to
apr-dev (and include the archive url here in the issue).

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message