You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Johan Sørensen (JIRA)" <ji...@apache.org> on 2008/05/12 12:55:55 UTC

[jira] Created: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

building with a --prefix that has an ending slash confuses serve_file()
-----------------------------------------------------------------------

                 Key: COUCHDB-52
                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
             Project: CouchDB
          Issue Type: Bug
          Components: Build System
         Environment: osx
            Reporter: Johan Sørensen
            Priority: Minor


configuring with:

$ ./configure --prefix=$HOME/couchdb/

caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.

Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Jacob Torrey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596388#action_12596388 ] 

Jacob Torrey commented on COUCHDB-52:
-------------------------------------

Perhaps add a note of this to the README or the ./configure help. I ran into this same issue when building from SVN.

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>         Environment: osx
>            Reporter: Johan Sørensen
>            Priority: Minor
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Slater resolved COUCHDB-52.
--------------------------------

    Resolution: Fixed

Agreed. This has been fixed in r664363 on trunk.

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>         Environment: osx
>            Reporter: Johan Sørensen
>            Assignee: Noah Slater
>            Priority: Minor
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Lenz updated COUCHDB-52:
------------------------------------

    Fix Version/s:     (was: 0.8.1)
                   0.9

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 0.8
>         Environment: osx
>            Reporter: Johan Sørensen
>            Assignee: Christopher Lenz
>            Priority: Minor
>             Fix For: 0.9
>
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Slater resolved COUCHDB-52.
--------------------------------

    Resolution: Fixed

This has been fixed in the runtimeconfig branch which should be merged before 0.8.

Thank you for your bug report.

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>         Environment: osx
>            Reporter: Johan Sørensen
>            Priority: Minor
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Lenz updated COUCHDB-52:
------------------------------------

          Component/s:     (was: Build System)
                       HTTP Interface
        Fix Version/s: 0.8.1
             Assignee: Christopher Lenz  (was: Damien Katz)
    Affects Version/s: 0.8

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 0.8
>         Environment: osx
>            Reporter: Johan Sørensen
>            Assignee: Christopher Lenz
>            Priority: Minor
>             Fix For: 0.8.1
>
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Nils Adermann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596133#action_12596133 ] 

Nils Adermann commented on COUCHDB-52:
--------------------------------------

I had the same problem and fixed it by removing the trailing slash. I assume your last sentence was supposed to say "Configuring without an ending slash on the --prefix works."?

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>         Environment: osx
>            Reporter: Johan Sørensen
>            Priority: Minor
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Lenz reopened COUCHDB-52:
-------------------------------------

      Assignee: Noah Slater

I think we shouldn't resolve issues fixed on branches before they are merged back. Also, why wasn't this fixed on trunk, I can't see any way it depends on runtimeconfig?

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>         Environment: osx
>            Reporter: Johan Sørensen
>            Assignee: Noah Slater
>            Priority: Minor
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (COUCHDB-52) building with a --prefix that has an ending slash confuses serve_file()

Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Slater reopened COUCHDB-52:
--------------------------------

      Assignee: Damien Katz  (was: Noah Slater)

The fix for this was implemented in the wrong place (at build time) and was causing too many problems so it has been backed out.

The correct place to fix this issue is in the database core, by calculating the abspath of any local filenames used in the configuration.

> building with a --prefix that has an ending slash confuses serve_file()
> -----------------------------------------------------------------------
>
>                 Key: COUCHDB-52
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-52
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>         Environment: osx
>            Reporter: Johan Sørensen
>            Assignee: Damien Katz
>            Priority: Minor
>
> configuring with:
> $ ./configure --prefix=$HOME/couchdb/
> caused the futon interface to 404 because it couldn't handle a "$HOME/couchdb//share/couchdb/www" path (I'm guessing), note the double-slashes.
> Configuring with an ending slash on the --prefix works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.