CouchDB
  1. CouchDB
  2. COUCHDB-472

handle custom CouchdDB welcome page

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Skill Level:
      New Contributors Level (Easy)

      Description

      This change modify behaviour of Welcome handler by allowing admin to customize the welcome page. If content is "application/json" it will send current json object, if not, it will send an html page or redirect to another path.

      This patch change the confugration string to a tupple

      {WelcomeMsg, WelcomePage}

      . WelcomePage could be a string for DocumentRoot where it will find welcome.html page or a tupple

      {redirect, Url}

      Ex if in config you have:
      / = {couch_httpd_misc_handlers, handle_welcome_req, {<<"Welcome">>, "/usr/local/share/couchdb/www"}}

      If Accept content is application/json Couchdb will send :
      "couchdb":"Welcome","version":"0.10.0a"}

      If other it will send welcome.html.

      if you replace "/usr/local/share/couchdb/www" by

      {redirect, <<"/_utils">>}

       user will be redirected on futon.

      1. couchdb_welcome.patch
        5 kB
        Benoit Chesneau
      2. couchdb_welcome2.patch
        9 kB
        Benoit Chesneau
      3. couchdb_welcome3.patch
        4 kB
        Benoit Chesneau
      4. COUCHDB-472.patch
        6 kB
        Benoit Chesneau
      5. COUCHDB-472-2.patch
        6 kB
        Benoit Chesneau
      6. screenshot.png
        118 kB
        Benoit Chesneau
      7. Welcome page screenshot.jpg
        64 kB
        Benoit Chesneau

        Issue Links

          Activity

          Benoit Chesneau created issue -
          Benoit Chesneau made changes -
          Field Original Value New Value
          Attachment couchdb_welcome.patch [ 12416872 ]
          Benoit Chesneau made changes -
          Attachment screenshot.png [ 12416873 ]
          Benoit Chesneau made changes -
          Attachment couchdb_welcome2.patch [ 12416875 ]
          Benoit Chesneau made changes -
          Attachment couchdb_welcome3.patch [ 12416876 ]
          Adam Kocoloski made changes -
          Fix Version/s 0.11 [ 12313841 ]
          Fix Version/s 0.10 [ 12313694 ]
          Benoit Chesneau made changes -
          Link This issue is related to COUCHDB-348 [ COUCHDB-348 ]
          Noah Slater made changes -
          Fix Version/s 0.12 [ 12314314 ]
          Fix Version/s 0.11 [ 12313841 ]
          Benoit Chesneau made changes -
          Assignee Benoit Chesneau [ benoitc ]
          Benoit Chesneau made changes -
          Attachment COUCHDB-472.patch [ 12451586 ]
          Benoit Chesneau made changes -
          Attachment Welcome page screenshot.jpg [ 12451587 ]
          Benoit Chesneau made changes -
          Attachment COUCHDB-472-2.patch [ 12451588 ]
          Benoit Chesneau made changes -
          Attachment COUCHDB-472-2.patch [ 12451588 ]
          Benoit Chesneau made changes -
          Attachment COUCHDB-472-2.patch [ 12451589 ]
          Paul Joseph Davis made changes -
          Skill Level New Contributors Level (Easy)
          Jan Lehnardt made changes -
          Fix Version/s 1.2 [ 12315198 ]
          Fix Version/s 0.12 [ 12314314 ]
          Jan Lehnardt made changes -
          Fix Version/s 1.3 [ 12318350 ]
          Fix Version/s 1.2 [ 12315198 ]
          Jan Lehnardt made changes -
          Fix Version/s 1.3 [ 12318350 ]
          Benjamin Young made changes -
          Link This issue is related to COUCHDB-1954 [ COUCHDB-1954 ]

            People

            • Assignee:
              Benoit Chesneau
              Reporter:
              Benoit Chesneau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development